Skip to content
cccskills
FreePublished on GitHub

ref-system-design-knowledge

システム設計知識の深いカード・一次資料・鮮度やシステム構成カテゴリのseed初期集合を参照したいとき、seed外の設計知識をopen-worldで発見・拡張したいときに使う。

The English summary is being prepared. Showing the original description.

See how to install

Files included (17)

  • SKILL.md12.1 KB
  • prompts/R1-system-design-knowledge.md4.7 KB
  • references/api-design-patterns.md4.3 KB
  • references/clean-architecture.md4.1 KB
  • references/clean-code.md4.2 KB
  • references/ddd.md4.2 KB
  • references/design-patterns.md3.9 KB
  • references/doctrine-anchor-registry.json4.6 KB
  • references/information-design.md11.0 KB
  • references/knowledge-card.schema.json2.4 KB
  • references/knowledge-catalog.json2.1 KB
  • references/open-world-knowledge-lifecycle.md6.1 KB
  • references/resource-map.yaml4.1 KB
  • references/secure-by-design.md4.5 KB
  • references/system-category-taxonomy.json2.4 KB
  • scripts/validate-knowledge-cards.py5.0 KB
  • tests/test_validate_knowledge_cards.py1.8 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

ref-system-design-knowledge

Runtime root contract

  • runtime_root_policy: host-skill-path を適用する。
  • Claude Codeでは CLAUDE_PLUGIN_ROOT をplugin rootとして使用する。
  • Codexではホストが提示したこの SKILL.md のabsolute pathから、plugin manifestを持つ祖先を上方探索して論理 PLUGIN_ROOT を解決する。
  • cwd からplugin rootを推測せず、literal placeholderをshellへ渡さない。各shell invocation内で解決済みabsolute pathを PLUGIN_ROOT に設定する。
  • prompts/ 配下はこのowner Skill契約を継承する。

Purpose & Output Contract

システム構築の仕様ヒアリングで参照する設計知識の参照正本。run-system-spec-elicit (C01) がカテゴリ初期集合を、run-system-spec-compile (C03) が各章の設計知識ポインタを、本スキルの references/ から引く。

入力: 参照要求カテゴリ (設計知識領域 or システム構成カテゴリ taxonomy)。 出力: 該当知識領域の深い知識カード、一次資料・鮮度情報、open-world発見playbook、およびカテゴリ×プラットフォーム taxonomy。 完了条件: 参照のみ。個別プロジェクトの設計判断そのものは elicit/compile 側の責務 (本スキルは知識源であって意思決定者ではない)。

境界: references/ 配下の system-category-taxonomy.json は C01 のカテゴリ初期集合の正本を兼ねる (prompt へ直書きせず本ファイルを SSOT とする)。現行の設計知識領域 (正本 = references/knowledge-catalog.json の entries。個数をここへ複製しない) と 8 カテゴリは網羅リストではなく seed examples である。C04 は ref/effect:none のため発見・取得・永続化を実行せず、発見方法と品質契約だけを提供する。実プロジェクトの discover/公式一次資料取得/project candidate 記録は C01/C02、curated promotion は保守担当の承認付き更新が担う。

各知識カードは references/knowledge-card.schema.json の必須概念に従い、目的・背景・解決する問題・中核概念・適用条件・非適用条件・トレードオフ/失敗モード・目的達成への寄与・一次資料・鮮度を保持する。浅い pointer-only 要約は正本カードとして受け入れない。

知識依存グラフ (goal-spec C13/C14)

references/knowledge-catalog.json は各 entry が typed 辺 (depends_on / refines / conflicts_with) を持つ知識依存グラフである。A depends_on B は「B が前提で B を A より先に出す」precedence DAG で、循環/dangling/root到達性/孤立 node と辺型則 (refines=有向精緻化・非循環、conflicts_with=対称非順序) を ${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/validate-knowledge-graph.py --profile knowledge が検証する。C01 (R5) / C03 (R2) はこの validator の位相順 (--order・上位概念→下位概念、同順位 knowledge_id 昇順) を同一 JSON として消費し、設計知識を上流から下流の順で章へ反映する。この validator が保証するのは well-formedness (形状・辺型則・写像全射) と位相順の決定性のみで、知識辺の意味妥当性 (依存関係が設計上正しいか) は content-review/human の未閉塞責務である。

doctrine anchor 写像 (goal-spec C15)

references/doctrine-anchor-registry.json は正本単位を system category でなくdesign concern とし、7 concern を 4 authority (presentation=Apple HIG / application-architecture・data-access=Clean Architecture / security・authentication=OWASP ASVS+Secrets Management / reliability・operations=Google SRE) へ 1 concern 1 authority で固定する (authority は 4 種で application-architecture↔data-access 等の複数 concern に共有されうる)。全 in-scope category は必要 concern へ全件写像され、C03 が各章生成時に category→concern→authority を上流指針として反映する (具体技術は直書きせず上流工程を導く)。registry 形状・concern_id 一意性 (authority 一意性ではない)・カテゴリ写像全射は ${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/validate-knowledge-graph.py --profile doctrine が、意味反映は content-review/human が検証する。未帰属 category は owner/reason/approval_state を持つ pending 例外として compile を保留する。

参照知識領域 (references/)

領域ファイル要点
Clean Architecturereferences/clean-architecture.md依存を内向きに保ち中核ルールを技術変化から守る (変更/テスト容易性の崩壊を防ぐ)
Design Patternsreferences/design-patterns.md変わる軸を局所化し変更の波及を止める設計語彙 (解く問題で選定・過剰適用回避)
API Design Patternsreferences/api-design-patterns.md他者依存の契約を壊さず進化させ再送安全にする (冪等性/後方互換/一貫エラー契約)
Secure by Designreferences/secure-by-design.md攻撃者前提で被害を封じ込める設計 (最小権限/多層防御/fail-closed/脅威モデル)
DDD (ドメイン駆動設計)references/ddd.mdドメインの複雑さに境界と共通言語で対処 (境界づけられたコンテキスト/集約/コアドメイン)
Clean Codereferences/clean-code.md変更し続けられる可読性を保つ (意図の命名/単一責務/副作用局所化/テスト容易性)
Information Design (情報設計)references/information-design.md表現物の情報を「文脈→棚卸し→グループ化→優先順位→削減→加工→形式選定→強弱→装飾」の順で設計する (装飾は最後で意味を運ぶ役)
システム構成 taxonomyreferences/system-category-taxonomy.jsonカテゴリ×canonical platform id (C01 初期集合の正本)
Open-world lifecyclereferences/open-world-knowledge-lifecycle.mddiscover→qualify→deepen→goal map→candidate→promotion→freshness audit
Knowledge catalogreferences/knowledge-catalog.jsonseed/card metadata と深度・鮮度 + typed 辺 (depends_on/refines/conflicts_with) の知識依存グラフ (goal-spec C13)
Doctrine anchor registryreferences/doctrine-anchor-registry.jsondesign concern→doctrine authority (Apple HIG/Clean Arch/OWASP/SRE) と全 category→concern 写像 (goal-spec C15)
Card schemareferences/knowledge-card.schema.json深い知識カード/project candidate の必須契約

使い方

  1. カテゴリ初期集合が必要なとき (C01 R1-init): references/system-category-taxonomy.json を Read し categories / platforms を取得する。
  2. 設計知識ポインタが必要なとき (C03 R2-render): 該当領域の references/*.md を Read し要点と一次資料 URL を章へ反映する。
  3. seed外の知識候補が必要なとき: references/open-world-knowledge-lifecycle.md を Read し、C01/C02 に発見・一次資料qualification・project candidate作成を委譲する。C04自身は検索や書込を行わない。
  4. 設計知識を位相順で消費するとき (C01 R5 / C03 R2): ${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/validate-knowledge-graph.py --profile knowledge --input references/knowledge-catalog.json --order の topo_order に従い上位概念→下位概念の順で反映する。
  5. 人間が読む表現物 (画面・report・slide・CLI 出力・通知・エラーメッセージ) を設計/レビューするとき: references/information-design.md を Read し、成果物側は ../../schemas/information-priority-map.schema.json 準拠の宣言を持つ。python3 ${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/validate-information-priority.py <map.json> が手順の順序制約 (順位確定→装飾) と削除/加工の説明責任を機械検査する (exit 0=OK / 1=違反 / 2=usage)。
  6. 章の上流指針が必要なとき (C03 R2): references/doctrine-anchor-registry.json の category_concern_map から対象カテゴリの concern を引き、concerns[].authority を上流 doctrine として章へ反映する (${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/validate-knowledge-graph.py --profile doctrine で写像全射を事前検証)。

Gotchas

  • exit 0 を「依存が正しい」と読まない: validator の保証範囲は上の「知識依存グラフ」節の通り well-formedness だけ。カード追加時は本文で依存の理由を述べること — 機械は理由の不在を検出しない。
  • カード追加はカタログ 1 行では終わらない: references/*.md 実体・knowledge-catalog.json entry・resource-map.yaml の read_when の三者が parity を保つ必要があり、加えて read_when の字面は下流の写像そのものである — run-system-spec-compile の category_design_refs() はハードコード表を持たず read_when へのカテゴリ id 部分一致で章の設計知識ポインタを導出する。read_when からカテゴリ名を言い換えただけで写像は静かに空へ落ちる (../run-system-spec-compile/tests/test_compile_spec_doc.py::test_category_design_refs_derived_from_resource_map が代表カテゴリを pin している)。
  • resource-map.yaml の path は references/ からの相対: skill 外の資産も載せてよく (run-system-spec-elicit が ../../../scripts/validate-coverage-matrix.py を列挙している)、基点は skill root ではなく references/ なので ../../scripts/… と書くと 1 段浅く外して解決しない。この誤りは repo 内に実在する — run-system-spec-compile の resource-map の skill 外 3 entry は全て ../../scripts/*.py で、references/ 起点では 1 本も解決しない (真似る先を間違えないこと)。frontmatter 側は逆に skill root 相対なので、同じ資産を両方へ書くと段数が 1 つずれる (揃えられない)。ただし validate-frontmatter.py:check_refs_exist が実在検査するのは rubric_refs / reference_refs / script_refs の 3 つだけで、schema_refs は検査対象外 — ここの段数ミスは機械では止まらない。
  • kind: ref は CI の content-review 対象外: scripts/lint-content-review.py の EXEMPT_KINDS に ref が入るため verdict 不在でも CI は緑になる。一方 stop hook (check-review-trigger.py) には同じ除外が無いので、変更すればローカルではレビューを求められる。CI が緑=レビュー済み、と読み替えないこと。
  • allowed-tools: [Read] は事故防止であって不便ではない: 検索・取得・書込を足したくなったら C01/C02 側へ置く (責務は上の「完了条件」と「境界」の通り)。ここに取得処理が入ると、参照した瞬間に内容が変わりうる正本になる。

責務プロンプト

  • prompts/R1-system-design-knowledge.md — 参照要求カテゴリを受けて該当 references を案内する 7 層責務プロンプト。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

アプリ・Webサービス・業務ツールの制作を、証拠分析→確定的な初稿→要件定義→体験設計→機能分解→実装→品質ゲート→リリース判定の手順ゲート制で進めるスキル。質問で要件を埋めるのではなく、依頼文・既存コード・資料・ログから最有力案を選び、動く成果物を先に出して差分で改善する。ユーザーが「アプリを作りたい」「ツールを作って」「〜を自動化したい」「システム化したい」「要件定義」「仕様を決めたい」「UI/UXを設計して」「体験を良くしたい」「機能を洗い出して」「MVPを決めたい」「品質チェック」「リリースしていいか判断して」などと言ったら必ず使用する。外部データの取込・マスタ・締め処理を伴う業務システムでは references/data-lifecycle.md も併用する。新規・既存を問わずアプリの制作・改善・リニューアルで使用する。

The English summary is being prepared. Showing the original description.

daishiman/harness-dev10Updated Oct 18, 2026

Webアプリの準備→要件定義→設計→実装→公開→品質ゲートを実行する内部オーケストレーター。Claude Codeの /build-app /improve-app、Codexの $build-app / $improve-app から明示的に委譲された場合、custom agent起動時、または利用者が $app-orchestrator を明示した場合だけ使用する。一般のアプリ相談から暗黙起動しない。

The English summary is being prepared. Showing the original description.

daishiman/harness-dev10Updated Oct 18, 2026

run-extract-blueprint が生成した章別ブループリントの忠実性を独立 context で評価したいとき、事実/推測区別と粒度と被覆を検証し draft_hash に束縛した PASS/FAIL verdict をローカル品質ゲート (C01 の周回内の受入判定・差し戻し) へ渡したいときに使う。

The English summary is being prepared. Showing the original description.

daishiman/harness-dev10Updated Oct 18, 2026

確認点で利用者が見る深さを選んだあと打ち合わせ資料を作り手とは別の目で確かめたいとき、正確さ・言葉・見た目・シンプルさの指摘を資料の編集なしで受け取りたいときに使う。

The English summary is being prepared. Showing the original description.

daishiman/harness-dev10Updated Oct 18, 2026

生成した handout 資料が初心者に伝わるか読みやすさレビューを依頼したいとき、独立 context のレビュアーから指摘と根拠つきの verdict を回収したいときに使う。

The English summary is being prepared. Showing the original description.

daishiman/harness-dev10Updated Oct 18, 2026

Notion ページを描画する直前に粒度を検証したいとき、info-collector-agent ページと同等の section 充足度を section_canonical_map 基準で機械検証したいときに使う。

The English summary is being prepared. Showing the original description.

daishiman/harness-dev10Updated Oct 18, 2026

See all skills by daishiman

Report a problem with this skill