/agent-father:agent-fatherfrom agent-father
Creates new Claude Code subagents or audits/rewrites existing ones against documentation standards, fixing visibility model issues, frontmatter, and body rules.
Ships in agent-father. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Create new or review and rewrite existing Claude Code subagents.
Read the agent file and audit it against every rule below. Fix ALL issues found.
Claude sees TWO separate things at TWO separate times:
description field from frontmatter. Nothing else. The body is invisible.Consequences:
descriptiondescription — move it to descriptionFrontmatter:
name — lowercase, hyphens onlydescription — contains ALL activation triggers and keywords; written for Claude (the delegator), not for humans; states plainly when to delegate instead of shouting "Use proactively" / "MUST BE USED"description — quoted when it contains a colon followed by a space, otherwise the YAML fails to parse (this rule is stated again under Create mode on purpose: each mode is a separate firing moment, and a check absent where it must fire does not fire)tools — omitted unless there is a concrete reason to restrict, and the reason is written down. Per-agent allowlists cost more in maintenance than they return: every tool the agent turns out to need has to be added later, and the list is the first thing to go stalepermissionMode — set only on project and user agents; a plugin-shipped agent drops it, along with hooks and mcpServersmodel — set explicitly if agent needs a specific capability leveleffort — set only when the work needs a different reasoning level than the session'sBody (system prompt):
description)Common anti-patterns to fix:
| Anti-pattern | Fix |
|---|---|
| "When to Activate" section in body | Delete from body, ensure triggers are in description |
| "MANDATORY activation for: kubernetes, k8s, deployment" in body | Move keywords to description |
| "Escalate to tech-oracle" | Replace with "ask whoever spawned you for guidance" - the caller is the main session for a subagent and the manager for a teammate |
| "Pass results to code-guardian" | Remove — an agent returns its results to whoever spawned it |
A tools allowlist with no stated reason | Remove the field — inheritance is the default, and an unexplained list is one nobody will dare change |
hooks, mcpServers, or permissionMode on a plugin-shipped agent | Remove — the loader warns and drops all three; the definition it builds never carries them |
description is human-readable but not Claude-readable | Rewrite for the delegator: state when to delegate, with the keywords that should match |
| Body contains info Claude needs before delegation | Move to description |
| Body repeats the description | Remove duplication |
Show findings grouped by severity, then apply fixes:
CRITICAL (breaks functionality):
- [issue and fix]
WARNING (reduces effectiveness):
- [issue and fix]
SUGGESTION (improvement):
- [issue and fix]
Apply all fixes using Edit tool, then show the updated frontmatter summary.
.claude/agents/), user (~/.claude/agents/), or inside a plugin (<plugin>/agents/) — ask if unclear. Scope decides which fields do anything, so settle it firsttools? Without one, leave it out and inheriteffort than the session's?Description field (MOST IMPORTANT):
System prompt (body):
Tool restrictions — restrict for a reason, not by default:
tools gives the agent every tool available to subagentsnot enabled in this context from SendMessage and could only report by writing to a file. One observation on one version says the documented guarantee did not hold there, not that it never holds — and nothing in this guide depends on which side is authoritative, because the argument above is about the list, not about the harnessdisallowedTools to deny a few tools over an allowlist that has to enumerate everything the agent will ever needAfter writing, confirm:
Created: .claude/agents/my-agent.md
Name: my-agent
Model: sonnet
Tools: inherited (no allowlist)
Permission mode: default (project scope)
Subagent files use YAML frontmatter for configuration, followed by the system prompt in Markdown.
| Field | Required | Description |
|---|---|---|
name | Yes | Unique identifier using lowercase letters and hyphens |
description | Yes | When Claude should delegate to this subagent. Claude reads this to decide when to use the agent — write it for Claude, not for humans |
tools | No | Tools the subagent can use. Inherits ALL tools if omitted |
disallowedTools | No | Tools to deny, removed from inherited or specified list |
model | No | A family alias (sonnet, opus, haiku, fable), a full model ID, or inherit. Default: inherit. Prefer the alias — a pinned ID goes stale on the next release |
permissionMode | No | default, acceptEdits, auto, dontAsk, bypassPermissions, plan, or manual (an alias for default). Dropped for plugin-shipped agents |
maxTurns | No | Maximum number of agentic turns before the subagent stops |
effort | No | Reasoning effort while this subagent is active: low, medium, high, xhigh, max. Overrides the session level |
skills | No | Skills to load into context at startup. Full content is injected. Subagents do NOT inherit skills from parent |
mcpServers | No | MCP servers available to this subagent. Either a server name (string) or inline definition. Dropped for plugin-shipped agents |
hooks | No | Lifecycle hooks scoped to this subagent (PreToolUse, PostToolUse, Stop). Dropped for plugin-shipped agents |
memory | No | Persistent memory scope: user, project, or local. Enables cross-session learning |
background | No | true to always run as background task. Default: false |
isolation | No | worktree to run in a temporary git worktree with isolated repo copy |
Standard: Read, Write, Edit, Bash, Glob, Grep, WebFetch, WebSearch, Agent.
Agent = can spawn any subagentAgent(worker, researcher) = can only spawn named subagentsAgent = cannot spawn subagentsAgent can spawn further subagents, up to three layers below the main conversation by default (CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH); at the limit the tool is withheld. An agent running as a fleet teammate cannot spawn teammates at allProject and user agents only — Claude Code ignores this field on plugin-shipped agents.
| Mode | Behavior |
|---|---|
default | Standard permission checking with prompts |
acceptEdits | Auto-accept file edits |
dontAsk | Auto-deny permission prompts (explicitly allowed tools still work) |
bypassPermissions | Skip all permission checks (dangerous!) |
auto | A background classifier reviews commands and protected-directory writes |
plan | Plan mode — read-only exploration |
manual | Alias for default |
| Scope | Location | Use when |
|---|---|---|
user | ~/.claude/agent-memory/<name>/ | Learnings across all projects (recommended default) |
project | .claude/agent-memory/<name>/ | Project-specific, shareable via version control |
local | .claude/agent-memory-local/<name>/ | Project-specific, NOT in version control |
When memory is enabled: Read/Write/Edit tools are auto-enabled, first 200 lines of MEMORY.md are included in context.
Project and user agents only — Claude Code ignores this field on plugin-shipped agents.
hooks:
PreToolUse:
- matcher: "Bash"
hooks:
- type: command
command: "./scripts/validate.sh"
PostToolUse:
- matcher: "Edit|Write"
hooks:
- type: command
command: "./scripts/lint.sh"
Project and user agents only. A plugin-shipped agent loses this field: the loader warns about it and then builds the agent definition from an explicit field list that does not include mcpServers, so nothing downstream ever sees it. The same loop and the same omission cover hooks and permissionMode, which is why all three get one answer rather than three.
mcpServers:
# Inline definition (scoped to this subagent only)
- playwright:
type: stdio
command: npx
args: ["-y", "@playwright/mcp@latest"]
# Reference by name (reuses already-configured server)
- github
| Location | Scope | Priority |
|---|---|---|
--agents CLI flag | Current session | 1 (highest) |
.claude/agents/ | Current project | 2 |
~/.claude/agents/ | All your projects | 3 |
Plugin agents/ directory | Where plugin is enabled | 4 (lowest) |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub lexfrei/ccc --plugin agent-fatherOther plugins' skills for the same job