本文へ移動
cccskills
無料GitHub で公開

guidance

Authoritative guidance for building Claude Code skills, agents, and plugins, plus init and update steps that install and refresh the plugin-building skills in the current repository. Use when you need the rules or best practices for a skill, agent, hook, or plugin — designing, reviewing, hardening, or checking one against the guidance. Run with `init` to vendor the guidance, skill-builder, and agent-builder skills into the current repository (so they run with no dependency on this plugin) plus a path-scoped rule index, or `update` to refresh an already-vendored copy. Does not run an interview to build a new skill or agent from scratch — use skill-builder or agent-builder. Does not write feature code, review application code, or build non-plugin features.

インストール方法を見る

含まれるファイル(50)

  • SKILL.md7.2 KB
  • assets/guidance-portable-SKILL.md2.5 KB
  • assets/rule-index-body.md16.7 KB
  • references/agent-building-guidelines/agent-description-length.md10.9 KB
  • references/agent-building-guidelines/agent-domain-focus.md9.6 KB
  • references/agent-building-guidelines/agent-external-files.md9.0 KB
  • references/agent-building-guidelines/agent-model-selection.md9.3 KB
  • references/agent-building-guidelines/graceful-degradation.md2.6 KB
  • references/agent-building-guidelines/multi-agent-economics.md10.9 KB
  • references/claude-marketplace-and-plugin-configuration/marketplace-json-options.md11.0 KB
  • references/claude-marketplace-and-plugin-configuration/monitors-json-options.md3.6 KB
  • references/claude-marketplace-and-plugin-configuration/plugin-json-options.md11.7 KB
  • references/claude-marketplace-and-plugin-configuration/plugin-naming.md3.2 KB
  • references/claude-marketplace-and-plugin-configuration/themes-json-options.md5.8 KB
  • references/iterative-plugin-development.md8.5 KB
  • references/per-model-authoring.md11.8 KB
  • references/plugin-entity-taxonomy.md3.1 KB
  • references/skill-building-guidance/agent-dispatch-namespacing.md4.0 KB
  • references/skill-building-guidance/allowed-tools-AskUserQuestion.md3.7 KB
  • references/skill-building-guidance/allowed-tools-bash-permissions.md4.6 KB
  • references/skill-building-guidance/context-hygiene.md12.4 KB
  • references/skill-building-guidance/context-injection-commands.md26.1 KB
  • references/skill-building-guidance/cowork-specific-skill-instructions.md9.4 KB
  • references/skill-building-guidance/documentation-maintenance.md5.8 KB
  • references/skill-building-guidance/dynamic-project-discovery.md4.0 KB
  • references/skill-building-guidance/graceful-degradation.md5.0 KB
  • references/skill-building-guidance/hardening-fuzzy-vs-deterministic.md5.1 KB
  • references/skill-building-guidance/naming-conventions.md7.0 KB
  • references/skill-building-guidance/optional-git-repositories.md4.1 KB
  • references/skill-building-guidance/progressive-disclosure.md10.9 KB
  • references/skill-building-guidance/script-execution-instructions.md4.1 KB
  • references/skill-building-guidance/security-restrictions.md5.4 KB
  • references/skill-building-guidance/skill-composition.md11.0 KB
  • references/skill-building-guidance/skill-decomposition.md4.6 KB
  • references/skill-building-guidance/skill-description-frontmatter.md13.1 KB
  • references/skill-building-guidance/skill-description-length.md10.6 KB
  • references/skill-building-guidance/skill-frontmatter-fields.md10.2 KB
  • references/skill-building-guidance/skill-reference-files.md9.3 KB
  • references/skill-building-guidance/success-criteria-and-testing.md8.1 KB
  • references/skill-building-guidance/troubleshooting.md18.3 KB
  • references/skill-building-guidance/use-case-planning.md7.1 KB
  • references/skill-building-guidance/workflow-patterns.md14.8 KB
  • references/skill-building-guidance/writing-effective-instructions.md19.8 KB
  • references/specialization-and-model-selection.md7.1 KB
  • references/templates/marketplace-example.json4.4 KB
  • references/templates/monitors-example.json932 B
  • references/templates/plugin-example.json2.9 KB
  • references/templates/plugin-readme-template.md2.1 KB
  • references/templates/themes-example.json1.4 KB
  • scripts/init-guidance.sh5.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Project Context

  • personal config directory: !bash "${CLAUDE_PLUGIN_ROOT}/scripts/han-config-dir.sh" 2>/dev/null || echo "$HOME/.claude"
  • project .han/config.md: !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.

  • If the invocation argument is init or initialize (any case), run Initialization Mode.
  • If the invocation argument is update or refresh (any case), run Update Mode.
  • Otherwise, run Guidance Mode.

Guidance 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:

  • Deciding whether something should be a skill, agent, or hook → ${CLAUDE_SKILL_DIR}/references/plugin-entity-taxonomy.md.
  • Authoring or hardening a skill (descriptions, frontmatter, progressive disclosure, allowed-tools, scripts, composition, testing, troubleshooting) → the files under ${CLAUDE_SKILL_DIR}/references/skill-building-guidance/.
  • Authoring an agent (domain focus, self-containment, model selection, multi-agent economics, graceful degradation) → the files under ${CLAUDE_SKILL_DIR}/references/agent-building-guidelines/.
  • Plugin or marketplace configuration files (plugin.json, marketplace.json, monitors.json, themes.json) → the files under ${CLAUDE_SKILL_DIR}/references/claude-marketplace-and-plugin-configuration/.
  • Versioning, README structure, local development, the iterative development process, and specialization-versus-model-tier reasoning → the top-level files in ${CLAUDE_SKILL_DIR}/references/.
  • Writing the instructions for a target model (how Sonnet 5, Opus 5, and Fable 5 differ in following instructions, which instructions to leave out, and how to calibrate length, narration, and scope) → ${CLAUDE_SKILL_DIR}/references/per-model-authoring.md.
  • Copyable starter files → ${CLAUDE_SKILL_DIR}/references/templates/.

Steps:

  1. Identify what the user is building or asking about.
  2. List the relevant subdirectory under ${CLAUDE_SKILL_DIR}/references/ to see the available documents, using the map above.
  3. Read only the document(s) that directly apply.
  4. Apply the guidance to the user's situation. Cite the document you used so the user can read it in full if they want.

Initialization Mode

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.

  1. Run ${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.
  2. Report to the user what was written: the three vendored skills, the total file count, the rule index path, and the 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.
  3. Do not commit. Leave the new files staged for the user to review.

Update Mode

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.

  1. Check whether the skills are already installed at the expected location. Run 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.
  2. If the skills are not installed (the 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.
  3. If the skills are installed, run ${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.
  4. Report to the user what was refreshed: the three vendored skills, the total file count, the rule index path, and the paths: globs.
  5. Do not commit. Leave the changes staged for the user to review.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Builds 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.

日本語の概要は準備中です。原文の説明を表示しています。

testdouble/han2812026年10月1日 更新

Performs deep architectural analysis of a specified module, directory, or feature area by examining structural coupling, data flow, concurrency patterns, risk, and SOLID alignment. Use when the user wants to assess, evaluate, or review the architecture, design quality, dependency structure, coupling, cohesion, or technical debt of an existing part of the codebase. Not for investigating specific bugs, runtime errors, or failures — use investigate. Not for test planning — use automated-test-planning. Not for file-level code review — use code-review. Not for researching open-ended options, prior art, or how something works — use research. Not for designing a new interface or contract — use design-an-api. Not for planning the change its findings imply — use plan-a-change. Not for discovering bounded contexts, ubiquitous language, or where code boundaries diverge from domain boundaries — use ddd-analysis. Not for writing documentation or architectural decision records.

日本語の概要は準備中です。原文の説明を表示しています。

testdouble/han2812026年10月1日 更新

Create, extract, or convert an ADR (architectural decision record) using the ADR template. Use when creating new ADRs, extracting an ADR from existing documentation, converting a document into an ADR, recording an architecture or design decision, or updating the status of an existing ADR. Does not create or update enforceable coding standards or conventions — use coding-standard for that. Does not write feature or system documentation — use project-documentation instead.

日本語の概要は準備中です。原文の説明を表示しています。

testdouble/han2812026年10月1日 更新

Produce a standalone test plan by analyzing code for test coverage gaps and edge cases. Use when you need to create, generate, or draft a test plan for a branch, need to analyze test coverage, or need to identify what tests to write for specific files or directories. Does not produce a plain-language plan for a person to run tests by hand — use manual-test-planning for that. Does not write test code — use tdd to implement behavior test-first. Does not refine existing plans — use iterative-plan-review. Does not review code quality, security, or style — use code-review for full code review. Does not evaluate architectural testability or structural coupling — use architectural-analysis for architectural assessment.

日本語の概要は準備中です。原文の説明を表示しています。

testdouble/han2812026年10月1日 更新

Produces a human-readable, progressive-disclosure overview of unfamiliar code or a pull request's changes — why it exists (the real problem it solves or goal it serves for the business or a user), and from there what it does, how it flows, and where to start — so you can get up to speed before working on or reviewing it. Use when you want to understand, get oriented in, make sense of, explain, or get up to speed on a chunk of code, a file, a directory, a symbol, or a PR's changes. Writes the overview to a scratch file and changes no code. Does not review code quality or raise findings — use code-review for auditing changes or post-code-review-to-pr for posting them. Does not produce durable feature or system documentation — use project-documentation. Does not assess architecture or structural risk — use architectural-analysis. Does not diagnose bugs or root-cause failures — use investigate. Does not pace a person through the code one step at a time in conversation — use code-walkthrough.

日本語の概要は準備中です。原文の説明を表示しています。

testdouble/han2812026年10月1日 更新

Produces a progressive-disclosure overview of unfamiliar code or a pull request's changes with code-overview and publishes the resulting overview to a user-specified Confluence location. Use when the user wants code or a PR explained, oriented, or made sense of AND the overview posted to a Confluence space or page. Requires a configured Atlassian MCP server. Does not produce the overview to a local file only — use code-overview. Does not publish an arbitrary existing markdown file — use markdown-to-confluence. Does not document an already-understood feature to Confluence — use project-documentation-to-confluence. Does not root-cause a bug to Confluence — use investigate-to-confluence. Does not plan or specify a new feature to Confluence — use plan-a-feature-to-confluence. Does not publish to Jira — use work-items-to-jira.

日本語の概要は準備中です。原文の説明を表示しています。

testdouble/han2812026年10月1日 更新

testdouble のスキルをすべて見る

このスキルの問題を報告する