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:
| Type | Location | Purpose |
|---|---|---|
| Agent | .claude/agents/ | Autonomous workflows that can use tools, create PRs, send notifications |
| Skill | .claude/skills/ | Reusable capabilities that can be invoked by agents or users |
| Command | .claude/commands/ | Quick actions triggered by slash commands |
Create an Agent
Run/agents in Claude Code to create a new agent, or create the file manually at .claude/agents/{agent-name}.md:
---) defines metadata. The body is the prompt that tells the agent what to do.
Create a Skill
Skills are directories with aSKILL.md file and optional supporting files. Create .claude/skills/enrich-lead/SKILL.md:
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:Next Step
Deploy Your Agent
Push your agent to DataGen cloud and set up webhooks or schedules