con un clic
fix-broken-links
Validate Memory Bank links and fix broken references
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Validate Memory Bank links and fix broken references
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Generate a PRD for a feature using Memory Bank context
Generate a technical specification based on a PRD using Memory Bank context
Run Memory Bank doc gardening (maintenance / garbage collection)
"Process and implement tasks from a protocol in git worktrees (or inline on the main workdir)"
Update Memory Bank documentation after code changes or protocol completion
Defer an out-of-scope finding to the backlog. Use when a bug, tech debt, idea, or risk is discovered but not appropriate to solve now.
| name | fix-broken-links |
| description | Validate Memory Bank links and fix broken references |
This skill helps validate and fix broken links in .memory_bank/ files.
Use this skill when:
/memento:fix-broken-linksFrom target project, run:
# Validate entire Memory Bank
python ${CLAUDE_PLUGIN_ROOT}/skills/fix-broken-links/scripts/validate-memory-bank-links.py
# Validate specific files only (e.g. after regeneration)
python ${CLAUDE_PLUGIN_ROOT}/skills/fix-broken-links/scripts/validate-memory-bank-links.py \
--files .memory_bank/guides/testing.md .memory_bank/guides/testing-frontend.md
Execute the validation script to scan Memory Bank in the current project:
python ${CLAUDE_PLUGIN_ROOT}/skills/fix-broken-links/scripts/validate-memory-bank-links.py
Run this from the project root (where .memory_bank/ exists).
The script will:
.memory_bank/ filesindex.md linksExit Codes:
0 - All links valid, no action needed1 - Broken links found, proceed to fixIf validation fails (exit code 1), the output contains:
source_file: [link_text](link_target) → resolved_pathExample:
.memory_bank/guides/index.md: [Testing](./testing.md) → .memory_bank/guides/testing.md
For each broken link, analyze and fix:
A. Check if similar file exists:
testing.md not found, but testing-guide.md existsB. If no similar file exists:
C. Apply fix:
After fixing all links, run validation script again:
python ${CLAUDE_PLUGIN_ROOT}/skills/fix-broken-links/scripts/validate-memory-bank-links.py
If still has errors, repeat Step 3 for remaining issues.
Provide summary:
Broken: .memory_bank/guides/index.md: [Testing](./testing.md)
Found: .memory_bank/guides/testing-guide.md
Action: Edit .memory_bank/guides/index.md
Change: [Testing](./testing.md) → [Testing](./testing-guide.md)
Broken: .memory_bank/README.md: [Old Guide](./guides/deprecated.md)
No similar files found.
Action: Edit .memory_bank/README.md
Change: [Old Guide](./guides/deprecated.md) → Old Guide (deprecated)
Broken: Multiple links in "## Legacy Workflows" section
All files missing, section is obsolete.
Action: Edit .memory_bank/workflows/index.md
Remove entire "## Legacy Workflows" section
${CLAUDE_PLUGIN_ROOT}/skills/fix-broken-links/scripts/validate-memory-bank-links.py
It's a standalone Python script that:
generation-plan.md.memory_bank/ directory automatically--files for targeted validation of specific files