> ## Documentation Index
> Fetch the complete documentation index at: https://datagen.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Agent Templates

> Browse and install pre-built agent templates from the DataGen template repository

Get started faster with pre-built agent templates. Each template includes the agent definition, context files, helper scripts, and everything you need to run a working agent.

<Note>
  In Claude Code, run `/datagen:fetch-agent` to browse and install templates with guided setup.
</Note>

## Browse Templates

Run the command without arguments to see all available templates:

```
/datagen:fetch-agent
```

This fetches the catalog from the [DataGen agent templates repository](https://github.com/datagendev/datagen-agent-templates) and displays available agents with their descriptions, required tools, and MCP connections.

***

## Install a Template

Specify a template ID to install it:

```
/datagen:fetch-agent linkedin-engagement
```

The installer will:

<Steps>
  <Step title="Download Files">
    Fetches the template's manifest and downloads all files to:

    * `.claude/agents/<template-id>.md` -- the agent definition
    * `.datagen/<template-id>/` -- context, scripts, memory, and workspace files
  </Step>

  <Step title="Check Prerequisites">
    Identifies required MCP connections, secrets, and Python packages. Reports what's ready and what's missing.
  </Step>

  <Step title="Install Dependencies">
    Installs any required Python packages listed in the template manifest.
  </Step>

  <Step title="Post-Install Guide">
    Shows what the agent does, how to invoke it, and any remaining setup.
  </Step>
</Steps>

***

## After Installation

### Connect Required MCPs

Templates may require external MCP servers (Gmail, Linear, Slack, etc.). Connect them before running:

```
/datagen:add-mcps
```

Or connect via the [web UI](/guide/add-mcp-servers).

### Configure Secrets

Some templates need API keys or credentials. Add them at [DataGen Secrets](https://datagen.dev/account?tab=secrets).

### Run the Agent

```
@template-id run the full pipeline
```

<Warning>
  After installing a template, run `claude -r` to reload Claude Code and pick up the new agent.
</Warning>

***

## Customizing Templates

Installed templates are fully editable:

* **Context files** -- Update `.datagen/<template-id>/context/` with your domain knowledge
* **Scripts** -- Modify `.datagen/<template-id>/scripts/` to change data processing logic
* **Agent definition** -- Edit `.claude/agents/<template-id>.md` to adjust reasoning and workflow
* **Memory** -- Upgrade the memory structure if you need more state management

***

## Reusable Skills

Skills are smaller, reusable capabilities that any agent can use:

```
/datagen:fetch-skill
```

Skills install to `.claude/skills/<skill-name>/` and can be composed into any agent. Unlike templates (which are complete agents), skills are building blocks -- e.g., a product analysis skill, a lead scoring skill, or a data validation skill.
