# Kmg doc update router

> Kmg doc update router is an open-source agent skill for developer tools. Routes explicit doc-update requests to the right knowledge-graph update command. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/technomensch/knowledge-graph/tree/main/skills/kmg-doc-update-router
- **Repository:** https://github.com/technomensch/knowledge-graph
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** kmg-doc-update-router
- **Collection:** https://github.com/technomensch/knowledge-graph
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill catches requests to update a named document, the changelog, the ADR log, or the current session summary, and sends each one to the matching handler instead of letting the agent edit the file directly. The goal is to keep doc edits inside the update wizard so standards validation and changelog recording still happen.

Routing is checked in a fixed order: session summary requests go to the session summary handler, changelog requests go to the user-facing update handler for CHANGELOG.md, ADR requests go to ADR creation, and any named file is resolved and sent to the update handler. If the target is unclear, the agent asks which doc to update before dispatching. Requests such as updating code or tests are excluded, as are end-of-session signals, which belong to a separate wrap-up skill.

It expects the knowledge-graph documentation setup to be present in the project. The skill is written in platform-neutral terms, and its Claude Code command equivalents are offered for reference only.

## When your agent uses it

> Intercept explicit doc-update requests and route to the correct command

## 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-doc-update-router)
- [License: MIT](https://github.com/technomensch/knowledge-graph/tree/HEAD/skills/kmg-doc-update-router)

## Features

- **Explicit update intent detection:** Recognizes phrases that ask to update a named doc, the changelog, an ADR or the session summary.
- **Ordered routing rules:** Applies a fixed priority so session, changelog, ADR and file-based requests each reach the correct handler.
- **Ambiguity handling:** Asks the user which document they mean when the target cannot be resolved from the request.
- **Exclusion of code and end-of-session requests:** Leaves alone requests about code or tests and hands wrap-up signals to a separate skill.
- **Session wrap coexistence:** Defines how it works alongside the session-wrap skill when both could apply to one message.

## Good for

- Update the quickstart guide through the documentation wizard
- Refresh today's session summary in the project docs
- Add a changelog entry for recent user-facing changes
- Create a new architecture decision record
- Ask which doc to update when a request is vague

## 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-doc-update-router`:

```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-doc-update-router &&
cp -R "$tmp/skills/kmg-doc-update-router" ~/.claude/skills/kmg-doc-update-router &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/kmg-doc-update-router` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/kmg-doc-update-router` 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-doc-update-router &&
cp -R "$tmp/skills/kmg-doc-update-router" ~/.agents/skills/kmg-doc-update-router &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/kmg-doc-update-router` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/kmg-doc-update-router` 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-doc-update-router &&
cp -R "$tmp/skills/kmg-doc-update-router" ~/.cursor/skills/kmg-doc-update-router &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/kmg-doc-update-router` 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-doc-update-router
```

Or copy the folder to `~/.gemini/skills/kmg-doc-update-router` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/kmg-doc-update-router`:

```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-doc-update-router &&
cp -R "$tmp/skills/kmg-doc-update-router" ~/.copilot/skills/kmg-doc-update-router &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/kmg-doc-update-router` 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-doc-update-router` into your agent's skills folder as `kmg-doc-update-router`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Kmg doc update router trigger?

It fires on explicit requests such as updating a named file, the changelog, the ADR, or the current session summary. Requests about code, tests or functions do not trigger it.

### Does Kmg doc update router edit documents itself?

It routes the request to a dedicated handler or command so the update wizard and standards checks run, rather than editing the file directly.

### What happens if both Kmg doc update router and session-wrap could apply?

The explicit update request is handled first by this skill, and session-wrap adds its end-of-session steps on top.

### How do I install Kmg doc update router in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/kmg-doc-update-router to use it in all your projects, or to .claude/skills/kmg-doc-update-router 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 doc update router 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 doc update router?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Kmg doc update router?

The closest alternatives to Kmg doc update router are Docs governance, Kmg sidebar update, Using knowledge patch, Go skills router and Doc consolidation.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Docs governance](https://ai-powered.com/skills/docs-governance): Docs governance is an open-source agent skill for developer tools.
- [Kmg sidebar update](https://ai-powered.com/skills/kmg-sidebar-update): Kmg sidebar update is an open-source agent skill for developer tools.
- [Using knowledge patch](https://ai-powered.com/skills/using-knowledge-patch): Using knowledge patch is an open-source agent skill for developer tools.
- [Go skills router](https://ai-powered.com/skills/go-skills-router): Go skills router is an open-source agent skill for developer tools.
- [Doc consolidation](https://ai-powered.com/skills/doc-consolidation-ajyadav013): Doc consolidation is an open-source agent skill for developer tools.
- [Managing readme docs](https://ai-powered.com/skills/managing-readme-docs): Managing readme docs is an open-source agent skill for developer tools.
- [Kmg docs impact scan](https://ai-powered.com/skills/kmg-docs-impact-scan): Kmg docs impact scan is an open-source agent skill for developer tools.
- [Documentation and adrs](https://ai-powered.com/skills/documentation-and-adrs): Documentation and adrs is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/kmg-doc-update-router
