activememory/ctx/ctx-check-links
Claude Code and agent skill by activememory/ctx
- community
Checking that the SKILL.md file is still in the repository.
Audit docs for dead links. Use before releases, after restructuring docs, or when running a documentation audit.
Install
npx vskill@latest install activememory/ctx/ctx-check-linksSKILL.md
Scan Markdown files for broken links. Two passes: internal (file targets) and external (HTTP URLs).
Scope Discovery
Determine which directories to scan:
- If the user specifies a path, use that
- Otherwise, glob for common doc directories:
docs/,doc/,
documentation/, site/
- If none exist, fall back to scanning all
.mdfiles in the
project root (excluding node_modules/, .git/, vendor/)
Report which directories are being scanned at the start of output.
When to Use
- Before releases or doc deployments
- After renaming, moving, or deleting doc pages
- After restructuring documentation directories or nav
- When
/_ctx-auditruns (audit check #12) - When a user reports a 404 on the site
When NOT to Use
- When editing a single doc (just eyeball links in that file)
- When offline and only external checks would matter
Execution
Pass 1: Internal Links
Scan every .md file in the discovered scope for Markdown links pointing to other files: [text](target.md), [text](../path/file.md), [text](path/file.md#anchor).
For each link:
- Resolve the target relative to the source file's directory
- Strip any
#anchorfragment before checking file existence - Skip external URLs (
http://,https://,mailto:) - Skip bare anchors (
#section-name): these are intra-page - Verify the target file exists on disk
Collect all broken internal links as:
Pass 2: External Links
Scan every .md file in the discovered scope for http:// and https:// URLs in Markdown link syntax.
For each URL:
- Send an HTTP HEAD request with a 10-second timeout
- If HEAD fails or returns 405, retry with GET
- Record the HTTP status code
Report failures as:
Do not treat external failures as errors. Network partitions, rate limiting, and transient outages are common. Report them but do not fail the check.
Exceptions: skip these URLs:
localhost/127.0.0.1URLs (local dev servers)example.com/example.org(placeholder domains)
Pass 3: Image References
Scan for image links:  and .
Verify the image file exists on disk. Same resolution rules as internal links.
Output Format
Fixing
For broken internal links, offer specific fixes:
- If the target was renamed, suggest the new path
- If the target was deleted, suggest removing the link or
pointing to an alternative
- If the target is a typo (close match exists), suggest the
correction
For external links, just report. The user decides whether to update, remove, or ignore.
Quality Checklist
After running the check:
- [ ] All
.mdfiles in the discovered scope were scanned - [ ] Relative path resolution accounts for subdirectories
- [ ] Anchors stripped before file existence check
- [ ] External check used timeouts (not hanging on slow hosts)
- [ ] localhost/example URLs were skipped
- [ ] Report distinguishes errors (internal) from warnings
(external)
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinginternal/assets/integrations/copilot-cli/skills/ctx-check-links/SKILL.md
Popularity
- Repository stars
- 69
- Repository forks
- 12
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/activememory/ctx/ctx-check-links)