
Kmg knowledge graph usage
Guides an agent through a knowledge graph's layers and when to capture lessons
Kmg knowledge graph usage is an open-source agent skill for knowledge and memory. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 6
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Kmg knowledge graph usage
This skill gives the agent an orientation to a Knowledge Graph system built around four coordinated layers: skills that recognize moments worth recording, agents that do the capture and retrieval work, hooks that trigger follow-up suggestions, and MCP kg_* tools that handle persistence and search. It describes the command set for capturing lessons, summarizing sessions, searching past work, and configuring or checking a graph.
The guidance covers when to suggest capturing knowledge, such as after a non-obvious debugging session or a recorded architectural trade-off, and when to skip it. It sets quality criteria for entries, including being specific, verified and reusable, and it explains how to search for duplicates and choose between merging an entry and creating a linked one. It also includes templates for problem-solution, architectural decision and recurring meta-issue write-ups, plus privacy steps for scanning sensitive data before sharing.
The skill assumes the knowledge-management plugin and its slash commands are installed, and it refers to git metadata and GitHub issues for linking entries to code history. Two reference files hold longer capture patterns and workflow examples.
When your agent uses it
Provide orientation to the Knowledge Graph system architecture and guidance for knowledge capture
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 3 files (65 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the kmgraph plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add technomensch/knowledge-graph
/plugin install kmgraph@knowledge-management-graphOr copy only this skill to ~/.claude/skills/kmg-knowledge-graph-usage:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/technomensch/knowledge-graph.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/kmg-knowledge-graph-usage &&
cp -R "$tmp/skills/kmg-knowledge-graph-usage" ~/.claude/skills/kmg-knowledge-graph-usage &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/kmg-knowledge-graph-usage inside it instead.
Copy the skill folder to ~/.agents/skills/kmg-knowledge-graph-usage to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/technomensch/knowledge-graph.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/kmg-knowledge-graph-usage &&
cp -R "$tmp/skills/kmg-knowledge-graph-usage" ~/.agents/skills/kmg-knowledge-graph-usage &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/kmg-knowledge-graph-usage inside it instead.
Copy the skill folder to ~/.cursor/skills/kmg-knowledge-graph-usage to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/technomensch/knowledge-graph.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/kmg-knowledge-graph-usage &&
cp -R "$tmp/skills/kmg-knowledge-graph-usage" ~/.cursor/skills/kmg-knowledge-graph-usage &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/kmg-knowledge-graph-usage inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/technomensch/knowledge-graph.git --path skills/kmg-knowledge-graph-usageOr copy the folder to ~/.gemini/skills/kmg-knowledge-graph-usage yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/kmg-knowledge-graph-usage:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/technomensch/knowledge-graph.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/kmg-knowledge-graph-usage &&
cp -R "$tmp/skills/kmg-knowledge-graph-usage" ~/.copilot/skills/kmg-knowledge-graph-usage &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/kmg-knowledge-graph-usage inside it instead.
Get the folder:
git clone --depth 1 https://github.com/technomensch/knowledge-graph.gitThen copy knowledge-graph/skills/kmg-knowledge-graph-usage into your agent's skills folder as kmg-knowledge-graph-usage. Agents that support SKILL.md read one folder per skill.
What it does
- Four-layer system overview
- Explains how skills, agents, hooks and MCP tools divide the work of capturing and recalling knowledge.
- Capture signal recognition
- Lists situations such as tricky debugging, design trade-offs and recurring problems that merit a lesson.
- Quality and duplicate checks
- Sets criteria for useful entries and a search-first process for merging or linking similar lessons.
- Write-up templates
- Provides structured formats for problem-solution, architectural decision and meta-issue documentation.
- Command reference
- Summarizes slash commands for capturing, searching, configuring and sanitizing a knowledge graph.
- Privacy handling
- Describes scanning for sensitive data and setting up sanitization before knowledge is shared.
Good for
- Capture a lesson after finally fixing a tricky bug
- Search past lessons before starting on a familiar problem
- Summarize what was accomplished in the current session
- Check a knowledge graph for sensitive data before committing
- Document an architectural decision with its trade-offs
Kmg knowledge graph usage FAQ
What does Kmg knowledge graph usage need to run?
It refers to the knowledge-management plugin's slash commands and MCP kg_* tools, so the Knowledge Graph plugin must be set up. The skill itself contains no scripts.
Does Kmg knowledge graph usage change files on its own?
The skill only supplies guidance and suggests commands. Writes happen through the plugin's commands and agents, which the skill describes as approval-gated in places.
When does Kmg knowledge graph usage trigger?
It triggers on knowledge capture and recall situations, such as after a problem is solved or when a familiar problem comes up, as described in its guidance.
How do I install Kmg knowledge graph usage in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/kmg-knowledge-graph-usage to use it in all your projects, or to .claude/skills/kmg-knowledge-graph-usage in one project. Or install the kmgraph plugin, which includes it: /plugin marketplace add technomensch/knowledge-graph, then /plugin install kmgraph@knowledge-management-graph.
Does Kmg knowledge graph usage run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Kmg knowledge graph usage?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Kmg knowledge graph usage?
The closest alternatives to Kmg knowledge graph usage are Kmg lesson capture, Kmg capture router, Kmg rules capture, Knowledge and Remember.
Where this comes from
- Description: from the skill's own SKILL.md.
More from technomensch/knowledge-graph

Prompts the agent to capture architectural decisions as Architecture Decision Records
- Open source
- 6 GitHub stars
- Developer tools

Lets your agent search a knowledge graph for past decisions and solved problems
- Open source
- 6 GitHub stars
- Knowledge and memory

Makes the agent check a project's knowledge graph for prior decisions before recommending
- Open source
- 6 GitHub stars
- Knowledge and memory

Routes 'capture that' and 'remember that' requests to memory, lessons or ADRs
- Open source
- 6 GitHub stars
- Knowledge and memory

Routes explicit doc-update requests to the right knowledge-graph update command
- Open source
- 6 GitHub stars
- Developer tools

Finds docs affected by code changes before you push, PR or ship
- Open source
- 6 GitHub stars
- Developer tools




