Best for
- Use when creating, authoring, scaffolding, designing, or drafting a new skill or slash command.
testdouble/han/han-plugin-builder/skills/skill-builder/SKILL.md
Builds a new Claude Code skill from scratch through a relentless, evidence-based interview that walks the skill's design tree decision-by-decision — entity fit, use cases, name, description, workflow steps, tools, and progressive-disclosure layout — then reviews the finished skill against the plugin-building guidance and applies every fix it finds. Use when creating, authoring, scaffolding, designing, or drafting a new skill or slash command. Does not build an agent or subagent — use agent-build
Decision brief
As your first action, use the Read tool on .han/config.md inside the personal config directory path above. A read that returns no file is no personal configuration: continue silently. When that file or the project .han/config.md probe supplies content, apply it per config-rule.m…
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Declared | Source record | Install path and trigger |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/testdouble/han --skill "han-plugin-builder/skills/skill-builder"Inspect the Agent Skill "skill-builder" from https://github.com/testdouble/han/blob/a86259a348dd0ec8a04b0357dd33753a36f38c2d/han-plugin-builder/skills/skill-builder/SKILL.md at commit a86259a348dd0ec8a04b0357dd33753a36f38c2d. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
Read the user's argument and the conversation to extract what the skill should do. If the request is too thin to start (for example, just "build a skill"), ask the user for one or two sentences on what the skill should accomplish and what triggers it — nothing else yet.
Locate the target plugin and learn its conventions before asking the user anything beyond the framing. Use Glob, Grep, and find to gather:
Enumerate the decisions the skill needs, in dependency order. Resolve foundational decisions before dependent ones; never ask a dependent question before its parent is settled.
For each decision in dependency order:
Create the skill directory and write the files:
Permission review
The documentation asks the agent to create, modify, or delete local files.
Create the skill directory and write the files:Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 95/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 245 | Source | Repository attention, not individual Skill quality |
| Compatibility | 1 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
bash "${CLAUDE_PLUGIN_ROOT}/scripts/han-config-dir.sh" 2>/dev/null || echo "$HOME/.claude"cat .han/config.md 2>/dev/null || echo ""As your first action, use the Read tool on .han/config.md inside the personal config directory path above. A read
that returns no file is no personal configuration: continue silently. When that file or the project .han/config.md
probe supplies content, apply it per config-rule.md, which governs precedence
between the two files, relative-path resolution, and what to do with a file that reads but cannot be used.
The authoritative skill-authoring guidance ships in this plugin. Read the specific document a decision needs, when that decision is on the table — never read them all up front, because that defeats progressive disclosure and burns context on guidance the current skill does not touch.
${CLAUDE_PLUGIN_ROOT}/skills/guidance/references/${CLAUDE_PLUGIN_ROOT}/skills/guidance/references/skill-building-guidance/Map from decision to governing document (read just-in-time):
| Decision on the table | Read |
|---|---|
| Skill vs. agent vs. hook | plugin-entity-taxonomy.md |
| Use cases, trigger phrases, test cases | skill-building-guidance/use-case-planning.md |
| Directory name, file name, dependency prefix | skill-building-guidance/naming-conventions.md |
The description field (four components, boundaries) | skill-building-guidance/skill-description-frontmatter.md, skill-building-guidance/skill-description-length.md |
| Which frontmatter fields to set | skill-building-guidance/skill-frontmatter-fields.md |
| Where content lives (body vs. references vs. scripts vs. assets) | skill-building-guidance/progressive-disclosure.md, skill-building-guidance/skill-reference-files.md |
| Step structure and workflow shape | skill-building-guidance/workflow-patterns.md, skill-building-guidance/writing-effective-instructions.md |
allowed-tools, Bash permission granularity | skill-building-guidance/allowed-tools-bash-permissions.md, skill-building-guidance/allowed-tools-AskUserQuestion.md |
| Reading config / runtime data | skill-building-guidance/context-injection-commands.md, skill-building-guidance/dynamic-project-discovery.md |
| Running scripts | skill-building-guidance/script-execution-instructions.md |
| Dispatching agents from the skill | skill-building-guidance/agent-dispatch-namespacing.md, plus agent-building-guidelines/multi-agent-economics.md |
| Degraded environments (no git, missing tools) | skill-building-guidance/graceful-degradation.md, skill-building-guidance/optional-git-repositories.md |
| Frontmatter safety (angle brackets, YAML types) | skill-building-guidance/security-restrictions.md |
| Hardening fuzzy steps into deterministic ones | skill-building-guidance/hardening-fuzzy-vs-deterministic.md |
| Splitting or composing skills | skill-building-guidance/skill-decomposition.md, skill-building-guidance/skill-composition.md |
| Defining success and tests | skill-building-guidance/success-criteria-and-testing.md |
| New plugin needed (plugin.json, marketplace.json) | claude-marketplace-and-plugin-configuration/ and templates/ |
plugin.json, conventions, the guidance documents above — explore instead of asking. Only surface
questions that genuinely require the user's judgment.Read the user's argument and the conversation to extract what the skill should do. If the request is too thin to start (for example, just "build a skill"), ask the user for one or two sentences on what the skill should accomplish and what triggers it — nothing else yet.
Confirm the entity type before anything else. Read
${CLAUDE_PLUGIN_ROOT}/skills/guidance/references/plugin-entity-taxonomy.md and apply its decision heuristic. A skill
is a deterministic, flowchartable process ("Can I flowchart every path?" → skill). If the work is really contextual
judgment with no fixed flowchart, it is an agent — stop and recommend agent-builder. If it fires automatically on an
event, it is a hook. If the request bundles a deterministic process and a judgment layer, recommend building them
separately and composing them. Only proceed once a skill is the right entity.
Locate the target plugin and learn its conventions before asking the user anything beyond the framing. Use Glob, Grep,
and find to gather:
.claude-plugin/plugin.json (name, description, version). If the user has not
said which plugin, infer candidates from the repository and confirm the target in Step 4.{plugin}/skills/*/SKILL.md) — their descriptions, frontmatter, step structure, and
the trigger space they already own. New descriptions must disambiguate against these siblings in both directions.CLAUDE.md, AGENTS.md, and any project-discovery.md — repository conventions, the documentation root, and how
skills are catalogued.description mention.Record what was found (file paths) and what was not. A missing convention is itself a finding that shapes the skill.
Enumerate the decisions the skill needs, in dependency order. Resolve foundational decisions before dependent ones; never ask a dependent question before its parent is settled.
use-case-planning.md? What artifact or outcome does each use case produce?description say across all four components (what, when, boundary,
breadth), and how does it disambiguate against siblings in both directions?allowed-tools does each step need, at the right Bash granularity? Does the skill dispatch
agents (and are they available in this plugin)? Does it run scripts? Does it read runtime config via context
injection?references/ (templates, checklists, domain knowledge),
in scripts/ (deterministic operations), and in assets/ (output files)? What other frontmatter fields apply
(argument-hint, arguments, model, paths)?Keep each node a concrete decision with a candidate answer. Do not pre-fill the tree with content the user has not confirmed.
For each decision in dependency order:
Keep the interview moving — do not stall on questions the evidence can answer, and do not batch.
Create the skill directory and write the files:
{plugin}/skills/{skill-name}/ (use mkdir). The directory name is the slash command and must match the
frontmatter name.SKILL.md with:
name (matching the directory), the description settled in the interview, allowed-tools, and any
other settled fields. Never put AskUserQuestion in allowed-tools. No XML angle brackets in any frontmatter
value.Always/Never X BECAUSE Y), include error handling for tool-dependent steps, and reference any
bundled resource by exact path.references/, scripts/, or assets/ and their files only if a use case needs them. Domain knowledge
(templates, checklists, matrices) goes in references/; deterministic operations go in scripts/; output-only files
go in assets/. Do not create empty or speculative folders..claude-plugin/plugin.json, and a
marketplace entry if the repo uses one) per the claude-marketplace-and-plugin-configuration/ guidance and the
templates/.This is the review pass the skill commits to. Re-read each governing document that applies to what you built and verify the finished files against it, applying every fix directly. Do not summarize problems for the user without fixing them. Cover at minimum:
plugin-entity-taxonomy.md) — the skill is genuinely a flowchartable process, not a judgment layer
that should be an agent.skill-description-frontmatter.md, skill-description-length.md) — third person; covers what,
when, boundary, and trigger breadth; weaves trigger words into prose rather than appending a keyword list; names
sibling skills in boundary clauses; disambiguates in both directions (update the sibling's description if a one-way
gap exists); within 1024 characters.naming-conventions.md) — directory name matches name, is a process/gerund name when the output is a
plan or doc, carries a dependency prefix when an external tool is required, no README.md in the skill folder,
SKILL.md cased exactly.progressive-disclosure.md, skill-reference-files.md) — body is process only and under
500 lines; domain knowledge is in references/; scripts hold deterministic work; nothing the toolchain already
enforces is restated; every reference file is linked directly from SKILL.md rather than only through another
reference file, every reference link stays inside the plugin directory, and any reference file over roughly 100 lines
opens with a ## Contents list unless it is a template copied whole into output.writing-effective-instructions.md, workflow-patterns.md) — steps are specific and
actionable; constraints embed reasoning; error handling is present; human gates sit only at irreversible actions; the
most critical item in each list is placed last.allowed-tools-bash-permissions.md, allowed-tools-AskUserQuestion.md,
security-restrictions.md) — Bash permissions are scoped correctly with separate entries; AskUserQuestion is
absent from allowed-tools; no angle brackets or non-standard YAML in frontmatter.dynamic-project-discovery.md, graceful-degradation.md,
optional-git-repositories.md) — the skill discovers project specifics dynamically rather than hardcoding them, and
degrades gracefully when a tool or git is absent, where relevant.agent-dispatch-namespacing.md) — if the skill dispatches agents, every dispatch uses the qualified
defining-plugin:agent-name, and the agents actually exist in an installed plugin.success-criteria-and-testing.md) — each use case maps to a triggering and functional test the user can
run.Apply the YAGNI discipline throughout: every step, reference file, tool permission, and frontmatter field must earn its place against a real use case. Cut anything added "for completeness" or "for future flexibility."
Summarize for the user:
Note that plugin entities rarely land in one pass: per iterative-plugin-development.md, plan for 3-5 iterations. Ask
whether the user wants to iterate on specific steps or considers the skill ready to test.
Frequently asked questions
As your first action, use the Read tool on .han/config.md inside the personal config directory path above. A read that returns no file is no personal configuration: continue silently. When that file or the project .han/config.md probe supplies content, apply it per config-rule.m…
The source record exposes this install command: npx skills add https://github.com/testdouble/han --skill "han-plugin-builder/skills/skill-builder". Inspect the command and pinned source before running it.
The pinned source record declares support for: claude code.
Static rules flagged write-files in the source; the page lists the matching lines and excerpts.
Alternatives
oaustegard/claude-skills
Generate hierarchical _FEATURES.md files that describe what a codebase DOES from a user/consumer perspective, anchored to source symbols via tree-sitting. Supports large complex codebases through feature-driven decomposition into sub-feature files. Uses a multi-pass synthesis: orientation → detail → overview rewrite. Use when someone says "what does this do", "document features", "feature inventory", "_FEATURES.md", or needs to understand a codebase's purpose before modifying it. Complements tre
vasilyu1983/AI-Agents-public
Guides iOS testing with XCTest, XCUITest, Swift Testing, simctl, and xcresult. Use when choosing destinations, controlling flakes, or parsing test artifacts for native apps.
brucesongs/kali-claw
Insecure Design (OWASP A06:2025) focuses on security flaws in system architecture and design phases, rather than code implementation-level bugs.
vasilyu1983/AI-Agents-public
Designs and audits UI/UX systems with usability and accessibility requirements. Use when shaping flows, design systems, interaction patterns, or WCAG-aware product behavior.