/dev-graph:run-dev-graph-system-spec [--repo-root PATH] [--resume]from dev-graph
Ingests finalized system specifications and architecture into dev-graph with source lineage tracking. Runs system-spec-harness pipeline: elicitation, doc-fetch, compilation, and completeness evaluation.
Ships in dev-graph. 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を必要とする。
system-spec/、system-spec-harness manifest/entry points、任意の resume state。本 skill は仕様生成ロジックを持たない。system-spec-harness を起動し、確定成果物の検証と C02 取込だけを担う。
system-spec/ を解決し、plugin source/別 repo の content を拒否する。plugins/system-spec-harness/.claude-plugin/plugin.json の name が一致し、version が plugin-composition.yaml の external_dependencies.system-spec-harness.version の範囲に入り、かつ references/package-contract.json#entry_points.skills が run-system-spec-elicit, run-system-spec-doc-fetch, run-system-spec-compile, assign-system-spec-completeness-evaluator を持つことを確認する。公式manifestへharness専用キーを混在させず、不在/不一致は fallback を実装せず停止する。版の範囲の正本は composition で、frontmatter の R1 の summary にある >=0.1.0 は計画時の値である。repo_root を CLAUDE_PROJECT_DIR に export し、その固定 root へ移ってから書込む。evaluator には scripts/build-evaluation-context.py が receipt を再検証して出力した絶対パスの args を渡す。Skill の読込や fork で cwd が変わっても評価対象を変えない (R2)。source_lineage={origin_kind,plugin,path,version,digest,imported_at}, confirmation evidence, readiness を specification/architecture node に保存する。出力は import report (system-spec/index.md, imported node ids, lineage, confirmation_status, readiness)。feature は architecture_refs で参照し、内容を複製しない。1 feature→13 task は system-dev-planner の責務であり本 skill は扱わない。
../../scripts/validate-source-lineage.py --repo-root <DEV_GRAPH_ROOT> [--graph <path>] [--node-id <id> ...] を R0 (resume) と R3 (C02 import の後) の決定論 gate にする。origin_kind=system-spec-harness の node だけを対象に、source_path が repo 内の通常ファイルとして実在し、その生 bytes の sha256 が source_digest と一致するかを副作用なしで検査し、{status, checked, checked_node_ids, violations[]} を返す (exit 0=pass、1=violation、2=usage/入力エラー)。C02 (build-graph-node.py add) も同じ関数で登録前に検査し、解決しない lineage は source_lineage_unverified で拒否される。
system-spec/ に解決するか」の確認である。checked=0 (system-spec 由来の node がまだ無い。system-spec/ 未作成を含む) は再開する対象が無いので、新規作成として手順 3 へ進む。checked>=1 で exit 0 なら、取込済み node を保持したまま続きから再開する。violations[] の node/code/detail) をそのまま提示して停止する。artifact_created に留まり minimum_guard_pass を発火しない。artifact_presented/user_choice_recorded へ進まず、semantic evaluator・Agent fork も起動しない。利用者が取込元を戻すか再取込を選んだ後に R0 からやり直す。仕様書・アーキテクチャをplugins/system-spec-harness/の正規フローで構築し、出典・確定状態・上位目的traceを保ったままdev-graphのspecification/architectureノードへ取り込んだ状態になっている
system-spec-harnessが既に持つヒアリング、カテゴリ×platform matrix、公式出典、確定章保護、独立完成度評価を複製せず引用し、dev-graphはグラフ登録とlineage維持だけを担うため。本skillが取り込むarchitecture/specificationノードはfeature.architecture_refsから参照されfeatureのアーキテクチャ文脈を成す (複製せずlineage参照のみ・MM-12)
plugin-composition.yaml の version の範囲と required 4 entry points を満たすfrontmatter の goal_seek.engine: inline / fork: subagent / max_loops: 5 を実行契約とする。固定手順は使わず、未達 checklist と担当 prompts/*.md からその周回の操作を都度生成する。各周回で inner criterion を検証し、完了後は outer criterion の live trial/content review を最大 feedback_contract.max_iterations=3 周で評価する。
resolve-repo-context.py --mode write の JSON receipt を得て、repo_root が content_roots.repository の realpath と一致する場合だけ DEV_GRAPH_ROOT=<receipt.repo_root> に固定する。cwd から再解決しない。shell 変数は Bash の呼出しをまたいで残らないので、後の呼出しでは、開始時の receipt の repo_root の値をそのまま書いて代入する (pwd や C24 の再実行から作らない)。$DEV_GRAPH_ROOT/eval-log/run-dev-graph-system-spec-goal-spec.json へ、各 checklist の status/evidence を $DEV_GRAPH_ROOT/eval-log/run-dev-graph-system-spec-progress.json へ記録する。prompts/<R-id>.md を全文渡した独立 Agent でreceipt・実成果・受入条件を検証する。R0/R1/R2/R3それぞれの検証結果を必要とし、親の自己申告だけで閉じない。Agentが本処理を担当する場合も同じ正規経路と境界を守る。ユーザー判断が必要な境界だけ AskUserQuestion を使う。eval-log/run-dev-graph-system-spec/<R-id>/ に分け、集約 intermediate に別形状の行を混ぜない。親は各結果を6必須キーの周回記録へ統合して検証する。$DEV_GRAPH_ROOT/eval-log/run-dev-graph-system-spec-intermediate.jsonl へ original_goal、original_goal_hash、current_goal_snapshot、delta_from_original、merged_directive_for_next、drift_signal を append-only で記録する。次周回は直前の merged_directive_for_next を必須入力にする。merged_directive_for_next を入力する。同一周回内の既に開始した操作とread-only検証は並行できる。checklist には、完了チェックリストの各項目を順に書き、status を achieved か not_achieved にして evidence を添える。feedback_criteria には IN1 と OUT1 を1回ずつ書き、IN1 には各周回の検証結果を status に書く。OUT1 は、この run の後の live trial が判定するので、run の中では PASS と書かず status: external_pending と書く。achieved で、IN1 が PASS のときだけ完了する。各周回を閉じる前に、次の3ゲートを実行する。graphが未更新の周回もschema gateを省略しない。3つすべてexit 0のときだけ、その周回のIN1をPASSとしてprogressへ記録する。未実施・非0・実施待ちは not_achieved とし、残るゲートと次の操作を記録する。R3で後から通った結果を前の周回へ遡及しない。
DEV_GRAPH_ROOT='<開始時の receipt の repo_root>'
SYSTEM_SPEC_ROOT='<R1で検証した system-spec-harness plugin の絶対root>'
DEV_GRAPH_CODE_ROOT='<このSKILLを所有する dev-graph plugin の絶対root>'
SYSTEM_SPEC_DIR='<開始時receiptのcontent_roots.system_spec>'
GRAPH_PATH='<開始時receiptのlocal_state_paths.graph>'
python3 -B "$SYSTEM_SPEC_ROOT/scripts/validate-coverage-matrix.py" --matrix "$SYSTEM_SPEC_DIR/spec-state.json" --require-complete --require-basis --require-foundation &&
python3 -B "$SYSTEM_SPEC_ROOT/scripts/validate-source-citation.py" --targets "$SYSTEM_SPEC_DIR/spec-state.json" --references "$SYSTEM_SPEC_DIR/fetched-references.json" --state "$SYSTEM_SPEC_DIR/spec-state.json" --repo-root "$DEV_GRAPH_ROOT" &&
python3 -B "$DEV_GRAPH_CODE_ROOT/scripts/validate-graph-schema.py" --graph "$GRAPH_PATH" --repo-root "$DEV_GRAPH_ROOT" --strict-artifact-readiness
この実結果をprogressと6必須キーのintermediateへ記録した後、次の検査で中間成果物の欠落・goal drift・hash不一致をfail-closedにする。
DEV_GRAPH_ROOT='<開始時の receipt の repo_root>' && python3 - "$DEV_GRAPH_ROOT/eval-log/run-dev-graph-system-spec-goal-spec.json" "$DEV_GRAPH_ROOT/eval-log/run-dev-graph-system-spec-intermediate.jsonl" <<'PY'
import hashlib, json, sys
goal = json.load(open(sys.argv[1], encoding='utf-8'))
rows = [json.loads(line) for line in open(sys.argv[2], encoding='utf-8') if line.strip()]
required_keys = {'original_goal','original_goal_hash','current_goal_snapshot','delta_from_original','merged_directive_for_next','drift_signal'}
expected = hashlib.sha256(goal['original_goal'].encode('utf-8')).hexdigest()
assert rows, 'intermediate.jsonl is empty'
for row in rows:
assert required_keys <= row.keys(), required_keys - row.keys()
assert row['original_goal'] == goal['original_goal']
assert row['original_goal_hash'] == expected
PY
criteria:IN1: system-spec-harnessのcoverage/source citation gateとdev-graph schema gateが全てexit0である。criteria:OUT1: 確定成果物をsource lineage付きで引用し、同等のelicitation/compileロジックは複製0件、登録はC02経由だけにする。system-spec/ を読まず、C24 receipt の caller repo だけを content authority にする。python3 -B "<skill root>/scripts/build-evaluation-context.py" --context-receipt "<開始時の C24 receipt の絶対パス>" --output eval-log/system-spec-completeness-report.json を実行する。exit 0 の JSON の skill_args をそのまま Skill に渡す。helper は固定 receipt と現在の C24 identity/content root を照合し、repo 外・symlink 経由の書き先を拒否する。失敗時は evaluation_context_invalid で止め、手書き args で回避しない。--spec-dir・--output と report の spec_dir は、helper が得た絶対パスに揃える。これは当該実走の評価先を固定するローカル証跡であり、移動して再利用しない。C02 の evidence_ref と source lineage は repo 相対のまま保つ。report の評価先が取込元と違えば手で書き換えず、R2 の検証を通した新しい評価を1回だけ行う。それでも違えば FAIL。dry-run にも確定と同じ payload (confirmation_evidence を含む) を渡す (R2・R3)。architecture_refs と source lineage で参照する。What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
system-spec, dev-graph, source-lineage, specification-pipeline
npx claudepluginhub daishiman/harness-dev --plugin dev-graph10 skills in this plugin
/run-dev-graph-decompose大きな自然文構想を feature・architecture・機能間依存へマクロ分解したいとき、ready feature の system-dev-planner package を atomic 登録・binding 別投影したいときに使う。/run-dev-graph-initdev-graph を呼出し元 repository/worktree 内へ冪等初期化したいとき、6 content root と repo-local config/state/templates/hook fallback を安全に用意したいときに使う。/run-dev-graph-nodedev-graph artifact を正規 path へ atomic 追加・差分更新したいとき、system-dev-planner の exact 13 phase task package を all-or-none 登録したいときに使う。/run-dev-graph-renderdev-graph を静的 HTML に可視化したいとき、外部 CDN/npm なしの自己完結 SVG + inline JS 成果物を生成したいときに使う。/run-dev-graph-requirements確定 system spec と feature package から実装要件を導出したいとき、readiness 完了時だけ capability-build/task-graph build へ handoff したいときに使う。/run-dev-graph-schedulefeature ready と task ready を分離したいとき、依存・tracker parity・resource scope・active lease を満たす conflict-free batch を算出したいときに使う。Other plugins' skills for the same job