ワンクリックで
kmg-lesson-capture
Auto-capture lessons when user solves complex bugs, makes breakthroughs, or completes debugging sessions
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Auto-capture lessons when user solves complex bugs, makes breakthroughs, or completes debugging sessions
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Provide orientation to the Knowledge Graph system architecture and guidance for knowledge capture
Fires on pre-ship signals to check issue/enhancement status accuracy and session-summary currency before push
Enforce zero-deviation plan execution when user invokes plan implementation
Auto-surface ADR creation when user makes architectural decisions or chooses between technical approaches
Auto-invoke knowledge graph search when user asks about project history, past decisions, or previously solved problems
Ensure the knowledge graph is consulted before any recommendation is made
SOC 職業分類に基づく
| name | kmg-lesson-capture |
| description | Auto-capture lessons when user solves complex bugs, makes breakthroughs, or completes debugging sessions |
Purpose: Auto-capture lessons when user solves complex bugs, makes breakthroughs, identifies patterns, or completes debugging sessions.
Trigger Keywords (detect any of these):
Behavior: When triggered:
Pre-structure context from the conversation:
Note: When dispatching to lesson capture, the lesson-capture-agent includes a snapshot gate that offers to preserve session context first. This is presented to the user inside the agent flow — do not add a separate snapshot prompt here.
ECC Compatibility: The slash command syntax (/kmgraph:kmg-capture-lesson) is Claude Code–specific. On other ECC platforms, the lesson-capture-agent is dispatched directly via agent invocation without a command namespace.
Dispatch to lesson-capture-agent with the pre-structured context as a named payload:
context_provided: true
problem: "[extracted problem]"
solution: "[extracted solution]"
pattern: "[extracted generalizable lesson]"
tags: ["[tag1]", "[tag2]"]
suggested_category: "[architecture|debugging|patterns|process]"
The agent uses context_provided: true to skip its interactive wizard and go directly to draft generation.
Use friendly, user-addressed language — never mention agent mechanics:
Do NOT trigger on:
rules-capture skill. If both a lesson and a rule apply to the same turn, both skills fire independently.Example Trigger:
User: "Figured it out! The issue was the config being cached in memory.
We needed to invalidate on every write."
Skill response:
"Looks like you just solved something worth keeping. Here's what I'd capture:
- Problem: Config being cached in memory between writes
- Solution: Invalidate cache on every write operation
- Pattern: Cache invalidation timing matters in multi-state systems
- Tags: [caching, memory, invalidation]
Want me to document this as a lesson?"