/agent-template
Generate custom agent from template. Use when creating a new subagent from scratch, or scaffolding an agent file with correct frontmatter.
$ npx -y skills add claude-world/director-mode-lite --skill agent-template --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/agent-template
Context preview
The summary Claude sees to decide when to auto-load this skill.
Generate custom agent from template. Use when creating a new subagent from scratch, or scaffolding an agent file with correct frontmatter.
SKILL.md
agent-template.SKILL.mdname: agent-template
description: Generate custom agent from template. Use when creating a new subagent from scratch, or scaffolding an agent file with correct frontmatter.
user-invocable: true
Agent Template Generator
Generate a custom agent file based on requirements.
**Usage**: `/agent-template [agent-name] [purpose]`
---
Templates
| Purpose | Template | Tools | Color | Model | |---------|----------|-------|-------|-------| | Review/Audit | Reviewer | Read, Grep, Glob, Bash | yellow | inherit | | Generate/Create | Generator | Read, Write, Grep, Glob | cyan | inherit | | Fix/Modify | Fixer | Read, Write, Edit, Bash, Grep | red | inherit | | Test/Validate | Tester | Read, Bash, Grep, Glob | green | inherit | | Document | Documenter | Read, Write, Grep, Glob | cyan | inherit | | Orchestrate | Orchestrator | Read, Write, Bash, Grep, Glob, Agent | cyan | haiku |
---
Process
1. **Gather Requirements**
- Agent name (lowercase, hyphenated)
- Purpose
- Tools needed
- Model (fable/opus/sonnet/haiku/inherit — inherit is the recommended default)
- Preloaded skills (if any)
2. **Select Template** based on purpose
3. **Generate File** at `.claude/agents/[name].md`
4. **Validate** with `/agent-check`
---
Frontmatter Reference (official fields)
---
name: agent-name # Required: lowercase, hyphenated, 3-50 chars
description: > # Required: 200-1000 chars recommended, include <example> blocks.
Use this agent PROACTIVELY when [triggering conditions]. Examples:
<example>
Context: [situation]
user: "[request]"
assistant: "[response]"
<commentary>[why this agent]</commentary>
</example>
color: cyan # Required by Director Mode convention (CI-enforced); optional per spec
model: inherit # Required by Director Mode convention (CI-enforced); optional per spec.
# Valid: fable, opus, sonnet, haiku, inherit, default, best, sonnet[1m],
# opus[1m] (or a full model ID). inherit recommended. NOT opusplan.
effort: medium # Optional: low, medium, high, xhigh, max
tools: # Optional: YAML list (omit = all tools)
- Read
- Write
- Edit
- Bash
- Grep
- Glob
- Agent
- WebFetch
- WebSearch
- TodoWrite
- NotebookEdit
disallowedTools: # Optional: explicit tool blocking
- NotebookEdit
maxTurns: 20 # Optional: max agentic turns before stopping (positive integer)
skills: # Optional: preloaded skill names (list)
- linked-skill
memory: project # Optional: one of user, project, local
background: false # Optional: run the agent in the background (boolean)
isolation: worktree # Optional: run the agent in an isolated git worktree
---**Not supported in filesystem/plugin agent frontmatter** — do not emit these: `hooks`, `mcpServers`, `permissionMode` (security restriction), and `forkContext` (not an official field). Agents fork automatically when dispatched.
---
Reviewer Template Structure
---
name: [name]
description: >
Use this agent PROACTIVELY when [triggering conditions]. Examples:
<example>
Context: [situation]
user: "[request]"
assistant: "[response]"
</example>
color: yellow
tools:
- Read
- Grep
- Glob
- Bash
model: inherit
skills:
- linked-skill
# maxTurns: 20
# memory: project
---
# [Name] Agent
## Activation
When to trigger
## Review Checklist
- [ ] Check items
## Output Format
Report structure
---
Example
/agent-template security-scanner "scan code for vulnerabilities"
Output: Created .claude/agents/security-scanner.md
Read more
name: agent-template description: Generate custom agent from template. Use when creating a new subagent from scratch, or scaffolding an agent file with correct frontmatter. user-invocable: true
Agent Template Generator
Generate a custom agent file based on requirements.
**Usage**: `/agent-template [agent-name] [purpose]`
---
Templates
| Purpose | Template | Tools | Color | Model | |---------|----------|-------|-------|-------| | Review/Audit | Reviewer | Read, Grep, Glob, Bash | yellow | inherit | | Generate/Create | Generator | Read, Write, Grep, Glob | cyan | inherit | | Fix/Modify | Fixer | Read, Write, Edit, Bash, Grep | red | inherit | | Test/Validate | Tester | Read, Bash, Grep, Glob | green | inherit | | Document | Documenter | Read, Write, Grep, Glob | cyan | inherit | | Orchestrate | Orchestrator | Read, Write, Bash, Grep, Glob, Agent | cyan | haiku |
---
Process
1. **Gather Requirements**
- Agent name (lowercase, hyphenated)
- Purpose
- Tools needed
- Model (fable/opus/sonnet/haiku/inherit — inherit is the recommended default)
- Preloaded skills (if any)
2. **Select Template** based on purpose
3. **Generate File** at `.claude/agents/[name].md`
4. **Validate** with `/agent-check`
---
Frontmatter Reference (official fields)
---
name: agent-name # Required: lowercase, hyphenated, 3-50 chars
description: > # Required: 200-1000 chars recommended, include <example> blocks.
Use this agent PROACTIVELY when [triggering conditions]. Examples:
<example>
Context: [situation]
user: "[request]"
assistant: "[response]"
<commentary>[why this agent]</commentary>
</example>
color: cyan # Required by Director Mode convention (CI-enforced); optional per spec
model: inherit # Required by Director Mode convention (CI-enforced); optional per spec.
# Valid: fable, opus, sonnet, haiku, inherit, default, best, sonnet[1m],
# opus[1m] (or a full model ID). inherit recommended. NOT opusplan.
effort: medium # Optional: low, medium, high, xhigh, max
tools: # Optional: YAML list (omit = all tools)
- Read
- Write
- Edit
- Bash
- Grep
- Glob
- Agent
- WebFetch
- WebSearch
- TodoWrite
- NotebookEdit
disallowedTools: # Optional: explicit tool blocking
- NotebookEdit
maxTurns: 20 # Optional: max agentic turns before stopping (positive integer)
skills: # Optional: preloaded skill names (list)
- linked-skill
memory: project # Optional: one of user, project, local
background: false # Optional: run the agent in the background (boolean)
isolation: worktree # Optional: run the agent in an isolated git worktree
---**Not supported in filesystem/plugin agent frontmatter** — do not emit these: `hooks`, `mcpServers`, `permissionMode` (security restriction), and `forkContext` (not an official field). Agents fork automatically when dispatched.
---
Reviewer Template Structure
--- name: [name] description: > Use this agent PROACTIVELY when [triggering conditions]. Examples: <example> Context: [situation] user: "[request]" assistant: "[response]" </example> color: yellow tools: - Read - Grep - Glob - Bash model: inherit skills: - linked-skill # maxTurns: 20 # memory: project --- # [Name] Agent ## Activation When to trigger ## Review Checklist - [ ] Check items ## Output Format Report structure
---
Example
/agent-template security-scanner "scan code for vulnerabilities" Output: Created .claude/agents/security-scanner.md
Use Claude Code like a Director, not a Programmer. MIT toolkit with Auto-Loop, guided setup, 27 commands, 14 agents, and 32 skills.
Other skills on director-mode-lite.
- /changelog-observer
Track development session events in a daily markdown changelog, including file changes, test results, and key decisions.
Open skill - /agent-check
Validate custom agent file format and structure. Use after creating or editing an agent, before committing agent changes, or when an agent fails to load.
Open skill - /agents
List all available agents (core, expert, self-evolving). Use when the user asks what agents are available or runs /agents.
Open skill - /auto-loop
TDD-based autonomous development loop with checkpoint recovery and observability changelog
Open skill - /changelog
View and manage the runtime changelog for observability
Open skill - /check-environment
Verify Claude, Codex, and Grok availability plus Director guidance, relay, agents, and skills. Audit optional hooks only when selected. Use after installation or when a native surface misbehaves.
Open skill

