/system-spec-harness:run-system-spec-doc-fetchfrom system-spec-harness
Fetches latest official documentation for target tools, infra, and frameworks, recording source host, version, update date, and check time into fetched-references.json before spec compilation.
Ships in system-spec-harness. 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; scripts run unread.
Purpose & Output Contractの最小の実成果物をmain contextで作成する。effect別のparse/open・secret・irreversible・corrupt guardだけを実行し、現物path・digest・開き方を提示してからaccept-as-is/diagnoseを記録する。accept-as-isはその場でhandoff完了とし、後続sectionを実行しない。
以下の既存workflow・goal-seek・評価・修正sectionはdiagnoseが記録されてsemantic_evaluator_startedへ遷移した場合だけ実行する。release/exhaustiveは別の明示eventを必要とする。
runtime_root_policy: host-skill-path を適用する。CLAUDE_PLUGIN_ROOT をplugin rootとして使用する。SKILL.md のabsolute pathから、plugin manifestを持つ祖先を上方探索して論理 PLUGIN_ROOT を解決する。cwd からplugin rootを推測せず、literal placeholderをshellへ渡さない。各shell invocation内で解決済みabsolute pathを PLUGIN_ROOT に設定する。prompts/ 配下はこのowner 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/R4-audit-doc-freshness.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、取得証跡 digest)で再確認する。
完了条件: 下記「完了チェックリスト」を全充足 (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",
"evidence_ref":"system-spec/retrieval-evidence/react.json",
"evidence_sha256":"<sha256>","summary":"..."}
]}
target_id / retrieved_at / source_url / official_publisher / official_host / latest_checked_at / evidence_ref / evidence_sha256 / summary、および version か last_updated のいずれか。evidence_ref は project root 相対、evidence_sha256 はその実ファイルの小文字16進数64桁 SHA-256 とする。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 または更新日・取得/確認時刻・参照元・内容 digest を保持した fetched-references.json が、現行版を再照合できる状態で確定している。
設計判断が古い情報に基づくと仕様全体が陳腐化する。最新の公式情報を都度取得し出典を追跡可能にすることで、後続の spec-compile が各章に確かな一次資料ポインタを添えられる。
spec-state.json 由来の取得対象一覧 (target_id 群) を捏造 0 で確定しているlast_updated のいずれかを持つsystem-spec/retrieval-evidence/<target_id>.json に残し、repo 相対 evidence_ref と SHA-256 evidence_sha256 でその内容へ束縛しているsource_url の host が official_host と一致しているfetched-references.json が全件対応 (欠落 0・重複 0)validate-source-citation.py --targets <targets> --references fetched-references.json --repo-root <project-root> が 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。# R3 決定論組み立て (全件対応も同時検査)
python3 "${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/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 "${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/validate-source-citation.py" \
--targets targets.json --references fetched-references.json --repo-root "$CLAUDE_PROJECT_DIR"
source_url は必ず official_host 配下のページにする (host 不一致は IN1 で弾かれる)。last_updated に記録する (version と両欠落は FAIL)。target_id は 1 件に束ねる (重複は FAIL)。version を更新したら同じ turn で summary 先頭領域の版番号も書き換える。末尾に再照合段落だけ足すと version は新しいのに散文は旧版を主張する「版ドリフト」になる。過去の照合は 鮮度再照合 (<実照会時刻>): / [以下は履歴] / [訂正 ...] のマーカー以降へ置く (書式規約の正本 = prompts/R3-record.md Layer 2、機械検査 = assembler の prose_version_drift())。prompts/R1-identify.md / prompts/R2-fetch.md / prompts/R3-record.md / prompts/R4-audit-doc-freshness.md — 責務 SSOT (7 層)。R4 は OUT1 (公式サイト再照合) を独立 context で担い、起動アダプタ ../../agents/system-spec-doc-freshness-auditor.md (C08) との差分は prompt 側を優先する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)examples/fixture-evidence/postgres.md (opens in a new tab)examples/fixture-evidence/react.md (opens in a new tab)prompts/R1-identify.md (opens in a new tab)prompts/R2-fetch.md (opens in a new tab)prompts/R3-record.md (opens in a new tab)prompts/R4-audit-doc-freshness.md (opens in a new tab)references/official-source-catalog.md (opens in a new tab)references/resource-map.yaml (opens in a new tab)scripts/build-fetched-references.py (opens in a new tab)tests/fixture-references-host-mismatch.json (opens in a new tab)tests/fixture-references-missing.json (opens in a new tab)tests/fixture-references-valid.json (opens in a new tab)tests/fixture-targets.json (opens in a new tab)tests/test_build_fetched_references.py (opens in a new tab)tests/test_freshness_prompt_contract.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/assign-system-spec-completeness-evaluator生成された仕様書ドキュメントセットの完成度を独立 context で評価したいとき、上位概念trace・意思決定・マトリクス網羅性・設計知識反映・最新ドキュメント出典・prompt品質の 6 観点で合否判定したいときに使う。/ref-system-design-knowledgeシステム設計知識の深いカード・一次資料・鮮度やシステム構成カテゴリのseed初期集合を参照したいとき、seed外の設計知識をopen-worldで発見・拡張したいときに使う。/run-skill-feedback既存スキルへの改善要望を構造化するとき、Notion 改善要望 DB へ登録するときに使う。npx claudepluginhub daishiman/harness-dev --plugin system-spec-harnessOther plugins' skills for the same job