From project-orchestrator
Build Claude Code agents — .md agent definitions, frontmatter configuration, tool selection, model routing, subagent dispatch, and multi-agent coordination. Use when creating or modifying agents, configuring agent teams, or designing orchestration flows.
How this skill is triggered — by the user, by Claude, or both
Slash command
/project-orchestrator:agent-builderThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Patterns for building Claude Code agent definitions (the `.md` files in `agents/`).
Patterns for building Claude Code agent definitions (the .md files in agents/).
.md file in the agents/ directoryEvery agent is a markdown file with YAML frontmatter followed by instructions.
---
name: my-agent-name
description: >
One-paragraph description that the orchestrator uses for routing.
Include trigger words and differentiate from peer agents.
tools:
- Read
- Write
- Edit
- Bash
- Grep
- Glob
- Agent
model: claude-sonnet-4-20250514
maxTurns: 30
skills:
- nestjs-patterns
- react-patterns
memory: project
permissionMode: auto
---
# Agent Name
## Role
What this agent does and when it is activated.
## Instructions
Step-by-step behavior the agent must follow.
## Rules
Hard constraints the agent must never violate.
| Field | Required | Purpose |
|---|---|---|
name | Yes | Unique identifier, kebab-case |
description | Yes | Routing text -- orchestrator reads this to decide dispatch |
tools | Yes | Array of tools the agent can use |
model | No | Model override (defaults to session model) |
maxTurns | No | Maximum conversation turns before stopping |
skills | No | Array of skill names to load as context |
memory | No | File paths loaded into context at startup |
permissionMode | No | auto (no confirmations) or default (ask user) |
Implementer agents (write code):
tools: [Read, Write, Edit, Bash, Grep, Glob]
Reviewer agents (read-only analysis):
tools: [Read, Grep, Glob, Bash]
Never give Write/Edit to reviewers -- enforces separation of concerns.
Orchestrator agents (delegate work):
tools: [Read, Grep, Glob, Agent, Bash]
Orchestrators dispatch via the Agent tool, rarely write code directly.
Explorer agents (research and planning):
tools: [Read, Grep, Glob, WebSearch, WebFetch, Bash]
| Agent Role | Recommended Model | Reason |
|---|---|---|
| Orchestrator | claude-opus-4-20250514 | Complex planning, multi-step reasoning |
| Senior engineer | claude-opus-4-20250514 | Architecture decisions, code review |
| Implementer | claude-sonnet-4-20250514 | Fast, accurate code generation |
| Explorer/researcher | claude-sonnet-4-20250514 | Efficient information gathering |
| Simple utility | claude-haiku-235-20250514 | File scanning, formatting, classification |
The description field is the single most important field for routing. The orchestrator reads descriptions of all agents to decide which one handles a task.
Good description (specific triggers, clear scope):
description: >
Implement NestJS backend features -- controllers, services, DTOs,
database entities, and unit tests. Handles API endpoints, middleware,
guards, and Prisma/TypeORM integration. Does NOT handle frontend,
mobile, or infrastructure.
Bad description (vague, overlaps with peers):
description: >
A helpful developer agent that writes code and fixes bugs.
Routing tips:
Orchestrators use the Agent tool to delegate to specialists:
subagent_type to the agent name from agents/ directoryprompt to a clear task with file paths and acceptance criteriaFor peer-to-peer coordination, agents use SendMessage instead of going through an orchestrator. Backend agent sends API contract updates to frontend agent; each agent operates autonomously but stays synchronized.
maxTurns is set (recommended: 15-30 for implementers, 50 for orchestrators)npx claudepluginhub vivekmano27/agent-orchestrator --plugin project-orchestratorCreates Claude Code agents from scratch or by adapting templates. Guides requirements gathering, template selection, and file generation following Anthropic best practices (v2.1.63+).
Create custom agents for Claude Code including YAML frontmatter, system prompts, tool restrictions, and discovery optimization. Use when creating, building, or designing agents, or when asked about agent creation, subagent configuration, Task tool delegation, or agent best practices.
Generates markdown agent files with YAML frontmatter for Claude Code, configuring system prompts, tools, and isolation for autonomous task delegation in plugins.