ワンクリックで
kmg-sidebar-update
Fires when a docs file is moved or renamed to keep sidebar navigation in sync
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Fires when a docs file is moved or renamed to keep sidebar navigation in sync
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
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
| name | kmg-sidebar-update |
| description | Fires when a docs file is moved or renamed to keep sidebar navigation in sync |
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 |