claude-md-link-check

claude-md-link-check is a skill for Claude Code from alirezarezvani/ClaudeForge. It costs 46 tokens per session (592 once invoked), scanned B, original, MIT.

A read-only checker for `CLAUDE.md` files, which give coding agents project instructions, and related rule files. It verifies path imports and local Markdown links point to existing files.

In plain words
What is it for?
Use it to audit all project instruction files and report each broken link with its file and line number.
Why use it?
It finds broken references before an agent or developer follows a missing instruction or document.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: agent in frontmatter; mentions CLAUDE.md.

Part of the ClaudeForge plugin — 5 skills, 4 commands, 3 hooks shipped together

Good fit Use it to audit all project instruction files and report each broken link with its file and line number.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/alirezarezvani/claudeforge/claude-md-link-check
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add alirezarezvani/ClaudeForge --skill claude-md-link-check
Clone the repo
git clone --depth 1 https://github.com/alirezarezvani/ClaudeForge

Made for: Claude Code.

Or install ClaudeForge, the plugin that ships this one along with the rest of its 5 skills, 4 commands, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for claude-md-link-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/alirezarezvani/claudeforge/claude-md-link-check/github.svg)](https://agentmods.dev/skills/alirezarezvani/claudeforge/claude-md-link-check)
Your own site
<a href="https://agentmods.dev/skills/alirezarezvani/claudeforge/claude-md-link-check"><img src="https://agentmods.dev/badge/skills/alirezarezvani/claudeforge/claude-md-link-check/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for claude-md-link-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/alirezarezvani/claudeforge/claude-md-link-check"><img src="https://agentmods.dev/badge/skills/alirezarezvani/claudeforge/claude-md-link-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 592 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00592
Opus 5 $0.00023 $0.00296
Sonnet 5 $0.00009 $0.00118
Haiku 4.5 $0.00005 $0.00059

Measured 10d ago against content hash 3f471bb50d25, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

claude-md-link-check scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

1. **Inventory.** `find <root> -name "CLAUDE.md" -type f -not -path "*/.git/*" -not -path "*/node_modules/*"`. Also include `.claude/rules/*.md`. Record paths.
skill/claude-md-link-check/SKILL.md · 52 lines

What it actually says

Optional path-glob: $ARGUMENTS (default . — entire tree).

Run these steps in order. Do not modify any file.

  1. Inventory. find <root> -name "CLAUDE.md" -type f -not -path "*/.git/*" -not -path "*/node_modules/*". Also include .claude/rules/*.md. Record paths.
  2. Extract candidates from each file:
    • Chain imports — lines matching ^@\S+. The literal after @ is a relative path.
    • Markdown links[text](target) where target is not an HTTP(S) URL, not mailto:, not a bare anchor #section.
  3. Resolve each candidate relative to the file containing it (use Read on the parent file to confirm position, then test -e <resolved-path> or Glob).
    • For @../CLAUDE.md inside skill/CLAUDE.md, resolved path is CLAUDE.md.
    • For [Backend](backend/CLAUDE.md) inside the root, resolved path is backend/CLAUDE.md.
  4. Return the report in this exact shape:
## Link Check

Files inspected: <count>
References checked: <chain_imports> @-imports, <md_links> markdown links

### Broken
- <file>:<line> — `<original-target>` → does not resolve (expected `<absolute-path>`)
- ... (omit section if empty)

### Clean
<count> references resolved.
  1. If everything resolves, return exactly ## Link Check\n\nAll <N> references resolved across <M> files.. Do not pad.

Hard rule: never invent a fix. Report the broken target verbatim. Repair is the user's call (or /sync-claude-md's).

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 52 lines · 46 tokens per session scan B 3f471bb50d25

Subscribe to this mod's changes

claude-md-link-check is a skill published in the GitHub repository alirezarezvani/ClaudeForge (424 stars, last pushed 3mo ago), licensed MIT. It adds 46 tokens to every session and 592 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.