From kmgraph
Use when a user-facing documentation file (guide, reference, concept page, etc.) is being moved, renamed, or has just been moved or renamed. Detects the stale sidebar entry and updates sidebars.js to match the new path.
npx claudepluginhub technomensch/knowledge-graph --plugin kmgraphThis skill uses the workspace's default tool permissions.
Fires when a docs file is moved or renamed — detected from:
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 when a docs file is moved or renamed — detected from:
git mv docs/old-path.md docs/new-path.md in the conversationdocs/ pathDoes not apply to:
docs/Extract from context:
OLD_PATH — original path relative to docs/ without .md (e.g., guides/foo)NEW_PATH — new path relative to docs/ without .md (e.g., guides/bar/foo)grep -n "OLD_PATH" sidebars.js
If found: show the matching line(s) and the surrounding category context.
If not found: note "No sidebar entry found for OLD_PATH — the file may not have been in the sidebar yet." Offer to add a new entry for NEW_PATH and stop here.
Replace the stale id: value in sidebars.js:
OLD: {type: 'doc', id: 'OLD_PATH', label: '...'}
NEW: {type: 'doc', id: 'NEW_PATH', label: '...'}
Preserve the existing label: value unless the user provides a new one.
grep -r "OLD_PATH" docs/ --include="*.md" --include="*.mdx" -l
For each file found, show the matching lines. Offer to update them in place (replacing OLD_PATH references with NEW_PATH).
sidebar-update complete:
✓ sidebars.js — updated id: 'OLD_PATH' → 'NEW_PATH'
✓ N internal link(s) updated (or: no internal links found)
| Situation | Behavior |
|---|---|
| File moved to a new category in the sidebar | Update id: but also ask if the entry should move to a different category block |
| Multiple sidebar entries for the same old path | Show all matches and confirm each update |
| Label should change with the rename | Ask: "Should the sidebar label also change from '[old label]' to '[suggested label]'?" |
| Old path not in sidebar | Offer to add a new entry; skip link scan |
sidebars.js uses autogenerated sidebar | Note that autogenerated sidebars pick up the rename automatically; suggest verifying the id: frontmatter in the file is consistent |