claude-code-agent-creator
Crea archivos markdown de sub-agentes de Claude Code (con YAML frontmatter y system prompt) listos para colocar en ~/.claude/agents/, .claude/agents/ o agents/ de un plugin. Usa esta skill proactivamente cuando el usuario diga "crea un agente", "create an agent", "necesito un sub-agente que...", "scaffold an agent", "haz un auditor", "make a code reviewer agent", "agente que revise", "agente que audite", "agente que investigue", o cuando describa funcionalidad especializada que conviene aislar en un sub-agente (ej. "necesito algo que revise PRs", "quiero un agente que analice seguridad"). Cubre seleccion de tools con principio de menor privilegio, tuning de description para auto-invocacion, eleccion de arquetipo (auditor / researcher / implementer / orchestrator), calibracion de modelo + effort segun la carga de razonamiento de la tarea (mas mecanico = modelo mas ligero y menos effort) e incluye un sistema de scoring de confianza 0-100 con umbral >=80 para agentes tipo auditor.
What this skill does
# Claude Code Agent Creator This skill produces a single markdown file that IS the full definition of a Claude Code sub-agent: YAML frontmatter (configuration) plus a markdown body (the system prompt). The file goes in one of these locations depending on its scope: - `~/.claude/agents/<name>.md` — user-level, available across every project - `.claude/agents/<name>.md` — project-level, version-controllable with the repo - `plugins/<plugin>/agents/<name>.md` — distributed via a plugin A sub-agent runs in its own isolated context window, with its own model, tool allowlist, and system prompt. The file you generate IS the agent — no extra wiring required. ## When to invoke this skill Trigger on any of these signals: - "Create an agent that...", "I need a sub-agent for..." - "Make me an auditor / reviewer / researcher / implementer" - "Scaffold an agent with these tools..." - "I want something that reviews X / audits Y / investigates Z" If the user describes work worth delegating to a specialized worker with an isolated context, that is an agent. If they describe a reusable inline workflow that should run in the main conversation, that is a skill — redirect them to skill creation instead. ## Process Walk through these steps in order. Do not skip clarification: a poorly tuned frontmatter produces an agent Claude never invokes. ### 1. Clarify intent Ask only what you cannot infer from the user's message. Use `AskUserQuestion`. Minimum information you need before writing: - **Scope**: user-level, project-level, or inside a plugin - **Archetype**: auditor / researcher / implementer / orchestrator (see step 2) - **Trigger**: when should Claude invoke it automatically? (concrete phrases) - **Thinking load** (only if the user has a preference): which model tier (`haiku` / `sonnet` / `opus` / `inherit`) and effort level. If unstated, derive it from the archetype and task in step 4. If the user's initial message already covers all of this, do not ask — proceed. ### 2. Pick the archetype The archetype drives tool selection and the structure of the system prompt. Full details in `references/patterns.md`. Quick map: | Archetype | Default tools | When to use | | ------------- | ------------------------------------------------------ | ---------------------------------------------------------------------------- | | Auditor | `Read, Grep, Glob, Bash` (read-only) | Code review, security audit, quality check. Output uses confidence scoring | | Researcher | `Read, Grep, Glob, Bash, WebSearch, WebFetch` | Exploration, dependency analysis, codebase Q&A | | Implementer | `Read, Edit, Write, Bash, Grep, Glob` | Tasks where edits are expected (refactors, test generation, bug fixes) | | Orchestrator | `Read, Grep, Agent(specific-types)` | Coordinates other agents — restrict `Agent` to concrete subtypes | If the agent navigates code by symbols (jump to definition, find references, type info), add `LSP` — it beats `Grep` for symbol-level queries. ### 3. Select tools (least privilege) List ONLY the tools the agent actually needs. Omitting `tools` inherits everything from the parent, which is rarely what you want. Key rules (full reference in `references/tools.md`): - **Read-only agents** (auditors, researchers): NEVER include `Write`, `Edit`, `NotebookEdit` - **Symbol-level code navigation**: include `LSP`, prefer it over `Grep` for identifiers - **Delegation to other agents**: `Agent(child-name)` with explicit allowlist; standard sub-agents cannot nest further sub-agents - **Dynamic loading of deferred tools** (large MCP setups): include `ToolSearch` - **Shell commands**: only include `Bash` if the agent really needs it; a pure auditor often gets by with `Read + Grep` ### 4. Calibrate the thinking load (model + effort) `model` and `effort` together decide how much reasoning capacity the agent pays for on every turn. This is the biggest lever on its cost and latency, so tune it deliberately — do not default everything to the heaviest pairing. Full reference in `references/thinking-load.md`. The principle: the more **mechanical and deterministic** (and smaller) the task, the lighter the model and the lower the effort; the more **open-ended, ambiguous, or long-horizon**, the heavier the model and the higher the effort. - **Prefer the bare alias** `haiku` / `sonnet` / `opus` over a pinned model ID — it auto-resolves to the latest model in that tier, so the agent improves with zero maintenance. Pin a full ID only when you need version reproducibility. - **Default pairing by archetype**: researcher → `haiku` (no effort); implementer → `sonnet` + `medium`; auditor → `sonnet` + `high` (or `opus` + `max` when a miss is unacceptable); orchestrator → `opus` + `high`/`xhigh`. - **Effort support is not uniform** — set it only where it is honored: - `haiku` has **no** effort dial — omit `effort` entirely. - `sonnet` supports `low`, `medium`, `high`, `max` — but **not** `xhigh`. - `opus` supports the full ladder, including `xhigh`. An unsupported effort level is silently ignored, not an error — so a wrong pairing fails quietly. When in doubt, consult the matrix in `references/thinking-load.md`. ### 5. Write a description that triggers correctly `description` (plus optional `when_to_use`) is the only field Claude reads when deciding whether to auto-invoke the agent. Combined cap: 1,536 characters. Patterns that work: - Lead with the role: "Expert code reviewer specialized in..." - Include "Use proactively when..." or "Use immediately after..." for eager invocation - List concrete trigger phrases: "Use when reviewing PRs, after git commits, when analyzing security" - If the user often phrases requests indirectly, include those exact phrases Weak patterns to avoid: - "Helper agent", "Utility for X", "General-purpose tool" - Descriptions that only state WHAT the agent does but not WHEN to use it ### 6. Compose the system prompt (markdown body) The body of the file IS the agent's system prompt. Recommended structure: 1. **Identity** — who the agent is, what it specializes in 2. **When invoked** — first action when activated (e.g., "Run git diff to find changes") 3. **Method / checklist** — the work, step by step 4. **Output format** — exactly what to return to the caller If the archetype is **auditor**, append the Confidence Scoring block from `references/confidence-system.md` verbatim. This prevents false-positive noise and forces concrete, actionable findings. ### 7. Validate and deliver Before writing the file, check: - `name` is kebab-case and unique within its scope - `description` is specific, with explicit trigger phrases - `tools` is declared explicitly (not omitted unless intentional) - Read-only agents have no write tools - `model` uses a bare alias (`haiku` / `sonnet` / `opus`) unless a pinned ID is intentional, and the `model` + `effort` pairing is valid (no `effort` on `haiku`, no `xhigh` on `sonnet`) - Auditors include the Confidence Scoring section By default, write the file directly to the chosen location with the `Write` tool. If the user wants to review first, present the contents as a code block and clearly state the destination path. ## Output: file structure ```markdown --- name: <kebab-case-name> description: <triggering description — "Use proactively when..."> tools: <comma-separated list> model: <haiku|sonnet|opus|inherit> # optional — bare alias auto-resolves to the latest in that tier effort: <low|medium|high|xhigh|max> # optional — honored only by models that support it (none on haiku, no xhigh on sonnet) color: <red|blue|green|yellow|purple|orange|pink|cyan> # optional --- # <Agent role> <Identity paragraph: who you are, what you specialize in> ## When invoked 1. <First action> 2. <Second
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.