{"slug":"skill-builder-6","title":"skill-builder","summary":"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 skil","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-10-15T13:12:03.09765Z","repo":{"url":"https://github.com/testdouble/han","stars":303,"forks":24,"license":"MIT","updatedAt":"2026-10-14T20:22:28Z"},"bodyHtml":"<hr>\n<h2>name: skill-builder\ndescription: &gt;\nBuilds a new Claude Code skill from scratch through a relentless, evidence-based interview that walks the skill's\ndesign tree decision-by-decision — entity fit, use cases, name, description, workflow steps, tools, and\nprogressive-disclosure layout — then reviews the finished skill against the plugin-building guidance and applies every\nfix it finds. Use when creating, authoring, scaffolding, designing, or drafting a new skill or slash command. Does not\nbuild an agent or subagent — use agent-builder. Does not serve, vendor, or refresh the authoring guidance itself — use\nguidance.\nallowed-tools:\nRead, Write, Edit, Glob, Grep, Bash(find *), Bash(mkdir *),\nBash(bash \"$/scripts/han-config-dir.sh\")</h2>\n<h2>Project Context</h2>\n<ul>\n<li>personal config directory: !<code>bash \"${CLAUDE_PLUGIN_ROOT}/scripts/han-config-dir.sh\" 2&gt;/dev/null || echo \"$HOME/.claude\"</code></li>\n<li>project .han/config.md: !<code>cat .han/config.md 2&gt;/dev/null || echo \"\"</code></li>\n</ul>\n<p>As your first action, use the Read tool on <code>.han/config.md</code> inside the <code>personal config directory</code> path above. A read\nthat returns no file is no personal configuration: continue silently. When that file or the <code>project .han/config.md</code>\nprobe supplies content, apply it per <a href=\"../../references/config-rule.md\">config-rule.md</a>, which governs precedence\nbetween the two files, relative-path resolution, and what to do with a file that reads but cannot be used.</p>\n<h2>Guidance Location</h2>\n<p>The authoritative skill-authoring guidance ships in this plugin. Read the specific document a decision needs, when that\ndecision is on the table — never read them all up front, because that defeats progressive disclosure and burns context\non guidance the current skill does not touch.</p>\n<ul>\n<li>Plugin-building guidance root: <code>${CLAUDE_PLUGIN_ROOT}/skills/guidance/references/</code></li>\n<li>Skill-specific guidance: <code>${CLAUDE_PLUGIN_ROOT}/skills/guidance/references/skill-building-guidance/</code></li>\n</ul>\n<p>Map from decision to governing document (read just-in-time):</p>\n<table>\n<thead>\n<tr>\n<th>Decision on the table</th>\n<th>Read</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Skill vs. agent vs. hook</td>\n<td><code>plugin-entity-taxonomy.md</code></td>\n</tr>\n<tr>\n<td>Use cases, trigger phrases, test cases</td>\n<td><code>skill-building-guidance/use-case-planning.md</code></td>\n</tr>\n<tr>\n<td>Directory name, file name, dependency prefix</td>\n<td><code>skill-building-guidance/naming-conventions.md</code></td>\n</tr>\n<tr>\n<td>The <code>description</code> field (four components, boundaries)</td>\n<td><code>skill-building-guidance/skill-description-frontmatter.md</code>, <code>skill-building-guidance/skill-description-length.md</code></td>\n</tr>\n<tr>\n<td>Which frontmatter fields to set</td>\n<td><code>skill-building-guidance/skill-frontmatter-fields.md</code></td>\n</tr>\n<tr>\n<td>Where content lives (body vs. references vs. scripts vs. assets)</td>\n<td><code>skill-building-guidance/progressive-disclosure.md</code>, <code>skill-building-guidance/skill-reference-files.md</code></td>\n</tr>\n<tr>\n<td>Step structure and workflow shape</td>\n<td><code>skill-building-guidance/workflow-patterns.md</code>, <code>skill-building-guidance/writing-effective-instructions.md</code></td>\n</tr>\n<tr>\n<td><code>allowed-tools</code>, Bash permission granularity</td>\n<td><code>skill-building-guidance/allowed-tools-bash-permissions.md</code>, <code>skill-building-guidance/allowed-tools-AskUserQuestion.md</code></td>\n</tr>\n<tr>\n<td>Reading config / runtime data</td>\n<td><code>skill-building-guidance/context-injection-commands.md</code>, <code>skill-building-guidance/dynamic-project-discovery.md</code></td>\n</tr>\n<tr>\n<td>Running scripts</td>\n<td><code>skill-building-guidance/script-execution-instructions.md</code></td>\n</tr>\n<tr>\n<td>Dispatching agents from the skill</td>\n<td><code>skill-building-guidance/agent-dispatch-namespacing.md</code>, plus <code>agent-building-guidelines/multi-agent-economics.md</code></td>\n</tr>\n<tr>\n<td>Degraded environments (no git, missing tools)</td>\n<td><code>skill-building-guidance/graceful-degradation.md</code>, <code>skill-building-guidance/optional-git-repositories.md</code></td>\n</tr>\n<tr>\n<td>Frontmatter safety (angle brackets, YAML types)</td>\n<td><code>skill-building-guidance/security-restrictions.md</code></td>\n</tr>\n<tr>\n<td>Hardening fuzzy steps into deterministic ones</td>\n<td><code>skill-building-guidance/hardening-fuzzy-vs-deterministic.md</code></td>\n</tr>\n<tr>\n<td>Splitting or composing skills</td>\n<td><code>skill-building-guidance/skill-decomposition.md</code>, <code>skill-building-guidance/skill-composition.md</code></td>\n</tr>\n<tr>\n<td>Defining success and tests</td>\n<td><code>skill-building-guidance/success-criteria-and-testing.md</code></td>\n</tr>\n<tr>\n<td>New plugin needed (plugin.json, marketplace.json)</td>\n<td><code>claude-marketplace-and-plugin-configuration/</code> and <code>templates/</code></td>\n</tr>\n</tbody>\n</table>\n<h2>Operating Principles</h2>\n<ul>\n<li><strong>Interview relentlessly, but explore first.</strong> Interview the user relentlessly about every aspect of the skill until\nyou reach a shared understanding. Walk down each branch of the design tree, resolving dependencies between decisions\none-by-one. <strong>If a question can be answered by exploring the repository — the target plugin's existing skills, sibling\ndescriptions, <code>plugin.json</code>, conventions, the guidance documents above — explore instead of asking.</strong> Only surface\nquestions that genuinely require the user's judgment.</li>\n<li><strong>Ask one question at a time.</strong> Never batch questions. Settle one decision, let its answer resolve dependent\ndecisions, then ask the next. Later answers routinely make earlier questions moot.</li>\n<li><strong>Recommend, then ask.</strong> For every question surfaced to the user, provide a recommended answer with rationale grounded\nin evidence (existing skills, conventions, the guidance, the user's stated goal). The user can accept, amend, or\nredirect.</li>\n<li><strong>Apply guidance as you go, then verify at the end.</strong> Consult the governing document when a decision is on the table\n(Step 4), and run a full guidance-conformance pass over the finished files at the end (Step 6). The interview gets\neach decision approximately right; the review pass makes the artifact correct.</li>\n</ul>\n<h1>Build a Skill</h1>\n<h2>Step 1: Capture the Request and Confirm It Is a Skill</h2>\n<p>Read the user's argument and the conversation to extract what the skill should do. If the request is too thin to start\n(for example, just \"build a skill\"), ask the user for one or two sentences on what the skill should accomplish and what\ntriggers it — nothing else yet.</p>\n<p><strong>Confirm the entity type before anything else.</strong> Read\n<code>${CLAUDE_PLUGIN_ROOT}/skills/guidance/references/plugin-entity-taxonomy.md</code> and apply its decision heuristic. A skill\nis a deterministic, flowchartable process (\"Can I flowchart every path?\" → skill). If the work is really contextual\njudgment with no fixed flowchart, it is an agent — stop and recommend <code>agent-builder</code>. If it fires automatically on an\nevent, it is a hook. If the request bundles a deterministic process <em>and</em> a judgment layer, recommend building them\nseparately and composing them. Only proceed once a skill is the right entity.</p>\n<h2>Step 2: Discover Before Asking</h2>\n<p>Locate the target plugin and learn its conventions before asking the user anything beyond the framing. Use Glob, Grep,\nand <code>find</code> to gather:</p>\n<ul>\n<li>The target plugin directory and its <code>.claude-plugin/plugin.json</code> (name, description, version). If the user has not\nsaid which plugin, infer candidates from the repository and confirm the target in Step 4.</li>\n<li>Sibling skills in that plugin (<code>{plugin}/skills/*/SKILL.md</code>) — their descriptions, frontmatter, step structure, and\nthe trigger space they already own. New descriptions must disambiguate against these siblings in both directions.</li>\n<li><code>CLAUDE.md</code>, <code>AGENTS.md</code>, and any <code>project-discovery.md</code> — repository conventions, the documentation root, and how\nskills are catalogued.</li>\n<li>Whether the skill needs an external tool (gh, jq, an MCP server). External dependencies drive the directory-name\nprefix and a <code>description</code> mention.</li>\n</ul>\n<p>Record what was found (file paths) and what was not. A missing convention is itself a finding that shapes the skill.</p>\n<h2>Step 3: Build the Design Tree</h2>\n<p>Enumerate the decisions the skill needs, in dependency order. Resolve foundational decisions before dependent ones;\nnever ask a dependent question before its parent is settled.</p>\n<ol>\n<li><strong>Foundational</strong> — Which plugin owns it? What are the 2-3 concrete use cases (trigger phrase, workflow, tools, domain\nknowledge) per <code>use-case-planning.md</code>? What artifact or outcome does each use case produce?</li>\n<li><strong>Identity</strong> — What is the directory name (which becomes the slash command)? Does it follow the gerund/process-name\nand dependency-prefix rules? What does the <code>description</code> say across all four components (what, when, boundary,\nbreadth), and how does it disambiguate against siblings in both directions?</li>\n<li><strong>Workflow</strong> — Which workflow pattern fits (sequential, iterative, context-aware, domain-specific, or a combination)?\nWhat are the numbered steps? Where do human gates belong (before irreversible or outward-facing actions only)?</li>\n<li><strong>Capabilities</strong> — What <code>allowed-tools</code> does each step need, at the right Bash granularity? Does the skill dispatch\nagents (and are they available in this plugin)? Does it run scripts? Does it read runtime config via context\ninjection?</li>\n<li><strong>Layout</strong> — What belongs in the SKILL.md body (process), in <code>references/</code> (templates, checklists, domain knowledge),\nin <code>scripts/</code> (deterministic operations), and in <code>assets/</code> (output files)? What other frontmatter fields apply\n(<code>argument-hint</code>, <code>arguments</code>, <code>model</code>, <code>paths</code>)?</li>\n</ol>\n<p>Keep each node a concrete decision with a candidate answer. Do not pre-fill the tree with content the user has not\nconfirmed.</p>\n<h2>Step 4: Interview Loop — One Branch at a Time</h2>\n<p>For each decision in dependency order:</p>\n<ol>\n<li><strong>Try to resolve it from evidence.</strong> Re-check the target plugin, sibling skills, conventions, and the governing\nguidance document for this decision (see the map above). If the evidence answers it, record the decision with its\nevidence and move on — do not ask.</li>\n<li><strong>If evidence is insufficient, draft a recommended answer</strong> grounded in the guidance and the evidence available. Read\nthe governing document first so the recommendation is correct, not improvised.</li>\n<li><strong>Surface one question to the user</strong>, with the recommendation, the rationale, and the alternatives. State what\nchanges depending on the answer. Wait for the answer before asking anything else.</li>\n<li><strong>Descend.</strong> Once a decision is settled, re-evaluate which dependent decisions the new answer resolves, and continue.</li>\n</ol>\n<p>Keep the interview moving — do not stall on questions the evidence can answer, and do not batch.</p>\n<h2>Step 5: Write the Skill</h2>\n<p>Create the skill directory and write the files:</p>\n<ol>\n<li>Create <code>{plugin}/skills/{skill-name}/</code> (use <code>mkdir</code>). The directory name is the slash command and must match the\nfrontmatter <code>name</code>.</li>\n<li>Write <code>SKILL.md</code> with:\n<ul>\n<li>Frontmatter: <code>name</code> (matching the directory), the <code>description</code> settled in the interview, <code>allowed-tools</code>, and any\nother settled fields. <strong>Never put <code>AskUserQuestion</code> in <code>allowed-tools</code>.</strong> No XML angle brackets in any frontmatter\nvalue.</li>\n<li>A body of numbered process steps following the chosen workflow pattern. Be specific and actionable, embed reasoning\nin constraints (<code>Always/Never X BECAUSE Y</code>), include error handling for tool-dependent steps, and reference any\nbundled resource by exact path.</li>\n</ul>\n</li>\n<li>Create <code>references/</code>, <code>scripts/</code>, or <code>assets/</code> and their files only if a use case needs them. Domain knowledge\n(templates, checklists, matrices) goes in <code>references/</code>; deterministic operations go in <code>scripts/</code>; output-only files\ngo in <code>assets/</code>. Do not create empty or speculative folders.</li>\n<li>If the skill belongs in a brand-new plugin, create the plugin scaffold (<code>.claude-plugin/plugin.json</code>, and a\nmarketplace entry if the repo uses one) per the <code>claude-marketplace-and-plugin-configuration/</code> guidance and the\n<code>templates/</code>.</li>\n</ol>\n<h2>Step 6: Full Guidance-Conformance Review</h2>\n<p>This is the review pass the skill commits to. Re-read each governing document that applies to what you built and verify\nthe finished files against it, applying every fix directly. Do not summarize problems for the user without fixing them.\nCover at minimum:</p>\n<ol>\n<li><strong>Entity fit</strong> (<code>plugin-entity-taxonomy.md</code>) — the skill is genuinely a flowchartable process, not a judgment layer\nthat should be an agent.</li>\n<li><strong>Description</strong> (<code>skill-description-frontmatter.md</code>, <code>skill-description-length.md</code>) — third person; covers what,\nwhen, boundary, and trigger breadth; weaves trigger words into prose rather than appending a keyword list; names\nsibling skills in boundary clauses; disambiguates in both directions (update the sibling's description if a one-way\ngap exists); within 1024 characters.</li>\n<li><strong>Naming</strong> (<code>naming-conventions.md</code>) — directory name matches <code>name</code>, is a process/gerund name when the output is a\nplan or doc, carries a dependency prefix when an external tool is required, no <code>README.md</code> in the skill folder,\n<code>SKILL.md</code> cased exactly.</li>\n<li><strong>Progressive disclosure</strong> (<code>progressive-disclosure.md</code>, <code>skill-reference-files.md</code>) — body is process only and under\n500 lines; domain knowledge is in <code>references/</code>; scripts hold deterministic work; nothing the toolchain already\nenforces is restated; every reference file is linked directly from SKILL.md rather than only through another\nreference file, every reference link stays inside the plugin directory, and any reference file over roughly 100 lines\nopens with a <code>## Contents</code> list unless it is a template copied whole into output.</li>\n<li><strong>Instruction quality</strong> (<code>writing-effective-instructions.md</code>, <code>workflow-patterns.md</code>) — steps are specific and\nactionable; constraints embed reasoning; error handling is present; human gates sit only at irreversible actions; the\nmost critical item in each list is placed last.</li>\n<li><strong>Tools and safety</strong> (<code>allowed-tools-bash-permissions.md</code>, <code>allowed-tools-AskUserQuestion.md</code>,\n<code>security-restrictions.md</code>) — Bash permissions are scoped correctly with separate entries; <code>AskUserQuestion</code> is\nabsent from <code>allowed-tools</code>; no angle brackets or non-standard YAML in frontmatter.</li>\n<li><strong>Discovery and degradation</strong> (<code>dynamic-project-discovery.md</code>, <code>graceful-degradation.md</code>,\n<code>optional-git-repositories.md</code>) — the skill discovers project specifics dynamically rather than hardcoding them, and\ndegrades gracefully when a tool or git is absent, where relevant.</li>\n<li><strong>Dispatch</strong> (<code>agent-dispatch-namespacing.md</code>) — if the skill dispatches agents, every dispatch uses the qualified\n<code>defining-plugin:agent-name</code>, and the agents actually exist in an installed plugin.</li>\n<li><strong>Tests</strong> (<code>success-criteria-and-testing.md</code>) — each use case maps to a triggering and functional test the user can\nrun.</li>\n</ol>\n<p>Apply the YAGNI discipline throughout: every step, reference file, tool permission, and frontmatter field must earn its\nplace against a real use case. Cut anything added \"for completeness\" or \"for future flexibility.\"</p>\n<h2>Step 7: Present and Hand Off</h2>\n<p>Summarize for the user:</p>\n<ul>\n<li>The files written (paths), and what each contains.</li>\n<li>The decisions settled by evidence versus by user input.</li>\n<li>The fixes the Step 6 review applied, citing the guidance document behind each.</li>\n<li>The triggering and functional tests derived from the use cases, so the user can validate the skill against the model\ntier it targets.</li>\n</ul>\n<p>Note that plugin entities rarely land in one pass: per <code>iterative-plugin-development.md</code>, plan for 3-5 iterations. Ask\nwhether the user wants to iterate on specific steps or considers the skill ready to test.</p>\n","files":[{"path":"SKILL.md","sizeBytes":16610,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-10-15T13:13:05.057496Z","sha256":"B0C370077AAB5DB3E43E7DA08ABEB20716742FCDC005128AC75B7CEAFA1DC4A3","sizeBytes":5996},"review":null,"source":{"repositoryUrl":"https://github.com/testdouble/han","path":"han-plugin-builder/skills/skill-builder","license":"MIT","commit":"abba73a773528905a8f3d15956029394746e5c7f","subtreeSha":"4D35D0C9D3EBF8DFB946662331A926EE80B09D4FE5A62E19CAE5B323DCC55BD2","lastSyncedAt":"2026-10-15T13:11:53.672149Z"},"reviewedAt":"2026-10-15T13:15:01.501786Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/testdouble/han/tree/main/han-plugin-builder/skills/skill-builder"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install testdouble-han@llmmart"},{"target":"git","command":"git clone https://github.com/testdouble/han.git"}]}