# Kmg knowledge graph usage

> Kmg knowledge graph usage is an open-source agent skill for knowledge and memory. Guides an agent through a knowledge graph's layers and when to capture lessons. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/technomensch/knowledge-graph/tree/main/skills/kmg-knowledge-graph-usage
- **Repository:** https://github.com/technomensch/knowledge-graph
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** kmg-knowledge-graph-usage
- **Collection:** https://github.com/technomensch/knowledge-graph
- **Categories:** [knowledge and memory](https://ai-powered.com/categories/knowledge-and-memory)
- **Listing updated:** 2026-12-03

## About

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

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/technomensch/knowledge-graph/tree/HEAD/skills/kmg-knowledge-graph-usage)
- [License: MIT](https://github.com/technomensch/knowledge-graph/tree/HEAD/skills/kmg-knowledge-graph-usage)

## Features

- **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

## Install

### Claude Code

This skill ships in the `kmgraph` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add technomensch/knowledge-graph
/plugin install kmgraph@knowledge-management-graph
```

Or copy only this skill to `~/.claude/skills/kmg-knowledge-graph-usage`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/kmg-knowledge-graph-usage` to use it in every repository:

```sh
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.

### Cursor

Copy the skill folder to `~/.cursor/skills/kmg-knowledge-graph-usage` to use it in every project:

```sh
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.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/technomensch/knowledge-graph.git --path skills/kmg-knowledge-graph-usage
```

Or copy the folder to `~/.gemini/skills/kmg-knowledge-graph-usage` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/kmg-knowledge-graph-usage`:

```sh
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.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/technomensch/knowledge-graph.git
```

Then 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.

## 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.

## Alternatives

- [Kmg lesson capture](https://ai-powered.com/skills/kmg-lesson-capture): Kmg lesson capture is an open-source agent skill for knowledge and memory.
- [Kmg capture router](https://ai-powered.com/skills/kmg-capture-router): Kmg capture router is an open-source agent skill for knowledge and memory.
- [Kmg rules capture](https://ai-powered.com/skills/kmg-rules-capture): Kmg rules capture is an open-source agent skill for knowledge and memory.
- [Knowledge](https://ai-powered.com/skills/knowledge-carloshpdoc): Knowledge is an open-source agent skill for knowledge and memory.
- [Remember](https://ai-powered.com/skills/remember-ajyadav013-2): Remember is an open-source agent skill for knowledge and memory.
- [Graph](https://ai-powered.com/skills/graph): Graph is an open-source agent skill for files and documents.
- [Kmg brainstorm recall](https://ai-powered.com/skills/kmg-brainstorm-recall): Kmg brainstorm recall is an open-source agent skill for knowledge and memory.
- [Knowledge base integration](https://ai-powered.com/skills/knowledge-base-integration): Knowledge base integration is an open-source agent skill for knowledge and memory.

---
Source: https://ai-powered.com/skills/kmg-knowledge-graph-usage
