Skip to content
Development
Command

/create-specialist-agent

Scaffold a new spawnable specialist agent def and register it in the agent taxonomy

From plugin
heymegabyte-claude-skills
2153 skills27 agents53 commands
Install
> /plugin marketplace add heymegabyte/claude-skills

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/create-specialist-agent

Context preview

What this command does when you run it.

Scaffold a new spawnable specialist agent def and register it in the agent taxonomy

Command definition

create-specialist-agent.md
description: Scaffold a new spawnable specialist agent def and register it in the agent taxonomy
argument-hint: <agent name + role>

Scaffold a new specialist agent per [[agent-selection]] (anti-inflation: only when a role RECURS).

**Purpose** — turn a recurring role into a reusable, well-scoped spawnable agent def.

**When to use** — a role appeared in ≥2 runs and was handled ad-hoc by a generic worker. NOT for one-off roles (agent inflation is the failure mode).

**Inputs** — `$ARGUMENTS` = proposed agent name + role description.

Steps:

  • Confirm recurrence first — if it's one-off, STOP and surface as a Rec instead.
  • Write `~/.claude/agents/<name>.md` with frontmatter: `name`, `description`, `tools`, `model`, `effort` (+ `model_fallback`/`effort_fallback` if Opus-pinned per [[opus-quota-fallback]]).
  • Body = system prompt + labeled sections: Purpose · Triggers · Non-goals · Inputs · Outputs (≤200-word summary contract) · Verification.
  • Register the agent in the [[agent-selection]] taxonomy (routing table + when-to-use row).
  • Cross-link `[[agent-selection]]` and any sibling agents.

**Outputs** — the new agent file path + the taxonomy edit + `[[backlinks]]`.

**Verification** — agent file has valid frontmatter (`head -8`); taxonomy edit committed in `~/.agentskills`; agent is spawnable by name.

**Can update ~/.agentskills or ~/.claude?** YES — writes the agent def under `~/.claude/agents/` and updates the taxonomy.

> ⚠️ **File-writing guard** — `~/.claude/{agents,commands,rules,skills}` are SYMLINKS into `~/.claude/plugins/heymegabyte-claude-skills/`. Author new files with the **Write tool only**, writing to the plugin path. NEVER `ln`/`ln -s` into a symlinked dir — it creates a circular self-symlink ("too many levels of symbolic links") and loses the content. (Reference incident 2026-05-28: a command-author agent ran `ln` and broke `dashboard-cockpit.md`; recovered by re-Writing as a plain file.)

Read more
Ships withheymegabyte-claude-skills

14-category autonomous product-building OS for 32+ AI coding tools. One-line prompts → deployed products.

Get the whole plugin

Other commands on heymegabyte-claude-skills.