/agentspec:component-modelfrom agentspec
Decides where new logic belongs in the component model (agent, skill, command, KB, template) and guides fat-to-thin refactoring when a component outgrows its layer.
Ships in agentspec. 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.
The operational side of the repository's component model: place new logic in the right
layer, and pull overgrown components back into theirs. The canonical definitions — the
four layers, the placement table, the thin-executor pattern — live in
${CLAUDE_PLUGIN_ROOT}/kb/shared/component-model.md; this skill applies that model, it does not
restate it.
create-skill, create-agent, or /create-kb.Read the canonical model. Open ${CLAUDE_PLUGIN_ROOT}/kb/shared/component-model.md — the four
layers, the "where does new logic go" table, and the thin-executor pattern are
defined there, and every classification below is grounded in that file. Read it
before classifying, not after.
Classify the new logic. Ask, in order, and stop at the first yes:
A piece of work that answers yes more than once spans layers — go to step 3.
Split multi-layer work along layer lines. Do not pick the biggest layer and stuff everything into it. A new capability normally lands as a skill plus a one-line loading instruction in the agent or command that uses it — not as a fat agent. A new entrypoint lands as a thin command that sequences existing agents and skills, never one that re-implements them. Worked example — "add a code-review capability" splits four ways: the review method is a skill; the reviewer identity and tool scope are agent frontmatter; the user-facing entrypoint is a thin command; the severity taxonomy every component must agree on is a KB fact.
Route to the authoring resource.
| Chosen layer | Author it with |
|---|---|
| Skill | create-skill — repo naming, placement, frontmatter, ship checklist; defers to upstream skill-creator for general craft |
| Agent | create-agent |
| KB domain | /create-kb; add --validated (the kb-build skill) when every claim must be source-verified |
| Command | no authoring skill — keep it thin: parse arguments, pick the mode, load the skill or delegate to the agent |
| Template | own it in the template directories (${CLAUDE_PLUGIN_ROOT}/sdd/templates/, ${CLAUDE_PLUGIN_ROOT}/kb/_templates/) and have skills reference it |
Concrete tells that logic sits in the wrong layer, with the fix:
| Smell | Fix |
|---|---|
| Agent body carrying more than ~50 lines of process steps | Extract the methodology into a skill; the agent loads it — see the refactor below |
| A command re-implementing its agent's method inline | The command loads the same skill the agent does, so one copy of the method exists |
| The same fact stated in two components | Pick the owner; the other points at it — N copies means N−1 stale ones |
| A KB file describing a workflow ("first do X, then Y") | That is a skill; KBs hold reference truth, not procedures |
| A skill inlining an artifact's full required shape | Move the shape to a template; the skill references it |
| An agent's contract facts (model, tools, limits) restated in commands or docs | Frontmatter is the owner; point at it instead of copying |
The operational version of the recipe in the KB — run it when a component (usually an agent) has absorbed methodology that belongs a layer down:
<domain>-<verb> per create-skill conventions — and
move the methodology into it; point at templates for artifact shapes instead of
re-inlining them.The SDD workflow components are the reference implementation of the end state: thin
*-agent executors, sdd-* skills carrying the methodology, and thin phase commands
sequencing them.
| Resource | When to read |
|---|---|
${CLAUDE_PLUGIN_ROOT}/kb/shared/component-model.md | Always — the source of truth for layer definitions, the placement table, and anti-pattern rationale |
create-skill skill | The decision landed on "skill" |
create-agent skill | The decision landed on "agent" |
kb-build skill / /create-kb command | The decision landed on "KB domain" |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
16 skills in this plugin
/agent-routerIntelligent agent routing -- automatically matches tasks to the best specialist agent based on file patterns, intent keywords, and domain context. Loaded every session to give Claude explicit routing rules for all 58 AgentSpec agents./data-engineering-guideData engineering expertise for pipelines, schemas, data quality, SQL, lakehouse, and streaming.
Use PROACTIVELY when the user discusses data pipelines, ETL/ELT, schema design, dimensional modeling,
data quality checks, SQL optimization, dbt models, Spark jobs, Airflow DAGs, streaming pipelines,
lakehouse architecture, or data contracts.
/excalidraw-diagramCreate Excalidraw diagram JSON files that make visual arguments. Use when the user wants to visualize workflows, architectures, or concepts./github-cr-adrDrafts an Architecture Decision Record (ADR) for the current repository: searches existing GitHub issues for duplicates first, applies a worthiness gate, then drafts from the context/decision/alternatives/consequences template with the standard status lifecycle, ready for publication as a GitHub issue. Use when the user asks to "create an ADR", "draft an ADR", "new ADR", "document an architecture decision", or to formalize an architecturally significant, hard-to-reverse technical choice. Do not use for routine feature or bug tracking — use `github-cr-issue`; publishing a drafted ADR to GitHub is `github-post-issue`.
/github-cr-issueDrafts the body of a well-formed, self-contained GitHub issue for the current repository from a per-type template — feature, component, task, bug, or spike — searching existing issues for duplicates before any drafting, and saving the result as an ephemeral draft ready for review and publication. Use when the user wants to create, draft, or write an issue, or asks for a feature, component, task, bug, or spike issue, or wants to turn an idea, defect report, or investigation into a tracked GitHub issue. For epic-scale initiatives it drafts a parent issue plus child issues joined by native GitHub relationships instead of an epic document. Do not use for architecture decisions — use `github-cr-adr`; to publish a draft to GitHub use `github-post-issue`.
/github-post-issuePublishes a drafted issue or ADR to the current repository's GitHub board via gh, with guardrails, and curates the board safely. Runs a verdict-gated pre-flight before any write: duplicate search across open and closed issues, a self-containment lint, template conformance, and label validation against the live repo (human-in-the-loop for missing labels, never auto-created). Applies native parent/sub-issue relationships, assigns owners, closes (never deletes) superseded issues with a pointer comment, and deletes the local draft once the issue URL is returned. Use when the user wants to post or publish a drafted issue or ADR, apply labels, set parent/sub-issue relationships, assign an owner, or close/curate issues on the board. Do not use to draft content — use `github-cr-issue` or `github-cr-adr` first.
npx claudepluginhub luanmorenommaciel/agentspec --plugin agentspecOther plugins' skills for the same job