creating-agentslisted
Install: claude install-skill aiskillstore/marketplace
# Creating Agents
Guides creation of Claude Code subagents for task delegation.
## Quick Start
1. Define agent purpose (what task does it handle?)
2. Choose location (project or user level)
3. Select tools (minimal set needed)
4. Write system prompt
5. Save to `.claude/agents/`
## Workflow: Create New Agent
```
Progress:
- [ ] Define purpose and triggers
- [ ] Choose storage location
- [ ] Select tools and model
- [ ] Write system prompt
- [ ] Create agent file
```
### Step 1: Define Purpose
Ask user:
- What specific task should this agent handle?
- When should it be invoked? (trigger phrases)
- Should it run proactively or on-demand?
### Step 2: Choose Location
| Location | Path | Use For |
|----------|------|---------|
| Project | `.claude/agents/` | Team-shared, project-specific |
| User | `~/.claude/agents/` | Personal, cross-project |
Project agents take priority over user agents.
### Step 3: Select Tools and Model
**Tools** - Grant minimum needed:
| Tool | Purpose |
|------|---------|
| Read | Read files |
| Write | Create files |
| Edit | Modify files |
| Glob | Find files |
| Grep | Search content |
| Bash | Run commands |
| Task | Spawn subagents |
**Model** - Choose based on task:
| Model | Best For |
|-------|----------|
| `opus` | Complex reasoning, nuanced decisions |
| `sonnet` | General tasks (default) |
| `haiku` | Quick lookups, simple analysis |
| `inherit` | Use parent's model |
### Step 4: Write System Prompt
Keep prompts focused:
- State