Quickstart
Install KMGraph, initialize a knowledge graph, and capture your first lesson — in under 5 minutes.
Step 1 — Install
- Claude Code
- Cursor / Windsurf / VS Code
- Generic MCP
- Any platform (manual)
claude --plugin-dir /path/to/knowledge-graph
Verify the plugin loaded: type /km and the autocomplete menu should show kmgraph commands.
Paste the contents of INSTALL.md into your AI assistant. The installer detects the platform, configures the MCP server, and initializes the knowledge graph automatically.
Requires an assistant with terminal and file system access.
# Build the MCP server
cd mcp-server && npm install && npm run build
# Register in your IDE's MCP config
# Point to: mcp-server/dist/index.js
See Platform Adaptation for IDE-specific registration steps.
Copy core/templates/ into your project. Follow the template READMEs to manually create lessons, ADRs, and session summaries without any automation.
commands/, skills/, or agents/These directories are Claude Code plugin-specific and will not function outside the Claude Code plugin system.
Step 2 — Initialize
/kmgraph:init
The wizard asks for:
- Project name
- Git tracking — enable for automatic branch/commit metadata on every capture
- KG type —
project-local(default) stores in the project;personalstores at~/.kmgraph/and is shared across all projects
Init also scaffolds knowledge/me.md (your identity and working style, gitignored) and knowledge/rules.md (project conventions, committed). These give any AI platform consistent context without platform-specific rewrites. See Portable AI Identity.
Step 3 — Capture your first lesson
/kmgraph:capture-lesson
Describe what you just learned or solved. The command structures it into a markdown file with categories, tags, and git metadata.
Step 4 — Recall it
/kmgraph:recall "what you captured"
Full-text search across all captured lessons, decisions, and patterns.
Step 5 — Check status
/kmgraph:status
Shows the active knowledge graph, entry count, and recent captures.
The capture pipeline
Use /kmgraph:sync-all at the end of a session to run all four steps in one command.
Next steps
- Tutorials — Hand-held walkthroughs for common capture scenarios
- How-to Guides — Recipes for specific tasks (ADRs, meta-issues, sharing)
- Concepts — How the knowledge graph is structured and why
- Cheat Sheet — All commands at a glance