From kmgraph
Use when the user is about to push to origin, open a PR, create a PR, merge changes, or says "push and merge", "push and merge with admin", "push to origin", "finishing up", or "ready to push". Scans for all user-facing docs affected by the current branch's changes before any update wizard runs.
npx claudepluginhub technomensch/knowledge-graph --plugin kmgraphThis skill uses the workspace's default tool permissions.
Fires on pre-ship signals:
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Retrieves current documentation, API references, and code examples for libraries, frameworks, SDKs, CLIs, and services via Context7 CLI. Ideal for API syntax, configs, migrations, and setup queries.
Uses ctx7 CLI to fetch current library docs, manage AI coding skills (install/search/generate), and configure Context7 MCP for AI editors.
Fires on pre-ship signals:
Does not apply to:
doc-update-router for thoseRun git diff main...HEAD and extract changed identifiers: command names, feature names, flag names, skill names. If the diff is very large, cap at 20 identifiers and note the cap to the user.
Scan the following scope for references to each extracted identifier:
.md files in project root.md files in docs/ — excluding docs/plans/, docs/superpowers/, docs/design/Always add these to the candidate list regardless of grep results (only if the file exists in the project):
README.mdINSTALL.mdCHANGELOG.mdCOMMAND-GUIDE.mdQuery the active KG for any learned correction patterns matching the changed identifiers (stored as "when [identifier] changes, also check [file]"). Add any matched files to the candidate list.
Show the combined list with source labels before running any updates:
Docs likely affected by this change:
✓ README.md (obvious file)
✓ COMMAND-GUIDE.md (matched: "docs-impact-scan")
✓ INSTALL.md (obvious file)
? docs/reference/skills.md (matched: "skills")
+ CONFIGURATION.md (KG pattern: learned from prior release)
Add any missing files, remove any that don't apply, then confirm.
Wait for user confirmation before proceeding.
For each file the user manually added that the grep scan did not find, offer to save a learned pattern:
"Should I save a pattern — when [identifier] changes, also check [file]?"
If yes, save to the active KG patterns file:
When [identifier] changes, also check [file].
Source: docs-impact-scan correction (YYYY-MM-DD)
Call /kmgraph:update-doc --user-facing [file] for each file in the confirmed list, one at a time in sequence.
After all updates complete:
Docs updated (N files):
✓ README.md
✓ COMMAND-GUIDE.md
✓ docs/reference/skills.md
| Situation | Behavior |
|---|---|
| Diff has no identifiable identifiers | Skip grep scan; present obvious files only; note "no identifiers extracted from diff" |
| No docs reference changed identifiers | Present obvious files only; note "no additional matches found" |
| User removes all files from list | Confirm intentional skip; log "no doc updates made for this release" |
| KG pattern references a file that no longer exists | Skip the file silently; offer to remove the stale pattern from KG |
| Very large diff (>20 identifiers) | Cap extraction at 20; note cap to user before presenting list |