[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M73BM8QR9SJCQ40A29KDKWSS":3,"skill-same:01M73BM8QR9SJCQ40A29KDKWSS":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":43,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M73BM8QR9SJCQ40A29KDKWSS","repair-broken-references",null,"Find and fix broken internal links, dead external URLs, stale imports, missing cross-references, and orphaned files. Ensures all project references remain valid and up-to-date. Use when documentation contains broken internal links, external URLs return 404 errors, import statements reference moved or deleted modules, cross-references between files are out of sync, or files exist but are never referenced anywhere in the project.","roohe\u002Fagentic-super-skills","roohe","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99054084?v=4","01M734WCDFP6RZVT5CNM00QR26","01M734WCE4BD0T4NZS5PCV9V5F",10,"MIT","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Frepair-broken-references\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: repair-broken-references\nlocale: caveman-lite\nsource_locale: en\nsource_commit: 82c77053\ntranslator: \"Julius Brussee homage — caveman\"\ntranslation_date: \"2026-04-26\"\ndescription: >\n  Find and fix broken internal links, dead external URLs, stale imports,\n  missing cross-references, and orphaned files. Ensures all project references\n  remain valid and up-to-date. Use when documentation contains broken internal\n  links, external URLs return 404 errors, import statements reference moved or\n  deleted modules, cross-references between files are out of sync, or files\n  exist but are never referenced anywhere in the project.\nlicense: MIT\nallowed-tools: Read Write Edit Bash Grep Glob\nmetadata:\n  author: Philipp Thoss\n  version: \"1.0\"\n  domain: maintenance\n  complexity: intermediate\n  language: multi\n  tags: maintenance, links, imports, references, orphans\n---\n\n# repair-broken-references\n\n## When to Use\n\nUse this skill when project references have become stale:\n\n- Documentation contains broken internal links\n- External URLs return 404 errors\n- Import statements reference moved or deleted modules\n- Cross-references between files are out of sync\n- Files exist but are never referenced anywhere\n\n**Do NOT use** for refactoring module dependencies or redesigning information architecture. This skill repairs existing references, not restructures them.\n\n## Inputs\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `project_path` | string | Yes | Absolute path to project root |\n| `check_external` | boolean | No | Verify external URLs (default: true, slow) |\n| `fix_mode` | enum | No | `auto` (fix obvious), `report` (document only), `interactive` (prompt) |\n| `orphan_threshold` | integer | No | Days since last modified to flag as orphan (default: 180) |\n\n## Procedure\n\n### Step 1: Scan for Broken Internal Links\n\nFind all markdown links pointing to non-existent files.\n\n```bash\n# Find all markdown files\nfind . -name \"*.md\" -type f > markdown_files.txt\n\n# Extract all markdown links: [text](path)\ngrep -oP '\\[.*?\\]\\(\\K[^)]+' *.md | sort | uniq > all_links.txt\n\n# For each link:\nwhile read link; do\n  # Skip external URLs (http\u002Fhttps)\n  if [[ \"$link\" =~ ^https?:\u002F\u002F ]]; then\n    continue\n  fi\n\n  # Resolve relative path\n  target=$(realpath -m \"$link\")\n\n  # Check if target exists\n  if [ ! -e \"$target\" ]; then\n    echo \"BROKEN: $link (referenced in $file)\" >> broken_internal.txt\n  fi\ndone \u003C all_links.txt\n```\n\n**Got:** `broken_internal.txt` lists all broken internal references\n\n**If fail:** If `realpath` unavailable, manually check each link\n\n### Step 2: Check External URLs\n\nVerify that external links are still accessible (HTTP 200 response).\n\n```bash\n# Extract external URLs\ngrep -ohP 'https?:\u002F\u002F[^\\s\\)]+' *.md | sort | uniq > external_urls.txt\n\n# Check each URL (rate-limit to avoid bans)\nwhile read url; do\n  status=$(curl -o \u002Fdev\u002Fnull -s -w \"%{http_code}\" \"$url\")\n\n  if [ \"$status\" -ge 400 ]; then\n    echo \"DEAD ($status): $url\" >> dead_urls.txt\n  fi\n\n  sleep 0.5  # Rate limit\ndone \u003C external_urls.txt\n```\n\n**Got:** `dead_urls.txt` lists URLs returning 4xx\u002F5xx errors\n\n**If fail:** If curl unavailable or blocked, use online link checker or skip\n\n**Note**: Some URLs may return 403 due to bot detection but work in browsers. Manual review required.\n\n### Step 3: Find Broken Imports\n\nCheck that all import\u002Frequire statements reference existing modules.\n\n**JavaScript\u002FTypeScript**:\n```bash\n# Find all import statements\ngrep -rh \"^import.*from ['\\\"]\" . | sed -E \"s\u002F.*from ['\\\"]([^'\\\"]+)['\\\"].*\u002F\\1\u002F\" > imports.txt\n\n# For each import:\nwhile read import; do\n  # Skip node_modules and external packages\n  if [[ \"$import\" =~ ^[.\u002F] ]]; then\n    # Resolve to file path\n    target=\"${import}.js\"  # Try .js, .ts, .jsx, .tsx\n\n    if [ ! -e \"$target\" ]; then\n      echo \"BROKEN IMPORT: $import\" >> broken_imports.txt\n    fi\n  fi\ndone \u003C imports.txt\n```\n\n**Python**:\n```bash\n# Find all import statements\ngrep -rh \"^from .* import\\|^import \" . --include=\"*.py\" | \\\n  sed -E \"s\u002Ffrom ([^ ]+) import.*\u002F\\1\u002F\" | \\\n  sed -E \"s\u002Fimport ([^ ]+)\u002F\\1\u002F\" > imports.txt\n\n# For each local import (starts with .)\n# Check if module file exists\n```\n\n**R**:\n```bash\n# Find library() and source() calls\ngrep -rh \"library(\\\\|source(\" . --include=\"*.R\" | \\\n  sed -E 's\u002F.*library\\(\"([^\"]+)\"\\).*\u002F\\1\u002F' > packages.txt\n\n# For source() calls, check if file exists\n# For library() calls, check if package installed\nRscript -e \"installed.packages()[,'Package']\" > installed_packages.txt\n```\n\n**Got:** `broken_imports.txt` lists all references to deleted\u002Fmoved modules\n\n**If fail:** If language-specific tool unavailable, manually review recent refactoring commits\n\n### Step 4: Find Orphaned Files\n\nIdentify files that exist but are never referenced anywhere.\n\n```bash\n# Find all code files\nfind . -type f \\( -name \"*.js\" -o -name \"*.py\" -o -name \"*.R\" \\) > all_files.txt\n\n# For each file:\nwhile read file; do\n  basename=$(basename \"$file\")\n\n  # Search for references (import, require, source, href, link)\n  refs=$(grep -r \"$basename\" . --exclude-dir=node_modules --exclude-dir=.git | wc -l)\n\n  # If only 1 reference (itself):\n  if [ \"$refs\" -le 1 ]; then\n    # Check last modified date\n    last_mod=$(git log -1 --format=\"%ci\" \"$file\")\n\n    # If modified more than orphan_threshold days ago\n    # Flag as potential orphan\n    echo \"ORPHAN: $file (last modified: $last_mod)\" >> orphans.txt\n  fi\ndone \u003C all_files.txt\n```\n\n**Got:** `orphans.txt` lists files not referenced elsewhere\n\n**If fail:** If git log fails, use filesystem mtime instead\n\n**Note**: Some files (e.g., CLI entry points, top-level scripts) are legitimately unreferenced but not orphans. Requires manual review.\n\n### Step 5: Fix Internal Links\n\nRepair broken internal references using one of three strategies:\n\n**Strategy 1: Find Moved Files**\n```bash\n# For each broken link, search for file by name\nwhile read broken_link; do\n  filename=$(basename \"$broken_link\")\n\n  # Search for file in project\n  found=$(find . -name \"$filename\" | head -1)\n\n  if [ -n \"$found\" ]; then\n    # Update link to new path\n    old_path=\"$broken_link\"\n    new_path=\"$found\"\n\n    # Use Edit tool to replace in all markdown files\n    echo \"FIX: $old_path -> $new_path\"\n  fi\ndone \u003C broken_internal.txt\n```\n\n**Strategy 2: Create Redirect Stub**\n```bash\n# If file was deleted intentionally, create redirect stub\necho \"# Moved\" > \"$broken_link\"\necho \"This content moved to [new location](new_path.md)\" >> \"$broken_link\"\n```\n\n**Strategy 3: Remove Dead Link**\n```bash\n# If content no longer exists, remove link (keep text)\n# Replace [text](broken_link) with text (plain)\n```\n\n**Got:** All broken internal links either fixed, redirected, or removed\n\n**If fail:** If automated fix breaks context, escalate for manual review\n\n### Step 6: Fix Broken Imports\n\nUpdate import statements to reference correct paths after moves.\n\n**JavaScript Example**:\n```javascript\n\u002F\u002F Before (broken)\nimport { helper } from '.\u002Futils\u002Fhelper';\n\n\u002F\u002F After (fixed — file moved to lib\u002F)\nimport { helper } from '.\u002Flib\u002Fhelper';\n```\n\nFor each broken import:\n1. Locate the moved module (similar to Step 5)\n2. Update import path in all files referencing it\n3. Run linter\u002Ftype checker to verify fix\n\n**Got:** All imports resolve correctly; no module-not-found errors\n\n**If fail:** If module was truly deleted, escalate to determine if functionality still needed\n\n### Step 7: Document Orphaned Files\n\nFor files flagged as orphans, determine disposition:\n\n1. **Keep**: Legitimately unreferenced (entry points, scripts, templates)\n2. **Archive**: Old code no longer needed but preserve history\n3. **Delete**: Dead code with no value\n\n```markdown\n# Orphaned Files Review\n\n| File | Last Modified | Recommendation | Reason |\n|------|---------------|----------------|--------|\n| scripts\u002Fold_deploy.sh | 2024-01-05 | Archive | Replaced by CI\u002FCD |\n| src\u002Flegacy_api.js | 2023-06-12 | Delete | API v1 fully deprecated |\n| bin\u002Fcli.py | 2025-12-01 | Keep | CLI entry point (unreferenced by design) |\n```\n\n**Got:** Orphan review document created; automated decisions flagged for human approval\n\n**If fail:** (N\u002FA — document even if no clear disposition)\n\n### Step 8: Generate Repair Report\n\nSummarize all broken references and fixes applied.\n\n```markdown\n# Reference Repair Report\n\n**Date**: YYYY-MM-DD\n**Project**: \u003Cproject_name>\n**Fix Mode**: auto | report | interactive\n\n## Broken Internal Links\n\n- Total: X\n- Fixed: Y\n- Redirected: Z\n- Escalated: W\n\nDetails:\n- [file.md](file.md) line 45: Fixed broken link to moved doc\n- [another.md](another.md) line 12: Created redirect stub\n\n## Dead External URLs\n\n- Total: X\n- Fixed (wayback machine): Y\n- Removed: Z\n\nDetails:\n- https:\u002F\u002Fexample.com\u002Fold-page (404) → Removed\n- https:\u002F\u002Fapi.old.com\u002Fdocs (gone) → Replaced with new docs\n\n## Broken Imports\n\n- Total: X\n- Fixed: Y\n- Escalated: Z\n\nDetails:\n- src\u002Fmain.js line 3: Updated import path after refactor\n\n## Orphaned Files\n\n- Total: X\n- Kept: Y\n- Archived: Z\n- Escalated for review: W\n\nSee ORPHAN_REVIEW.md for full analysis.\n\n## Validation\n\n- [x] All tests pass after fixes\n- [x] Linter reports no module-not-found errors\n- [x] Dead links documented in report\n```\n\n**Got:** Report saved to `REFERENCE_REPAIR_REPORT.md`\n\n**If fail:** (N\u002FA — generate report regardless)\n\n## Validation Checklist\n\nAfter repairs:\n\n- [ ] No broken internal links in documentation\n- [ ] Dead external URLs documented (not all fixable)\n- [ ] All imports resolve correctly\n- [ ] Orphaned files reviewed and dispositioned\n- [ ] Tests pass after import fixes\n- [ ] Linter reports no unresolved references\n- [ ] Git history preserved (used `git mv` for any moves)\n\n## Pitfalls\n\n1. **Automatic URL Fixes Break Context**: Replacing dead links with web.archive.org URLs may not be what the author intended. Some links are better removed.\n\n2. **Over-Aggressive Orphan Deletion**: Entry points, CLI scripts, and templates are often unreferenced by design. Don't delete without review.\n\n3. **Import Path Assumptions**: Assuming all relative imports use the same base path. Different module systems (CommonJS, ES6, TypeScript) handle paths differently.\n\n4. **External URL False Positives**: Some sites block curl\u002Fbots but work fine in browsers. Always manually verify dead URLs.\n\n5. **Circular Reference Traps**: File A imports B, B imports A. Updating one breaks the other. Requires simultaneous fix.\n\n6. **Ignoring Fragment Identifiers**: Fixing `[link](#section)` requires checking if `#section` anchor exists, not just if file exists.\n\n7. **Wrong R binary on hybrid systems**: On WSL or Docker, `Rscript` may resolve to a cross-platform wrapper instead of native R. Check with `which Rscript && Rscript --version`. Prefer the native R binary (e.g., `\u002Fusr\u002Flocal\u002Fbin\u002FRscript` on Linux\u002FWSL) for reliability. See [Setting Up Your Environment](..\u002F..\u002Fguides\u002Fsetting-up-your-environment.md) for R path configuration.\n\n## Related Skills\n\n- [clean-codebase](..\u002Fclean-codebase\u002FSKILL.md) — Remove dead code after confirming orphans\n- [tidy-project-structure](..\u002Ftidy-project-structure\u002FSKILL.md) — Reorganize files (may create broken references)\n- [escalate-issues](..\u002Fescalate-issues\u002FSKILL.md) — Route complex reference issues to specialists\n- [compliance\u002Fdocumentation-audit](..\u002F..\u002Fcompliance\u002Fdocumentation-audit\u002FSKILL.md) — Comprehensive documentation review\n- [web-dev\u002Flink-checker](..\u002F..\u002Fweb-dev\u002Flink-checker\u002FSKILL.md) — Advanced external URL validation\n","# repair-broken-references\n\n## When to Use\n\nUse this skill when project references have become stale:\n\n- Documentation contains broken internal links\n- External URLs return 404 errors\n- Import statements reference moved or deleted modules\n- Cross-references between files are out of sync\n- Files exist but are never referenced anywhere\n\n**Do NOT use** for refactoring module dependencies or redesigning information architecture. This skill repairs existing references, not restructures them.\n\n## Inputs\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| `project_path` | string | Yes | Absolute path to project root |\n| `check_external` | boolean | No | Verify external URLs (default: true, slow) |\n| `fix_mode` | enum | No | `auto` (fix obvious), `report` (document only), `interactive` (prompt) |\n| `orphan_threshold` | integer | No | Days since last modified to flag as orphan (default: 180) |\n\n## Procedure\n\n### Step 1: Scan for Broken Internal Links\n\nFind all markdown links pointing to non-existent files.\n\n```bash\n# Find all markdown files\nfind . -name \"*.md\" -type f > markdown_files.txt\n\n# Extract all markdown links: [text](path)\ngrep -oP '\\[.*?\\]\\(\\K[^)]+' *.md | sort | uniq > all_links.txt\n\n# For each link:\nwhile read link; do\n  # Skip external URLs (http\u002Fhttps)\n  if [[ \"$link\" =~ ^https?:\u002F\u002F ]]; then\n    continue\n  fi\n\n  # Resolve relative path\n  target=$(realpath -m \"$link\")\n\n  # Check if target exists\n  if [ ! -e \"$target\" ]; then\n    echo \"BROKEN: $link (referenced in $file)\" >> broken_internal.txt\n  fi\ndone \u003C all_links.txt\n```\n\n**Got:** `broken_internal.txt` lists all broken internal references\n\n**If fail:** If `realpath` unavailable, manually check each link\n\n### Step 2: Check External URLs\n\nVerify that external links are still accessible (HTTP 200 response).\n\n```bash\n# Extract external URLs\ngrep -ohP 'https?:\u002F\u002F[^\\s\\)]+' *.md | sort | uniq > external_urls.txt\n\n# Check each URL (rate-limit to avoid bans)\nwhile read url; do\n  status=$(curl -o \u002Fdev\u002Fnull -s -w \"%{http_code}\" \"$url\")\n\n  if [ \"$status\" -ge 400 ]; then\n    echo \"DEAD ($status): $url\" >> dead_urls.txt\n  fi\n\n  sleep 0.5  # Rate limit\ndone \u003C external_urls.txt\n```\n\n**Got:** `dead_urls.txt` lists URLs returning 4xx\u002F5xx errors\n\n**If fail:** If curl unavailable or blocked, use online link checker or skip\n\n**Note**: Some URLs may return 403 due to bot detection but work in browsers. Manual review required.\n\n### Step 3: Find Broken Imports\n\nCheck that all import\u002Frequire statements reference existing modules.\n\n**JavaScript\u002FTypeScript**:\n```bash\n# Find all import statements\ngrep -rh \"^import.*from ['\\\"]\" . | sed -E \"s\u002F.*from ['\\\"]([^'\\\"]+)['\\\"].*\u002F\\1\u002F\" > imports.txt\n\n# For each import:\nwhile read import; do\n  # Skip node_modules and external packages\n  if [[ \"$import\" =~ ^[.\u002F] ]]; then\n    # Resolve to file path\n    target=\"${import}.js\"  # Try .js, .ts, .jsx, .tsx\n\n    if [ ! -e \"$target\" ]; then\n      echo \"BROKEN IMPORT: $import\" >> broken_imports.txt\n    fi\n  fi\ndone \u003C imports.txt\n```\n\n**Python**:\n```bash\n# Find all import statements\ngrep -rh \"^from .* import\\|^import \" . --include=\"*.py\" | \\\n  sed -E \"s\u002Ffrom ([^ ]+) import.*\u002F\\1\u002F\" | \\\n  sed -E \"s\u002Fimport ([^ ]+)\u002F\\1\u002F\" > imports.txt\n\n# For each local import (starts with .)\n# Check if module file exists\n```\n\n**R**:\n```bash\n# Find library() and source() calls\ngrep -rh \"library(\\\\|source(\" . --include=\"*.R\" | \\\n  sed -E 's\u002F.*library\\(\"([^\"]+)\"\\).*\u002F\\1\u002F' > packages.txt\n\n# For source() calls, check if file exists\n# For library() calls, check if package installed\nRscript -e \"installed.packages()[,'Package']\" > installed_packages.txt\n```\n\n**Got:** `broken_imports.txt` lists all references to deleted\u002Fmoved modules\n\n**If fail:** If language-specific tool unavailable, manually review recent refactoring commits\n\n### Step 4: Find Orphaned Files\n\nIdentify files that exist but are never referenced anywhere.\n\n```bash\n# Find all code files\nfind . -type f \\( -name \"*.js\" -o -name \"*.py\" -o -name \"*.R\" \\) > all_files.txt\n\n# For each file:\nwhile read file; do\n  basename=$(basename \"$file\")\n\n  # Search for references (import, require, source, href, link)\n  refs=$(grep -r \"$basename\" . --exclude-dir=node_modules --exclude-dir=.git | wc -l)\n\n  # If only 1 reference (itself):\n  if [ \"$refs\" -le 1 ]; then\n    # Check last modified date\n    last_mod=$(git log -1 --format=\"%ci\" \"$file\")\n\n    # If modified more than orphan_threshold days ago\n    # Flag as potential orphan\n    echo \"ORPHAN: $file (last modified: $last_mod)\" >> orphans.txt\n  fi\ndone \u003C all_files.txt\n```\n\n**Got:** `orphans.txt` lists files not referenced elsewhere\n\n**If fail:** If git log fails, use filesystem mtime instead\n\n**Note**: Some files (e.g., CLI entry points, top-level scripts) are legitimately unreferenced but not orphans. Requires manual review.\n\n### Step 5: Fix Internal Links\n\nRepair broken internal references using one of three strategies:\n\n**Strategy 1: Find Moved Files**\n```bash\n# For each broken link, search for file by name\nwhile read broken_link; do\n  filename=$(basename \"$broken_link\")\n\n  # Search for file in project\n  found=$(find . -name \"$filename\" | head -1)\n\n  if [ -n \"$found\" ]; then\n    # Update link to new path\n    old_path=\"$broken_link\"\n    new_path=\"$found\"\n\n    # Use Edit tool to replace in all markdown files\n    echo \"FIX: $old_path -> $new_path\"\n  fi\ndone \u003C broken_internal.txt\n```\n\n**Strategy 2: Create Redirect Stub**\n```bash\n# If file was deleted intentionally, create redirect stub\necho \"# Moved\" > \"$broken_link\"\necho \"This content moved to [new location](new_path.md)\" >> \"$broken_link\"\n```\n\n**Strategy 3: Remove Dead Link**\n```bash\n# If content no longer exists, remove link (keep text)\n# Replace [text](broken_link) with text (plain)\n```\n\n**Got:** All broken internal links either fixed, redirected, or removed\n\n**If fail:** If automated fix breaks context, escalate for manual review\n\n### Step 6: Fix Broken Imports\n\nUpdate import statements to reference correct paths after moves.\n\n**JavaScript Example**:\n```javascript\n\u002F\u002F Before (broken)\nimport { helper } from '.\u002Futils\u002Fhelper';\n\n\u002F\u002F After (fixed — file moved to lib\u002F)\nimport { helper } from '.\u002Flib\u002Fhelper';\n```\n\nFor each broken import:\n1. Locate the moved module (similar to Step 5)\n2. Update import path in all files referencing it\n3. Run linter\u002Ftype checker to verify fix\n\n**Got:** All imports resolve correctly; no module-not-found errors\n\n**If fail:** If module was truly deleted, escalate to determine if functionality still needed\n\n### Step 7: Document Orphaned Files\n\nFor files flagged as orphans, determine disposition:\n\n1. **Keep**: Legitimately unreferenced (entry points, scripts, templates)\n2. **Archive**: Old code no longer needed but preserve history\n3. **Delete**: Dead code with no value\n\n```markdown\n# Orphaned Files Review\n\n| File | Last Modified | Recommendation | Reason |\n|------|---------------|----------------|--------|\n| scripts\u002Fold_deploy.sh | 2024-01-05 | Archive | Replaced by CI\u002FCD |\n| src\u002Flegacy_api.js | 2023-06-12 | Delete | API v1 fully deprecated |\n| bin\u002Fcli.py | 2025-12-01 | Keep | CLI entry point (unreferenced by design) |\n```\n\n**Got:** Orphan review document created; automated decisions flagged for human approval\n\n**If fail:** (N\u002FA — document even if no clear disposition)\n\n### Step 8: Generate Repair Report\n\nSummarize all broken references and fixes applied.\n\n```markdown\n# Reference Repair Report\n\n**Date**: YYYY-MM-DD\n**Project**: \u003Cproject_name>\n**Fix Mode**: auto | report | interactive\n\n## Broken Internal Links\n\n- Total: X\n- Fixed: Y\n- Redirected: Z\n- Escalated: W\n\nDetails:\n- [file.md](file.md) line 45: Fixed broken link to moved doc\n- [another.md](another.md) line 12: Created redirect stub\n\n## Dead External URLs\n\n- Total: X\n- Fixed (wayback machine): Y\n- Removed: Z\n\nDetails:\n- https:\u002F\u002Fexample.com\u002Fold-page (404) → Removed\n- https:\u002F\u002Fapi.old.com\u002Fdocs (gone) → Replaced with new docs\n\n## Broken Imports\n\n- Total: X\n- Fixed: Y\n- Escalated: Z\n\nDetails:\n- src\u002Fmain.js line 3: Updated import path after refactor\n\n## Orphaned Files\n\n- Total: X\n- Kept: Y\n- Archived: Z\n- Escalated for review: W\n\nSee ORPHAN_REVIEW.md for full analysis.\n\n## Validation\n\n- [x] All tests pass after fixes\n- [x] Linter reports no module-not-found errors\n- [x] Dead links documented in report\n```\n\n**Got:** Report saved to `REFERENCE_REPAIR_REPORT.md`\n\n**If fail:** (N\u002FA — generate report regardless)\n\n## Validation Checklist\n\nAfter repairs:\n\n- [ ] No broken internal links in documentation\n- [ ] Dead external URLs documented (not all fixable)\n- [ ] All imports resolve correctly\n- [ ] Orphaned files reviewed and dispositioned\n- [ ] Tests pass after import fixes\n- [ ] Linter reports no unresolved references\n- [ ] Git history preserved (used `git mv` for any moves)\n\n## Pitfalls\n\n1. **Automatic URL Fixes Break Context**: Replacing dead links with web.archive.org URLs may not be what the author intended. Some links are better removed.\n\n2. **Over-Aggressive Orphan Deletion**: Entry points, CLI scripts, and templates are often unreferenced by design. Don't delete without review.\n\n3. **Import Path Assumptions**: Assuming all relative imports use the same base path. Different module systems (CommonJS, ES6, TypeScript) handle paths differently.\n\n4. **External URL False Positives**: Some sites block curl\u002Fbots but work fine in browsers. Always manually verify dead URLs.\n\n5. **Circular Reference Traps**: File A imports B, B imports A. Updating one breaks the other. Requires simultaneous fix.\n\n6. **Ignoring Fragment Identifiers**: Fixing `[link](#section)` requires checking if `#section` anchor exists, not just if file exists.\n\n7. **Wrong R binary on hybrid systems**: On WSL or Docker, `Rscript` may resolve to a cross-platform wrapper instead of native R. Check with `which Rscript && Rscript --version`. Prefer the native R binary (e.g., `\u002Fusr\u002Flocal\u002Fbin\u002FRscript` on Linux\u002FWSL) for reliability. See [Setting Up Your Environment](..\u002F..\u002Fguides\u002Fsetting-up-your-environment.md) for R path configuration.\n\n## Related Skills\n\n- [clean-codebase](..\u002Fclean-codebase\u002FSKILL.md) — Remove dead code after confirming orphans\n- [tidy-project-structure](..\u002Ftidy-project-structure\u002FSKILL.md) — Reorganize files (may create broken references)\n- [escalate-issues](..\u002Fescalate-issues\u002FSKILL.md) — Route complex reference issues to specialists\n- [compliance\u002Fdocumentation-audit](..\u002F..\u002Fcompliance\u002Fdocumentation-audit\u002FSKILL.md) — Comprehensive documentation review\n- [web-dev\u002Flink-checker](..\u002F..\u002Fweb-dev\u002Flink-checker\u002FSKILL.md) — Advanced external URL validation\n",{"name":5,"locale":23,"license":14,"metadata":24,"translator":31,"description":32,"allowed-tools":33,"source_commit":34,"source_locale":35,"translation_date":36},"caveman-lite",{"tags":25,"author":26,"domain":27,"version":28,"language":29,"complexity":30},"maintenance, links, imports, references, orphans","Philipp Thoss","maintenance","1.0","multi","intermediate","Julius Brussee homage — caveman","Find and fix broken internal links, dead external URLs, stale imports, missing cross-references, and orphaned files. Ensures all project references remain valid and up-to-date. Use when documentation contains broken internal links, external URLs return 404 errors, import statements reference moved or deleted modules, cross-references between files are out of sync, or files exist but are never referenced anywhere in the project.\n","Read Write Edit Bash Grep Glob","82c77053","en","2026-04-26","master","f483e54f3ad5f202a77d45f2e57f8d970b71195f","skills_library\u002Frepair-broken-references",2,"https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills","https:\u002F\u002Fgithub.com\u002Froohe","yoou.link","2026-05-19 15:56:07",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add roohe\u002Fagentic-super-skills --skill repair-broken-references",{"tool":51,"command":52},"bunx","bunx skills add roohe\u002Fagentic-super-skills --skill repair-broken-references",{"tool":54,"command":55},"pnpm","pnpm dlx skills add roohe\u002Fagentic-super-skills --skill repair-broken-references","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Frepair-broken-references\u002FSKILL.md",true,[],[60,67,74,81,88,95],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M73D865CZME2FCMKA4PQM348","zarr-python","Chunked N-D arrays for cloud storage. Compressed arrays, parallel I\u002FO, S3\u002FGCS integration, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M73D7Z64J4ABWZJD7P44XBBF","youtube-downloader","Download and process YouTube content for research. Use when: downloading competitor videos for analysis; extracting audio for podcasts; getting transcripts for content repurposing; archiving webinars; research content curation","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyoutube-downloader\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M73D7K8778TGZV3GJFR3703D","yc-pitch-deck","Create a compelling startup pitch deck that follows the structure proven to raise billions from top investors. Master the YC and Sequoia formats that get founders funded. Use when: **Fundraising** to create investor pitch decks; **YC application** to structure your narrative; **Demo Day prep** to craft your 2-minute pitch; **Angel investors** to communicate your opportunity; **Partnership pitches** to structure compelling asks","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fyc-pitch-deck\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M73D70KJSE0E8Z28YMNNRT04","x-twitter-scraper","Use when the user needs X (Twitter) data or confirmation-gated X actions through Xquik: tweet search, user lookup, follower extraction, media download, monitoring, webhooks, MCP, SDKs, posting, likes, DMs, and profile updates. Requires a Xquik API key. Never ask for X login material.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fx-twitter-scraper\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":18},"01M73D6ED01GV077R7K4NZNFZJ","write-vignette","Create R package vignettes using R Markdown or Quarto. Covers vignette setup, YAML configuration, code chunk options, building and testing, and CRAN requirements for vignettes. Use when adding a Getting Started tutorial, documenting complex workflows spanning multiple functions, creating domain-specific guides, or when CRAN submission requires user-facing documentation beyond function help pages.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-vignette\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":18},"01M73D69YJR0BK3NFHE0CYG3EF","write-validation-documentation","Write IQ\u002FOQ\u002FPQ validation documentation for computerized systems in regulated environments. Covers protocols, reports, test scripts, deviation handling, and approval workflows. Use when validating R or other software for regulated use, preparing for a regulatory audit, documenting qualification of computing environments, or creating and updating validation protocols and reports for new or re-qualified systems.","https:\u002F\u002Fgithub.com\u002Froohe\u002Fagentic-super-skills\u002Fblob\u002Fmaster\u002Fskills_library\u002Fwrite-validation-documentation\u002FSKILL.md",[],[]]