From system-spec-harness
Fetches latest official documentation references for tools, infrastructure, and frameworks, recording host, version, update date, and source in fetched-references.json. Used before spec compilation or during elicitation to verify official sources.
How this skill is triggered — by the user, by Claude, or both
Slash command
/system-spec-harness:run-system-spec-doc-fetchThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
> システム仕様ヒアリングで使う予定の外部技術について、**最新公式ドキュメントの出典記録** `fetched-references.json` を都度取得して組み立てる run skill。起動経路は (a) `spec-compile` (C10) 前の未取得参照検出、(b) `run-system-spec-elicit` (C01) R2 ヒアリング中の裏取り要求の 2 系統。責務の正本は `prompts/R1-identify.md` / `R2-fetch.md` / `R3-record.md`。
prompts/R1-identify.mdprompts/R2-fetch.mdprompts/R3-record.mdprompts/R4-audit-doc-freshness.mdreferences/official-source-catalog.mdreferences/resource-map.yamlscripts/build-fetched-references.pytests/fixture-references-host-mismatch.jsontests/fixture-references-missing.jsontests/fixture-references-valid.jsontests/fixture-targets.jsontests/test_build_fetched_references.pyシステム仕様ヒアリングで使う予定の外部技術について、最新公式ドキュメントの出典記録
fetched-references.jsonを都度取得して組み立てる run skill。起動経路は (a)spec-compile(C10) 前の未取得参照検出、(b)run-system-spec-elicit(C01) R2 ヒアリング中の裏取り要求の 2 系統。責務の正本はprompts/R1-identify.md/R2-fetch.md/R3-record.md。
入力: spec-state.json (C01 出力) のtargets[]、decisions[].options[].evidence_refs候補、knowledge_candidates[]。ヒアリング/R5意思決定中の裏取りでは比較候補の公式文書・公式価格ページ。seed外knowledgeでは status=discovered candidateの一次資料を確認する。
出力: fetched-references.json (共有データ契約)。
意思決定候補の価格/無料枠/制約は変動するため、R5の推奨前に通常の鮮度契約(公式publisher/host、versionまたは更新日、retrieved/latest_checked_at)で再確認する。
完了条件: 下記「完了チェックリスト」を全充足 (IN1 = validate-source-citation.py exit0)。
上流指針 (doctrine anchor): 取得対象の技術は ref-system-design-knowledge/references/doctrine-anchor-registry.json の concern authority (presentation=Apple HIG / application-architecture・data-access=Clean Architecture / authentication・security=OWASP ASVS+Secrets Management / reliability・operations=Google SRE) が示す上流指針に沿った公式一次資料を優先取得する。取得した参照は IN1 の official_host 検証 (C13 citation gate) と併せて、C14 knowledge graph の位相順 (上位概念→下位概念) で後続 (C01/C03) の参照へ供給する。registry は具体技術を直書きせず上流工程を導くのみで、本 skill の取得対象 (target_id) 自体は spec-state.json が正本。
fetched-references.json の形状 (厳守):
{"references": [
{"target_id":"react","retrieved_at":"2026-07-11T00:00:00Z",
"source_url":"https://react.dev/reference/react","official_publisher":"Meta",
"official_host":"react.dev","version":"19.0",
"latest_checked_at":"2026-07-11T00:00:00Z","summary":"..."}
]}
target_id / retrieved_at / source_url / official_publisher / official_host / latest_checked_at / summary、および version か last_updated のいずれか。spec-state.targets[] の各 target_id に record が 1 件対応 (欠落 0・重複 0)。source_url の host が official_host と一致する。references/official-source-catalog.md)。fetched-references.json は都度生成。ミラーリングや永続キャッシュはしない。scripts/build-fetched-references.py で正規化し、validate-source-citation.py (IN1) で機械検証する。手書き JSON で緑化しない。retrieved_at/latest_checked_at は R2 が控えた実時刻をそのまま用いる (壁時計上書きなし = 再現性)。system-spec-doc-freshness-auditor, OUT1) の担当。本 skill は形式・全件・host 一致まで。open_issues GAP-MCP-DOCFETCH で保留)。target_id/URL/version/JSON キーは英語のまま。discovered candidateごとに公式/一次HTTPS資料を取得し、実確認時刻付きsource_refs[]を作る。C01の単一writer set-knowledge-candidate を通してのみ qualified へ進める。C02はdeep card作成やcurated昇格を代行しない。本 skill は固定手順ではなく、下記ゴールへ向けて完了チェックリストの未達項目を埋める手順を都度生成して反復する。局面カタログは順序固定でなく、未達に応じて選ぶメニュー。反復上限 =
feedback_contract.max_iterations(5)。
対象カテゴリで使う予定のツール/インフラ/フレームワークの最新公式ドキュメントが取得され、target_id 全件対応・公式 publisher/host・version または更新日・取得/確認時刻・参照元を保持した fetched-references.json が、現行版を再照合できる状態で確定している。
設計判断が古い情報に基づくと仕様全体が陳腐化する。最新の公式情報を都度取得し出典を追跡可能にすることで、後続の spec-compile が各章に確かな一次資料ポインタを添えられる。
spec-state.json 由来の取得対象一覧 (target_id 群) を捏造 0 で確定しているlast_updated のいずれかを持つsource_url の host が official_host と一致しているfetched-references.json が全件対応 (欠落 0・重複 0)validate-source-citation.py --targets <targets> --references fetched-references.json が exit0knowledge_candidates[] のdiscovered対象は、公式/一次HTTPS source_refs[] と実checked_atを得たものだけがqualifiedになっている正本 goal-seek-paradigm.md の 6 ステップ (現状評価→手順生成→実行→検証→Anchor Step→反復/差し戻し) に従う。IN1 違反は該当対象を R2 へ差し戻して取り直す。5 反復で埋まらない対象は理由を明示して呼出元 (C10 / C01 / ユーザー) へ差し戻す。
spec-state.json の targets[] と確定/収集中セルから外部技術を洗い出し target_id へ正規化する。詳細 = prompts/R1-identify.md。knowledge_candidates[] のdiscovered対象を取得一覧へ加え、R2が公式/一次HTTPS資料とchecked_atを取得する。C01のset-knowledge-candidateでqualifiedへ遷移する。WebSearch で公式 host を特定し WebFetch で現行版・要点・更新日を取得する。詳細 = prompts/R2-fetch.md / references/official-source-catalog.md。build-fetched-references.py assemble --records <素材> --targets <targets> --out fetched-references.json で組み立て、validate-source-citation.py で IN1 検証する。詳細 = prompts/R3-record.md。PLUGIN_ROOT="$(cd "$(dirname "$0")/../.." && pwd)" # plugins/system-spec-harness を指す
# R3 決定論組み立て (全件対応も同時検査)
python3 skills/run-system-spec-doc-fetch/scripts/build-fetched-references.py \
assemble --records records.json --targets targets.json --out fetched-references.json
# IN1 ゲート (共有 script)
python3 scripts/validate-source-citation.py \
--targets targets.json --references fetched-references.json
source_url は必ず official_host 配下のページにする (host 不一致は IN1 で弾かれる)。last_updated に記録する (version と両欠落は FAIL)。target_id は 1 件に束ねる (重複は FAIL)。prompts/R1-identify.md / prompts/R2-fetch.md / prompts/R3-record.md — 責務 SSOT (7 層)scripts/build-fetched-references.py — record 素材を契約形状へ正規化・全件突合する決定論 assemblerreferences/official-source-catalog.md — 公式 host 判定の指針と代表例references/resource-map.yaml — Progressive Disclosure 索引../../scripts/validate-source-citation.py — IN1 検証ゲート (plugin-root 共有 script)spec-compile (C10) / run-system-spec-elicit (C01) / system-spec-doc-freshness-auditor (C08 = OUT1)npx claudepluginhub p/daishiman-system-spec-harness-plugins-system-spec-harnessExtracts behavioral specifications from public documentation using a 3-tier search sequence, claim extraction rules, and gap analysis. Useful for researching product behavior.
Compiles collected spec-state.json and fetched-references.json into a multi-file specification document set with chapter Markdown files and index. Use when interview results need to be compiled into structured specifications.
Creates exhaustive technical references, API documentation, and searchable reference materials for APIs, configurations, schemas, and system interfaces.