Skip to content
Skill

Kmg lesson capture

Prompts the agent to capture debugging lessons and reusable patterns after a fix

Kmg lesson capture 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 lesson capture

This skill watches for moments when a bug gets solved, a workaround is found, or a process failure is named during a session. It then pulls out the problem, the fix and any generalizable pattern from the conversation and proposes them as a draft lesson for the user to keep.

The skill recognizes a set of phrases such as "turns out" or "the fix was", along with completed debugging or troubleshooting context. It hands the structured details to a lesson-capture agent, which skips its interactive questions and moves straight to drafting. It also avoids capturing standing behavioral rules, which are left to a separate rules skill.

It needs no scripts or extra tools and works from the conversation itself. Its save step depends on the companion lesson-capture agent and the knowledge-management-graph plugin from the same repository.

When your agent uses it

Auto-capture lessons when user solves complex bugs, makes breakthroughs, or completes debugging sessions

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 1 file (3 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-graph

Or copy only this skill to ~/.claude/skills/kmg-lesson-capture:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/technomensch/knowledge-graph.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/kmg-lesson-capture &&
cp -R "$tmp/skills/kmg-lesson-capture" ~/.claude/skills/kmg-lesson-capture &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/kmg-lesson-capture inside it instead.

Claude Code docs on skills

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

For one repository only, put the folder in .agents/skills/kmg-lesson-capture inside it instead.

Codex docs on skills

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

For one project only, put the folder in .cursor/skills/kmg-lesson-capture inside it instead.

Cursor docs on skills

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-lesson-capture

Or copy the folder to ~/.gemini/skills/kmg-lesson-capture yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/kmg-lesson-capture:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/technomensch/knowledge-graph.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/kmg-lesson-capture &&
cp -R "$tmp/skills/kmg-lesson-capture" ~/.copilot/skills/kmg-lesson-capture &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/kmg-lesson-capture inside it instead.

VS Code docs on skills

Get the folder:

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

Then copy knowledge-graph/skills/kmg-lesson-capture into your agent's skills folder as kmg-lesson-capture. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Trigger phrase detection
Recognizes wording such as "figured it out" or "the problem was" that signals a solved issue.
Context extraction
Pulls out the problem, the solution and any general pattern from the recent conversation.
Draft lesson handoff
Passes structured details to a lesson-capture agent so it can draft a note without re-asking questions.
Tag suggestions
Proposes tags drawn from technologies and domains mentioned in the session.
Separation from rules
Leaves standing process directives to a different skill so lessons and rules stay distinct.

Good for

  • Save the root cause of a tricky bug after it is fixed
  • Record a workaround found during a troubleshooting session
  • Document a first-time setup that finally worked
  • Note a recurring pattern noticed while working on a project
  • Capture a UX or process failure named during active use

Kmg lesson capture FAQ

When does Kmg lesson capture trigger?

It triggers when the user describes a solved bug, a breakthrough, an identified pattern or a completed debugging session, using phrases such as "turns out" or "solved it".

Does Kmg lesson capture save lessons automatically?

It prepares a draft and hands it to the lesson-capture agent, which offers to preserve session context first and then generates the draft for the user to review.

Does Kmg lesson capture cover standing rules like always doing something?

No. Behavioral directives without a solved bug or learned pattern are handled by a separate rules-capture skill.

Which tools does Kmg lesson capture need?

The SKILL.md does not set any allowed tools and the folder contains no scripts.

How do I install Kmg lesson capture in Claude Code?

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

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 lesson capture?

The closest alternatives to Kmg lesson capture are Kmg knowledge graph usage, Kmg rules capture, Kmg capture router, Remember and Vibe reflect and compound.

Where this comes from

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

More from technomensch/knowledge-graph

  1. Prompts the agent to capture architectural decisions as Architecture Decision Records

    • Open source
    • 6 GitHub stars
    • Developer tools
  2. Lets your agent search a knowledge graph for past decisions and solved problems

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

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

    • Open source
    • 6 GitHub stars
    • Knowledge and memory
  5. Routes explicit doc-update requests to the right knowledge-graph update command

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

    • Open source
    • 6 GitHub stars
    • Developer tools