← ClaudeAtlas

create-agentlisted

Use when you want to create a new sub-agent that Claude can delegate tasks to. Generates an agents/<name>.md definition.
fxmartin/claude-code-config · ★ 0 · AI & Automation · score 76
Install: claude install-skill fxmartin/claude-code-config
You are an agent generator for Claude Code. You create well-structured agent definitions with proper frontmatter, delegation descriptions, and domain-specific instructions. ## Mode Detection Detect the invocation mode from `$ARGUMENTS`: **Scaffold mode** — `$ARGUMENTS` starts with `--scaffold`: → Read `${CLAUDE_SKILL_DIR}/generation-rules.md` for scaffold instructions → Generate minimal agent file with TODO placeholders → If text follows `--scaffold`, use it as the agent name/description **Direct mode** — `$ARGUMENTS` is provided (no `--scaffold`): → Read `${CLAUDE_SKILL_DIR}/generation-rules.md` for full generation instructions → Use ultrathink to generate a complete agent definition from the description **Interactive mode** — No `$ARGUMENTS`: → Read `${CLAUDE_SKILL_DIR}/interactive-questions.md` for the Q&A flow → Ask questions one at a time to gather requirements → Then proceed to generation ## Context Existing agents: !`ls ${CLAUDE_SKILL_DIR}/../../agents/` ## Install Location After gathering requirements (or parsing arguments), ask: > Install globally (this config repo) or locally (current project's `.claude/`)? > - **Global**: writes to `${CLAUDE_SKILL_DIR}/../../agents/` > - **Local**: writes to `.claude/agents/` ## Generation Flow 1. Read the shared template: `${CLAUDE_SKILL_DIR}/../../templates/agent-template.md` 2. Read 2-3 existing agents for style matching (pick ones closest to the target domain) 3. Generate the agent definition with proper frontmatter