원클릭으로
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 |