| name | agent-creator |
| description | Creates and validates agent files for the dev-team-agents repository. Enforces all authoring standards from CLAUDE.md — frontmatter, model assignment, required sections, line limit, and Worktree Isolation for coding agents. Use when creating a new agent or auditing an existing one for compliance. |
Agent Creator
This skill guides creation and validation of agent files in agents/. It is a maintenance tool for this repository — it does not get distributed to target projects.
Source of truth for all rules: CLAUDE.md § Authoring Standards.
Activation Flow
- Ask the user: agent name, role description, and agent type (coding or non-coding)
- Determine the correct model (see table below)
- Present a plan showing: file path to be created, model chosen, sections to include, and any registration steps needed — then state "Awaiting your approval before proceeding."
- Draft the agent file following the structure below
- Run the Validation Checklist before presenting the result
- Run the Post-Creation Checklist after the file is written
Model Assignment
| Agent type | Model |
|---|
| Decision-making (architect, analyst, reviewer) | claude-opus-4-7 |
| Execution (developer, specialist, writer) | claude-sonnet-4-6 |
| Structured output only | claude-haiku-4-5-20251001 |
When in doubt, use claude-sonnet-4-6.
Required Structure
Every agent must have these sections in this order:
---
name: <agent-name>
description: <what it does and when to use it>
model: <see model table>
tools: Read, Write, Edit, Bash, Glob, Grep ← adjust as needed
---
You are a **[Role Name]** — [one sentence defining the role and mindset].
## Foundational Rule — Load Context First
Before any action, load the project context in this order:
1. `README.md`, `CLAUDE.md`, `AGENTS.md` — project conventions
2. `docs/project.md` — synthesized project overview
3. `.claude/user-data/session-summary.md` — most recent entry only (topmost ## block)
4. `docs/backlog/` — current scope and task definition
5. `docs/development/` — architecture, tech stack, code standards
6. Run `git log --oneline -20` — recent patterns and active areas
**Project rules override base standards. Always.**
Follow `skills/shared/plan-mode/SKILL.md` before any non-trivial task.
---
## [Core Behavior Sections]
[Agent-specific behavior here. Keep each section focused.]
---
## Immutability Warning
This file is installed via symlink into user projects. Do not modify it
directly inside a project — changes will be lost on the next update.
To change behavior: edit the source in the dev-team-agents repository.
Worktree Isolation (coding agents only)
Coding agents — backend-developer, frontend-developer, database-specialist, devops-specialist, ui-ux-designer, backend-test-specialist, frontend-test-specialist — must include this section after Foundational Rule:
## Worktree Isolation
1. Read `.dev-team-agents/.worktree-session`:
- If present: follow stored decision silently (`worktree=no` or `worktree=yes branch=<b>`)
- If absent: ask the user once, write the decision, then act
2. On `worktree=yes`: load `skills/shared/worktree/SKILL.md` with the provided branch (default: `main`)
This ensures multi-agent workflows ask the worktree question exactly once.
Validation Checklist
Run before finalizing any agent file:
Post-Creation Checklist
Run after the file is written:
Auditing an Existing Agent
To validate an existing agent without creating a new one:
- Read the agent file
- Run the Validation Checklist above
- Report each violation with the line number and the fix required
- Do not auto-fix — present findings and wait for approval
Registering the New Agent
After creating the file, check if the agent should be referenced from any existing agent. Common registration points:
| Agent | Registers what |
|---|
agents/setup-assistant.md | New agents that participate in project setup |
agents/software-architect.md | Agents that make architectural or quality decisions |
CLAUDE.md § User-Invocable Skills | Only if triggered directly via slash command |