Agent skill

Claude Md Link Check

by alirezarezvani in alirezarezvani/ClaudeForge

Verify every @path chain import and every markdown link inside every CLAUDE.md in this project resolves to an existing file.

MITAuto-check passedAgent Workflows

Install Claude Md Link Check

skills CLI
$ npx skills add alirezarezvani/ClaudeForge --skill claude-md-link-check -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install alirezarezvani/ClaudeForge claude-md-link-check --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/alirezarezvani/ClaudeForge.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skill/claude-md-link-check .claude/skills/claude-md-link-check && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
claude-md-link-check
GitHub stars
429
Token cost
~525 tokens
SKILL.md length
160 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

Verify every @path chain import and every markdown link inside every CLAUDE.md in this project resolves to an existing file.

  • Works in 5 steps: Inventory. find -name "CLAUDE.md" -type… → Extract candidates from each file → Resolve each candidate relative to the… → …
  • Tasks that involve Agent instruction files
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Claude Md Link Check is an agent skill from alirezarezvani/ClaudeForge. Verify every @path chain import and every markdown link inside every CLAUDE.md in this project resolves to an existing file. Read-only — returns broken links with file:line refs, never edits.

Its SKILL.md is about 530 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Agent instruction files. The repository describes itself as: A CLAUDE.md Generator and Maintenance tool for for Claude Code to create high-quality CLAUDE.md instruction files — aligned with Anthropic’s best practices for Claude Code. The licence is MIT.

When your agent uses it

  • Tasks that involve Agent instruction files

Example prompts

  • “/claude-md-link-check”

Requirements

  • Pre-approved tools (allowed-tools): Read, Glob, Grep, Bash(find:*), Bash(test:*), Bash(ls:*)

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Inventory. find -name "CLAUDE.md" -type f -not -path "*/.git/*" -not -path "*/node_modules/*". Also include .claude/rules/*.md. Record…
  2. Extract candidates from each file
  3. Resolve each candidate relative to the file containing it (use Read on the parent file to confirm position, then test -e or Glob).
  4. Return the report in this exact shape
  5. If everything resolves, return exactly ## Link Check\n\nAll references resolved across files.. Do not pad.

What it can do on your machine

Read from SKILL.md and the folder at commit 032c5e5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • Bash(find:*)
    • Bash(test:*)
    • Bash(ls:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Claude Md Link Check loads about 525 tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 160 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~53
When it runs · the whole SKILL.md, loaded when a task matches
~525

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from alirezarezvani/ClaudeForge at commit 032c5e5, republished under its MIT licence (© alirezarezvani). 160 words, ~525 tokens.

Download SKILL.mdSave it as .claude/skills/claude-md-link-check/SKILL.md (or your agent's skills folder).
name
claude-md-link-check
description
Verify every @path chain import and every markdown link inside every CLAUDE.md in this project resolves to an existing file. Read-only — returns broken links with file:line refs, never edits.
allowed-tools
Read, Glob, Grep, Bash(find:*), Bash(test:*), Bash(ls:*)
when_to_use
Use when the user asks "check my CLAUDE.md links", "are the @-imports still valid?", "find broken cross-references", or as part of /sync-claude-md --weekly.
argument-hint
[path-glob]
context
fork
agent
Explore
disable-model-invocation
false

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).

© alirezarezvani, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skill/claude-md-link-check of alirezarezvani/ClaudeForge.

Open the folder on GitHubat commit 032c5e5

Compare with similar skills

Claude Md Link Check next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Claude Md Link Check compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Claude Md Link Check this skillalirezarezvani/ClaudeForge429—~525Automated safety check: PassMIT
Using Agent Skillsaddyosmani/agent-skills104k4 repos~2.4kAutomated safety check: PassMIT
Claude ReflectBayramAnnakov/claude-reflect1.8k2 repos~627Automated safety check: PassMIT
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
Writing For Agentsbestofjs/bestofjs3.1k18 repos~2.7kAutomated safety check: PassMIT
Task Observerrebelytics/one-skill-to-rule-them-all3.2k1 repos~11kAutomated safety check: PassCC-BY-4.0

Similar skills

  • Using Agent Skills

    addyosmani/agent-skills

    Meta-skill for choosing which workflow skill fits the task at hand, plus always-on habits: surface assumptions, stop on confusion, push back, keep it simple and stay in scope.

    104k GitHub starsUsed in 4 repos~2.4k tokens
    Agent WorkflowsAuto-check passed
  • Claude Reflect

    BayramAnnakov/claude-reflect

    Self-learning system that captures corrections during sessions and reminds users to run /reflect to update CLAUDE.md.

    1.8k GitHub starsUsed in 2 repos~627 tokens
    Agent WorkflowsAuto-check passed
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 8 days ago
    Agent WorkflowsAuto-check passed
  • Writing For Agents

    bestofjs/bestofjs

    Writing documents for agents. An agent skill from bestofjs/bestofjs.

    3.1k GitHub starsUsed in 18 repos~2.7k tokens
    Agent WorkflowsAuto-check passed
  • Task Observer

    rebelytics/one-skill-to-rule-them-all

    Monitors task execution for skill improvement opportunities.

    3.2k GitHub starsUsed in 1 repo~11k tokens
    Agent WorkflowsAuto-check passed
  • SkillOpt Sleep Cycle

    microsoft/SkillOpt

    Official

    Runs an on-demand or nightly sleep cycle that reviews past Claude Code sessions and proposes validated updates to CLAUDE.md and skills.

    18k GitHub stars~2.3k tokensUpdated 3 days ago
    Agent WorkflowsAuto-check passed

More from alirezarezvani/ClaudeForge

  • Karpathy Guidelines

    alirezarezvani/ClaudeForge

    Behavioral guardrails for LLM-assisted coding. An agent skill from alirezarezvani/ClaudeForge.

    429 GitHub stars~1.2k tokensUpdated 4 mo ago
    Auto-check passed
  • Claude Md Dependency Rescan

    alirezarezvani/ClaudeForge

    Re-detect this project's tech stack from package.json / requirements.txt / pyproject.toml / go.mod / Cargo.toml and diff it against the Tech Stack section of every CLAUDE.md.

    429 GitHub stars~624 tokensUpdated 4 mo ago
    Auto-check passed
  • Claude Md Drift Audit

    alirezarezvani/ClaudeForge

    Audit every CLAUDE.md in this project for drift against the last week of git history.

    429 GitHub stars~559 tokensUpdated 4 mo ago
    Auto-check passed

Categories

Questions about Claude Md Link Check

What does Claude Md Link Check do?

Verify every @path chain import and every markdown link inside every CLAUDE.md in this project resolves to an existing file. Claude Md Link Check is an agent skill from alirezarezvani/ClaudeForge.md in this project resolves to an existing file.

When should I use Claude Md Link Check?

Claude Md Link Check fits situations like: tasks that involve Agent instruction files.

How do I install Claude Md Link Check in Claude Code?

Run `npx skills add alirezarezvani/ClaudeForge --skill claude-md-link-check -a claude-code`. Or copy the skill folder (skill/claude-md-link-check in alirezarezvani/ClaudeForge) into .claude/skills/claude-md-link-check in your project. Claude Code loads it when a task matches its description.

How do I install Claude Md Link Check in Codex?

Run `npx skills add alirezarezvani/ClaudeForge --skill claude-md-link-check -a codex`. Or copy the skill folder (skill/claude-md-link-check in alirezarezvani/ClaudeForge) into .agents/skills/claude-md-link-check in your project. Codex loads it when a task matches its description.

Can I use Claude Md Link Check in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add alirezarezvani/ClaudeForge --skill claude-md-link-check -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/claude-md-link-check, .gemini/skills/claude-md-link-check, .github/skills/claude-md-link-check and .opencode/skills/claude-md-link-check in your project.

What does Claude Md Link Check need to run?

SKILL.md names no scripts, command-line tools or credentials: Claude Md Link Check is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Glob, Grep, Bash(find:*), Bash(test:*), Bash(ls:*).

Does Claude Md Link Check access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Claude Md Link Check safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Claude Md Link Check use?

Claude Md Link Check is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Claude Md Link Check use?

About 525 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Claude Md Link Check?

Skills that share tags, products or a category with Claude Md Link Check: Using Agent Skills (addyosmani/agent-skills, 104k stars), Claude Reflect (BayramAnnakov/claude-reflect, 1.8k stars), Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars) and Writing For Agents (bestofjs/bestofjs, 3.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Claude Md Link Check?

alirezarezvani (a GitHub user) maintains it in alirezarezvani/ClaudeForge, which has 429 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on May 19, 2026.

Source: alirezarezvani/ClaudeForge on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.