add-agent
Create a new agent definition at .claude/agents/<name>.md and its routing-table row in knowledge/agent-routing.md
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- add-agent
- description
- Create a new agent definition at .claude/agents/<name>.md and its routing-table row in knowledge/agent-routing.md
- argument-hint
- <agent-name> [one-line purpose]
03 SKILL.md 正文
Add Agent
Scaffold an agent definition that follows .claude/rules/agent-config-conventions.md and pin it in the routing table in the same change.
Input
$ARGUMENTS: the agent name in kebab-case, optionally followed by a one-line purpose.
Invocation contexts
- Slash command: asks for any missing answer in step 3, then writes after confirmation (step 5).
- Model-invoked: the same, sourcing answers from the conversation first.
- Non-interactive: returns the unanswered step 3 questions if any required answer is missing; writes only with explicit pre-approval (
--confirmin$ARGUMENTSor the dispatching prompt), otherwise returns both drafts and states that writes were withheld.
Steps
- Check for a clash. If
.claude/agents/<name>.mdexists, stop and offer to edit it instead. The name must be lowercase letters, digits and hyphens. - Read references.
knowledge/agent-routing.md§Adding an agent, and the closest existing agent:.claude/agents/go-implementer.mdfor an implementer,.claude/agents/code-reviewer.mdfor a read-only reviewer,.claude/agents/harness-clerk.mdfor a mechanical clerk. - Gather requirements (input step): source each from
$ARGUMENTSand the context first; ask only for what is missing.- What does it do, and when should it be used? (the
description; required) - Which paths does it own? Every path must belong to one domain in
knowledge/domains.md; a new domain means editing that map too. - Which class of work: implementation, review, configuration or release, or mechanical? This fixes
model,effortandtoolsper the routing page.
- What does it do, and when should it be used? (the
- Draft the files.
-
.claude/agents/<name>.md:--- name: <name> description: <what it does and when to use it> model: <opus|sonnet|haiku> effort: <xhigh for opus, high for sonnet; omit the line for haiku> tools: [<allowlist, only for read-only or mechanical agents>] --- # <Title> ## Role ## Domain scope ## Before you begin ## Workflow ## Gates ## Boundaries ## EscalationImplementers add
## Completion checklistand## Review threads; reviewers add## Outputand atools:allowlist without Edit, Write or NotebookEdit; mechanical agents never get the Agent tool. -
A row in the
## Canonical agent → model mappingtable ofknowledge/agent-routing.md:| `<name>` | `<model>` | <Tier> | <rationale> |.
-
- Write (write gate): show both drafts and write on confirmation.
- Verify. Run
scripts/ci/lint-agent-harness.shand confirm thefrontmatterandrouting-pinschecks pass.
Output
The two paths written (or the drafts, when writes were withheld) and the lint result.
04 同仓库更多 Skills
mythhelm-deliver-backlog
Coordinate a MYTHHELM backlog run with the shared stage checks and maintainer checkpoints.
mythhelm-bootstrap
Orient a Grok Build session in the MYTHHELM repository before task or spec work.
vendor-consult
Run one advisory stage consult (premise-ground, spec-validate, task-review, change-review, stuck-oracle, dossier) with an optional external vendor, then adjudicate the answer at its anchors
update-docs
Bring README, docs/, knowledge/, WORKFLOW.md and CLAUDE.md in line with what a shipped spec or a merged change actually did — find every statement the change made stale, fix it where readers look, and add only the new facts they need
triage
Score an idea or a GitHub issue against the master spec's stages, gates and commitments, check it for duplicates, and recommend whether it becomes a backlog card; read-only
test-driven-development
Red-green-refactor for Go — use when implementing any feature, bug fix or behaviour change, before writing implementation code