Skip to main content

What Are Claude Code Agents?

Claude Code agents are markdown files (.md) that define autonomous AI workflows. They live in your repository and can be deployed to run on schedules or webhooks. There are three types:

Create an Agent

Run /agents in Claude Code to create a new agent, or create the file manually at .claude/agents/{agent-name}.md:
The frontmatter (between ---) defines metadata. The body is the prompt that tells the agent what to do.

Create a Skill

Skills are directories with a SKILL.md file and optional supporting files. Create .claude/skills/enrich-lead/SKILL.md:
You can add supporting files alongside SKILL.md (scripts, reference data, etc.):

Create a Command

Commands are quick actions. Create .claude/commands/check-pr.md:

Guided Build (Optional)

For a more structured approach, run the guided workflow in Claude Code:
This walks you through defining your agent’s purpose, connecting tools, and writing the agent file.

Next Step

Deploy Your Agent

Push your agent to DataGen cloud and set up webhooks or schedules