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.
npx claudepluginhub mderk/memento --plugin mementoThis skill uses the workspace's default tool permissions.
This skill helps validate and fix broken links in `.memory_bank/` files.
Fixes knowledge base issues from mem-audit: broken links, orphan notes, missing indexes, stale rebuilds. Dry-run previews changes before atomic application.
Finds and fixes broken internal links, dead external URLs, stale imports, missing cross-references, and orphaned files. Use when documentation or code references are invalid or outdated.
Validates Markdown documentation links, detecting broken relative links, missing anchor targets, malformed URLs, and orphaned documentation files. Use before releases or doc updates.
Share bugs, ideas, or general feedback.
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