一键导入
graphrag-vault-init
vault (ナレッジグラフ) の初期構築。system vault (コード/プロダクト知識) と project vault (時限イニシアチブ) の両方に対応。「vault を作りたい」「初期構築したい」「新しいプロジェクトを管理したい」「リポジトリを索引したい」で発火。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
vault (ナレッジグラフ) の初期構築。system vault (コード/プロダクト知識) と project vault (時限イニシアチブ) の両方に対応。「vault を作りたい」「初期構築したい」「新しいプロジェクトを管理したい」「リポジトリを索引したい」で発火。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
context が埋まって消える前に、いま価値あるものを全部グラフへ吐き出す「最終フラッシュ」。長時間セッションで compact の盲目的要約に任せず狙って残し、`/clear` で綺麗に再開できるようにする。「checkpoint 取って」「コンテキスト埋まってきたから状態を保存」「clear する前に退避して」「compact される前に退避して」で発火。人間が余力のある頃合いで手動発火する (自動検出はしない)。退避後に `/clear` すると SessionStart フックが直前の作業状態を自動で戻す (このskillは退避側)。スラッシュ: /graphrag-knowledge:graphrag-checkpoint
This skill should be used when the user asks to "operate a remote machine", "SSH into a server", "check remote files", "edit files on remote", "run commands on remote", "check server status", "look at server logs", "restart a service on the server", "deploy to the server", "investigate a server issue", "サーバーを調べて", "リモートで操作して", "リモートのファイルを見て", "サーバーのログを確認して", "リモートのサービスを再起動して", or needs to perform any operation on a remote machine via SSH.
設計案や approach を、コードを書く前にグラフ(プロジェクトの永続知識)と照合してレビューする AI 設計レビュー。過去の Decision・Constraint・却下案 (RejectedOption)・運用知識 (OperationalKnowledge)・Risk・Goal・進行中 Investigation の全知見タイプに proposal を尋問する。「実装前にこの方針でいい?」「この設計どう思う」「この approach を見て」と、実装に入る前の設計・計画の是非や、過去判断・制約との整合・roadmap との親和性を確認したい時に使う。実装後の diff レビューは graphrag-pr-review、人間向けの説明資料は graphrag-review-doc。スラッシュ: /graphrag-knowledge:graphrag-design-review
PR や diff を、AI 自身がグラフ(プロジェクトの永続知識)と照合して概念レベルでレビューし、所見(findings)を返す。境界 (Layer/Concern/Component) の確認だけでなく、Constraint 違反・却下案 (RejectedOption) の再導入・運用知識 (OperationalKnowledge) の再踏襲・Risk の再開・Goal との整合・進行中 Investigation との衝突まで、全知見タイプに diff を尋問する。「この PR をレビューして」「この差分をグラフ的に見て」「概念が崩れてない?」「方針に反してない?」と、実装後の変更の是非を問われた時に使う(行レベルのバグ探しが主目的ではない)。人間に渡す説明資料(HTML)が欲しい時は graphrag-review-doc、実装前の設計レビューは graphrag-design-review、変更の記録は graphrag-knowledge。スラッシュ: /graphrag-knowledge:graphrag-pr-review
プロジェクトの永続的な設計知識 (採用判断/却下案/制約/目的/リスク/運用知識と、それらを貫く横断構造) を vault を単一正本に安全に読み書きする。作業の最上流と一段落で発火する。【読み — 着手前に先に引く (コードやファイルを読む前にこれを起動)】① 「○○を実装/修正/改善/リファクタしたい」「○○がバグってる/動かない/エラー」「○○周りを整理/調査/レビュー/設計したい」と課題や依頼を受け取った直後 (レビュー自体は graphrag-pr-review / graphrag-design-review の担当 — 本 skill はその上流の知識引き)、触る領域の Decision / Risk / Constraint / 運用知識を `ask` で先に引く (1発で網羅、連打しない)。② 「前回の続き」「引き継ぎ」「過去どう判断した」「なぜこの設計に」と経緯を問われた時。③ 「影響範囲」「どこに波及」と影響伝播を辿りたい時。【書き戻し — 一段落で能動的に (ユーザーの「覚えて」を待たない)】④ 実装/修正が一段落した時・commit 直前 (無言のアクショントリガ — 採用判断/却下案/リスク/運用ハマりを書き戻し、決着した focus の Investigation を閉じる)。⑤ 「Xで行く」「Xはやめる」「今後はY」と結論/却下が確定した時、「覚えて/記録して」と指示された時 (詳細は §Proactive Persistence)。
人間が PR レビューするための、概念レベルの説明資料(視覚的な HTML 文書)をグラフ(プロジェクトの永続知識)を背骨に生成する。「この PR のレビュー資料を作って」「概念レベルで説明する文書がほしい」「レビュアー向けに分かりやすく説明して」と、人間レビュアーに渡す資料を求められた時に使う。AI が所見を返すレビュー本体は graphrag-pr-review(本 skill は成果物が HTML 文書である時に選ぶ)、実装前の設計レビューは graphrag-design-review。スラッシュ: /graphrag-knowledge:graphrag-review-doc
| name | graphrag-vault-init |
| version | 1.1.1 |
| description | vault (ナレッジグラフ) の初期構築。system vault (コード/プロダクト知識) と project vault (時限イニシアチブ) の両方に対応。「vault を作りたい」「初期構築したい」「新しいプロジェクトを管理したい」「リポジトリを索引したい」で発火。 |
Creates a new vault and populates initial nodes. Routes to the appropriate flow based on vault type.
nomic-embed-text).node --experimental-strip-types ${CLAUDE_PLUGIN_ROOT}/graphrag/cli.ts <verb> [args]Hereafter $CLI = the launcher above, $REF = ${CLAUDE_PLUGIN_ROOT}/references.
| Type | Purpose | Schema | Example |
|---|---|---|---|
| system | Code/product knowledge (passive) | schema: system (13 node types) | A product platform, an API service, an internal tool |
| project | Time-bounded initiative (active) | schema: project (16 node types) | L4 approval, API renewal |
project vault scope: Goal reaches achieved / abandoned → vault lifecycle closes (read-only archive). Do NOT create vaults for systems/products or teams/orgs.
For system vaults (code/product knowledge), use the carve command:
$CLI carve --root <repo-path> --system <system-name>
This runs: index → concept extraction → quality gate. See $REF/indexing-and-carving.md for the full procedure.
VAULT.md for system vault:
---
name: <system name>
schema: system
vault_slug: <slug>
---
The rest of this document covers project vault setup only. For system vault schema, read $REF/schema-quickref-system.md.
Before creating a project vault, ensure each system vault it will reference already exists with Deliverable stubs. This resolves the chicken-and-egg problem (project vault can't reference non-existent Deliverables).
# For each system vault the project depends on:
mkdir -p <system-root>/vault/Deliverable
# Write VAULT.md + Deliverable node files (title + summary only, no edges needed yet)
Bootstrap exception: hand-writing VAULT.md and stub node files is sanctioned ONLY at this step — an empty vault has no writer to go through yet. From the vault's first real write onward, the parent skill's "DO NOT edit vault/ directly" rule applies with no exceptions (all writes via add-* / commit-mutation).
<project-root>/
VAULT.md ← vault profile (sibling of vault/)
vault/ ← node files go here
VAULT.md placement rule: vaultProfilePath() resolves to path.dirname(vaultDir)/VAULT.md. If vault is at <root>/vault, then VAULT.md must be at <root>/VAULT.md (NOT inside .graphrag/). Misplacement causes fallback to system schema.
---
name: <project name>
schema: project
vault_slug: <slug>
---
<1-2 line project description>
Required fields:
name: Human-readable project nameschema: project — selects the project schema. Omitting this causes system schema to be used, which will reject project node types. A vault's schema is its kind: system or project.vault_slug: Cross-vault ref namespace. Short kebab-case. Immutable once set.Optional fields:
parent: vault_slug of the single parent program/project this sub-project is contained by. Same-schema, single-parent, genuine structural containment only (not a business/marketing grouping under a product name) — see Decision Criteria → "the parent field".Initial construction has three distinct cognitive tasks. Use the right model for each:
| Phase | Task | Model | Why |
|---|---|---|---|
| 3a. Node extraction | Extract nodes from information sources (Confluence, Jira, Slack, etc.) | extraction model — a fast, cheaper tier (e.g. Sonnet), as subagent | Pattern recognition / information extraction. High volume, lower abstraction. |
| 3b. Edge modeling | Wire has_premise, risks_in, depends_on, cross-vault ref edges between nodes | modeling model — the strongest available tier (self) | Conceptual modeling. Requires reverse reasoning ("what depends on this assumption?"). |
| 3c. Theme extraction | Identify cross-vault themes and wire encompasses edges | modeling model (self) | Highest abstraction. Requires seeing patterns across multiple vaults simultaneously. |
| 3d. Gap reification | Materialize implicit concepts mentioned in Themes/descriptions but not yet nodes | modeling model (self) | Themes often name shared bottlenecks that the extraction pass didn't extract as Resource/Constraint nodes. Ask: "What compute, personnel, facilities, or budget does this Theme's activities consume?" |
Recommended flow (from a single session on the strongest available model):
1. Create directory structure + VAULT.md (Steps 1-2 above)
2. Dispatch extraction subagent(s) for node extraction:
- Provide information sources (URLs, page IDs, documents)
- The subagent extracts Goal/Stakeholder/Milestone/Risk/Assumption/Agreement/Constraint/Task/Source nodes
- The subagent writes via commit-mutation
3. Review the extraction output, then perform yourself (modeling model):
- has_premise edges (which Goals/Decisions depend on which Assumptions?)
- cross-vault ref edges (which Tasks require which system vault Deliverables?)
- risks_in edges (which Risks threaten which Tasks/Goals/Milestones?)
4. If multiple project vaults exist, extract Themes:
- Read nodes across all vaults
- Identify recurring cross-project patterns
- Create Theme nodes with encompasses edges in each relevant vault
5. Gap reification — for each Theme, check:
- Does the Theme description mention a shared resource/bottleneck? → create Resource node (category: asset/people/budget)
- Does it mention an implicit constraint? → create Constraint node
- Wire requires/constrains edges from existing Tasks to the new nodes
- This catches implicit shared resources (compute clusters, specialist personnel pools,
partner capacity) that source documents mention as activities but never name as resources
Why not the extraction model for edges? Extracting "what this document says" (nodes) is different from reasoning "what conceptual dependency exists between these two nodes" (edges). A fast extraction model excels at the former but tends to miss reverse-direction implications (e.g., "this Goal has_premise that Assumption" requires understanding that if the Assumption breaks, the Goal is at risk).
Extraction-model delegation: what it CAN and CANNOT do:
| Handles well | Misses (supplement in later steps) |
|---|---|
| Node extraction from source docs | Resource nodes (source docs describe activities, not underlying resources) |
Extraction-type edges: achieves, targets, responsible_for, documented_by | Inference-type edges: has_premise, risks_in (requires reverse reasoning) |
| Cross-vault ref matching (if given the full ID list) | Cross-vault ref discovery (cannot infer which Deliverables are needed) |
certainty assignment on Assumptions (if given the 4-level definition) | Theme extraction (requires cross-vault abstraction) |
Extraction-subagent prompt tips:
raw_content + raw_content_status: copied_from_summary when derived_from type pairs don't allow direct linkingCollect from Confluence, Jira, Slack, Google Slides, meetings, etc.:
certainty field is required: Established/Expected/Assumed/Speculative)Use commit-mutation for batch creation. All distilled nodes (Decision/RejectedOption/Risk/OK/Agreement) require a derived_from edge to a Source or Investigation with raw_content.
$CLI commit-mutation <plan.json>
For the full initial-population plan template (Goal / Stakeholder / Milestone / Assumption with required certainty / Agreement / Source nodes + achieves / cross-vault requires edges), use $REF/mutation-templates.md §Initial population.
Smoke-test retrieval:
$CLI ask "What is this project's goal?"
$CLI ask "What are the biggest risks?"
$CLI ask "Who is responsible?"
Resource gap audit — Resources are the most under-extracted node type because source documents describe activities ("data collection", "model training") without naming the underlying resources ("compute cluster", "field engineers"). Run this check:
requires edges to any Resourcerequires edgesFor the full project vault schema (16 node types, 22 edge types, state vocabulary, cross-vault ref format), read $REF/schema-quickref-project.md.
parent field)When a containment relationship holds and both the container and the contained legitimately exist as vaults (a subsystem that releases on its own; a sub-project with its own lifecycle), a node can plausibly be filed in either — neither is wrong. A node-to-node edge cannot resolve this, because the ambiguity is about vault scope, not about a link. Declare the containment in the child's VAULT.md:
parent: <parent vault_slug>
This lets a knowledge-gathering crawler choose the narrowest correctly-scoped vault for each node instead of guessing. Rules — keep them strict or the tree rots into a junk-drawer pointer:
Theme/Concern).parent makes the tree churn with org/marketing changes. Test: would the part-of relation survive dropping the product name? If it holds only because they're "called X together," it's a crosscut (Theme/Concern), not parent.parent is organizational only; archiving stays independent (a child may outlive its parent).refines (Goal→Goal) + cross-vault ref; "which concern cuts across many vaults" stays Theme. parent is purely which vault contains which.Validate with xref-check — it reports parent status (resolved / orphan / self / schema-mismatch / cycle / unresolvable).
Vision Goal (stays active) + gate Goal (achieved/abandoned), connected by refines:
Goal: Strengthen hiring pipeline (active, never closes)
refines → Goal: Run event successfully (achieved @ 8/23)
refines → Goal: Send 10 interview offers (achieved @ 8/25)
Task has no blocked state. Create a Risk node for the blocker and connect via risks_in → Task.
Do NOT reverse state. Expire old Agreement → create new at exploring. Connect with supersedes if appropriate.
Top-level Goal reaches achieved or abandoned. All Tasks are completed or cancelled. Vault becomes read-only archive. System vault Deliverables live on.