/han-plugin-builder:guidancefrom han-plugin-builder
Authoritative guidance for building Claude Code skills, agents, and plugins. Use when designing, reviewing, or hardening plugins or checking them against best practices. Provides init/update commands to vendor the guidance into a repository.
Ships in han-plugin-builder. 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.
Read when SKILL.md points to them.
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.
This skill has three modes. Pick the mode from how it was invoked, then follow only that mode's steps.
init or initialize (any case), run Initialization Mode.update or refresh (any case), run Update Mode.Serve the relevant guidance for what the user is building. Do not read every guidance document — that defeats the purpose. Find the one or two that apply, read them, and apply them.
The guidance documents live in this skill's own references/ directory. Use this map to choose, then read only the
specific file(s) you need:
${CLAUDE_SKILL_DIR}/references/plugin-entity-taxonomy.md.${CLAUDE_SKILL_DIR}/references/skill-building-guidance/.${CLAUDE_SKILL_DIR}/references/agent-building-guidelines/.${CLAUDE_SKILL_DIR}/references/claude-marketplace-and-plugin-configuration/.${CLAUDE_SKILL_DIR}/references/.${CLAUDE_SKILL_DIR}/references/per-model-authoring.md.${CLAUDE_SKILL_DIR}/references/templates/.Steps:
${CLAUDE_SKILL_DIR}/references/ to see the available documents, using the map
above.Install the plugin-building skills into the current repository so anyone using the repo can run them and consult the guidance, with no dependency on this plugin remaining installed.
${CLAUDE_SKILL_DIR}/scripts/init-guidance.sh from the repository root. The script vendors three skills into
.claude/skills/ under a plugin- prefix so they never collide with this plugin's own slash commands: a
guidance-only plugin-guidance skill (whose references/ directory is the single in-repo copy of the guidance
documents), plugin-skill-builder, and plugin-agent-builder (with their names, cross-references, and guidance
paths rewritten to that vendored copy). It then writes the path-scoped rule index at
.claude/rules/plugin-building-guidance.md. Capture its output.paths: globs. Explain that the three skills are now available directly in the repo (/plugin-guidance,
/plugin-skill-builder, /plugin-agent-builder) and that the rule index is an index only — Claude Code loads it
when a matching skill or agent file is touched, and it points to the vendored guidance so only the documents the
current file needs are loaded, not all of them.Refresh the vendored skills and their rule index in a repository that already has them, so contributors get the current
skills and guidance after this plugin has been updated. Updating is the same vendoring operation as Initialization Mode
— it replaces every vendored skill in full (each SKILL.md and the guidance documents under
plugin-guidance/references/, removing any files that the plugin source has since dropped) and regenerates the rule
index — but it first confirms the skills are actually installed before touching anything.
find .claude -maxdepth 3 \( -path '*/skills/plugin-guidance' -o -name plugin-building-guidance.md \) from the
repository root. The skills are installed only when both the .claude/skills/plugin-guidance directory and the
.claude/rules/plugin-building-guidance.md rule index turn up.find turns up neither, or only one of the two), do not update. Tell the
user the skills are not installed at the expected location (.claude/skills/plugin-guidance/ and
.claude/rules/plugin-building-guidance.md) and ask whether they want to install them now. If they confirm, switch
to Initialization Mode and run its steps. If they decline, stop without writing anything.${CLAUDE_SKILL_DIR}/scripts/init-guidance.sh from the repository root. The
script removes each vendored skill directory and re-copies it fresh from the plugin source, so every SKILL.md and
every guidance document under plugin-guidance/references/ is replaced with the current version (and any file the
plugin has since removed is dropped), then regenerates the rule index at .claude/rules/plugin-building-guidance.md.
Capture its output.paths: globs.assets/guidance-portable-SKILL.md (opens in a new tab)assets/rule-index-body.md (opens in a new tab)references/agent-building-guidelines/agent-description-length.md (opens in a new tab)references/agent-building-guidelines/agent-domain-focus.md (opens in a new tab)references/agent-building-guidelines/agent-external-files.md (opens in a new tab)references/agent-building-guidelines/agent-model-selection.md (opens in a new tab)references/agent-building-guidelines/graceful-degradation.md (opens in a new tab)references/agent-building-guidelines/multi-agent-economics.md (opens in a new tab)references/claude-marketplace-and-plugin-configuration/marketplace-json-options.md (opens in a new tab)references/claude-marketplace-and-plugin-configuration/monitors-json-options.md (opens in a new tab)references/claude-marketplace-and-plugin-configuration/plugin-json-options.md (opens in a new tab)references/claude-marketplace-and-plugin-configuration/plugin-naming.md (opens in a new tab)references/claude-marketplace-and-plugin-configuration/themes-json-options.md (opens in a new tab)references/iterative-plugin-development.md (opens in a new tab)references/per-model-authoring.md (opens in a new tab)references/plugin-entity-taxonomy.md (opens in a new tab)references/skill-building-guidance/agent-dispatch-namespacing.md (opens in a new tab)references/skill-building-guidance/allowed-tools-AskUserQuestion.md (opens in a new tab)references/skill-building-guidance/allowed-tools-bash-permissions.md (opens in a new tab)references/skill-building-guidance/context-hygiene.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
plugin-building, skill-authoring, agent-guidelines, hardening
npx claudepluginhub testdouble/han --plugin han-plugin-builder3 skills in this plugin
/agent-builderBuilds a new Claude Code agent (subagent) from scratch through a relentless, evidence-based interview that walks the agent's design tree decision-by-decision — entity fit, domain focus and vocabulary, role identity, anti-patterns, description, model tier, tools, and self-containment — then reviews the finished agent against the plugin-building guidance and applies every fix it finds. Use when creating, authoring, scaffolding, designing, or drafting a new agent or subagent. Does not build a skill or slash command — use skill-builder. Does not serve, vendor, or refresh the authoring guidance itself — use guidance.
/skill-builderBuilds 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-builder. Does not serve, vendor, or refresh the authoring guidance itself — use guidance.
2 plugins ship this exact skill · first indexed Aug 21, 2026
Other plugins' skills for the same job