| name | kg |
| description | Router for the Knowledge Graph + LLM Wiki system. Use when the user invokes /kg explicitly or asks 'which kg command should I use?'. Sub-commands โ /kg-orient, /kg-update, /kg-query, /kg-lint, /kg-ingest (data ops) and /kg-reflect, /kg-challenge, /kg-connect, /kg-suggest (dialogue ops). Project-state auto-trigger (wiki/ or graphify-out/ presence) belongs to /kg-orient, not this router. |
| trigger | /kg |
kg โ Knowledge Graph + LLM Wiki Router
A persistent, compounding knowledge base combining two layers:
- Graphify extracts structural relationships (god nodes, communities, surprising connections) from any corpus.
- LLM Wiki (Karpathy pattern) maintains a living Obsidian vault of entity pages, concept summaries, and cross-references.
The graph tells you what's connected. The wiki tells you what it means. Either layer works standalone โ both together compound across sessions.
Activate When
- User invokes
/kg
- User asks "์ด๋ค kg ๋ช
๋ น์ ์จ์ผ ํด?" or how the Knowledge Graph + LLM Wiki system works
- User asks about the overall KG/Wiki architecture, ontology, or authority rules
Project-state auto-trigger (wiki/ or graphify-out/ presence at session start) routes to /kg-orient, not this router. See kg-orient/SKILL.md.
Do Not Activate When
This skill is a router, not an executor. Do not run an operation here โ route to the corresponding sub-skill:
| User intent | Route to |
|---|
| ์ธ์
์์ / ํ์ฌ ์ํ | /kg-orient |
| ์ง์ ์ง์ | /kg-query |
| ์ ๋ฌธ์ ํฌ์
| /kg-ingest |
| ๊ทธ๋ํ ๊ฐฑ์ | /kg-update |
| ์ํค ๊ฑด๊ฐ ์ ๊ฒ | /kg-lint |
| ํจํด/๊ธด์ฅ ๋ฐ๊ฒฌ | /kg-reflect |
| ์ฃผ์ฅ ๋ฐ๋ฐ | /kg-challenge |
| ๋ค์ ์๋ฃ ์ถ์ฒ | /kg-suggest |
| ์๋ฌต์ง ๊ธฐ๋ก | /kg-elicit |
| ์ํ์ฐฉ์ค ๊ธฐ๋ก | /kg-postmortem |
| ์คํค๋ง ๋ณ๊ฒฝ | /kg-schema |
| ์น ์กฐ์ฌ | /kg-autoresearch |
| Obsidian Canvas export | /kg-canvas |
| wiki ์ด๊ธฐํ | /kg-init |
| ์ฌ๋ฌ ํ๋ก์ ํธ ํตํฉ ๊ทธ๋ํ | /kg-merge |
| graphify MCP server ๋ฑ๋ก | /kg-mcp |
Naming Convention
/kg-<verb> (hyphen) โ canonical user-facing slash command. Always use this form.
/kg <verb> (space) โ never used. The hyphenated form is ground truth in every sub-skill's trigger: field.
Common Rules (5)
- Raw sources are immutable. The LLM reads but never modifies them. They are the source of truth.
- Wiki and graph are derived artifacts. Both are regenerable views, never primary evidence.
- Verification chain: Graph โ Wiki โ Raw Source. Never cite graph/wiki as primary evidence for a decision.
- Human approval is required for: schema change, page reclassification, page deletion, source approval (autoresearch), heuristic promotion from Experience.
- Use hyphenated commands:
/kg-query, not /kg query.
References
For deeper detail, read the relevant reference file:
| Topic | File |
|---|
| System layout, source detection, page templates, technical notes, graphify v0.8.x CLI/MCP surface, freshness gate | references/architecture.md |
Fortran corpora (scientific/HPC code โ libraries, solvers, legacy, earth-system incl. WRF) โ .F/.f90 extraction, cpp step, node/edge model, USE/CALL graph workflow | references/fortran.md |
| 7 classes, page_kind, instance_of, schema-as-product, proposal/receipt | references/ontology.md |
| Human vs LLM authority, hot.md priority, novelty test, usage rules | references/authority-matrix.md |
| BM25 search, hot/overview/_index hierarchy, archive policy | references/context-compression.md |
| Migration policy, supersession, convergence tracking, attractor test | references/schema-evolution.md |
| Codex โ kg bidirectional pipeline (review filing, domain context injection) | references/codex-integration.md |
Output Contract standard fields (Next command:, Confidence:, Caveats:, etc.) | references/output-contract-standard.md |
Reference files are loaded only when needed (progressive disclosure). Sub-skills are self-contained and do not depend on this router for execution details.
Document Authority
- Sub-skills are the authoritative source for each operation's detailed flow.
- This router (
kg/SKILL.md) owns: routing table, common rules, references list.
- Reference files own: ontology, authority rules, compression hierarchy, schema evolution, integration patterns.
- When sub-skill text diverges from a reference, the sub-skill wins for execution details; the reference wins for ontology/authority rules.