From memento
Validates and fixes broken links in .memory_bank/ files using Python script. Checks index links and cross-references; useful after regenerations or when integrity issues arise.
How this skill is triggered — by the user, by Claude, or both
Slash command
/memento:fix-broken-linksThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill helps validate and fix broken links in `.memory_bank/` files.
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 filesnpx claudepluginhub mderk/memento --plugin mementoFinds and fixes broken internal links, dead external URLs, stale imports, missing cross-references, and orphaned files across project directories.
Audits and repairs Markdown link health across a skills repo via a four-tier pipeline (config hardening, intra-repo file-ref fixes, external URL substitutions, residual exclusions) with a regression guardrail.
Validates Markdown documentation links, detecting broken relative links, missing anchor targets, malformed URLs, and orphaned documentation files. Use before releases or doc updates.