link-validation

link-validation is a skill for Claude Code from terrylica/cc-skills. It costs 32 tokens per session (1,188 once invoked), scanned A, original, MIT.

A workspace checker that finds broken links in Markdown files and flags links that violate path rules. Markdown is a plain-text format commonly used for documentation, and lychee is the link-checking tool it runs.

In plain words
What is it for?
Scanning documentation, checking external and local links, detecting absolute paths or excessive directory traversal, and writing JSON-style results.
Why use it?
It catches dead links and unsafe or invalid paths before documentation is committed or published.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash tasks/link-check.sh # the same script without moon.

Part of the link-tools plugin — 2 skills shipped together , and of cc-skills

Good fit Scanning documentation, checking external and local links, detecting absolute paths or excessive directory traversal, and writing JSON-style results.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/terrylica/cc-skills
agentmods
npx agentmods add skills/terrylica/cc-skills/link-validation

Made for: Claude Code.

Or install link-tools, the plugin that ships this one along with the rest of its 2 skills.

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 link-validation

README.md
[![agentmods](https://agentmods.dev/badge/skills/terrylica/cc-skills/link-validation/github.svg)](https://agentmods.dev/skills/terrylica/cc-skills/link-validation)
Your own site
<a href="https://agentmods.dev/skills/terrylica/cc-skills/link-validation"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/link-validation/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 link-validation

Your own site · 80×15
<a href="https://agentmods.dev/skills/terrylica/cc-skills/link-validation"><img src="https://agentmods.dev/badge/skills/terrylica/cc-skills/link-validation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,188 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Rogue Agent · line 99
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
How audits are shown
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.00032 $0.01188
Opus 5.5 $0.00013 $0.00475
Sonnet 5.5 $0.00006 $0.00238
Haiku 4.5 $0.00003 $0.00119

Measured 1mo ago against content hash 40b871bb7e36, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

link-validation scanned grade A with 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/link-tools/skills/link-validation/SKILL.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Validates markdown links in your workspace using lychee.

Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

When to Use This Skill

Use this skill when:

  • Checking for broken links in markdown files
  • Validating link paths before committing documentation
  • Proving a doc change left no dangling internal link

How to Run It

The working path is the offline lychee check in tasks/link-check.sh. Inside the cc-skills repository it is part of the quality gate:

moon run repo:link-check     # this check alone
moon run repo:check          # the whole gate, link-check included
bash tasks/link-check.sh     # the same script without moon

In any other workspace, run the same lychee command from the repository root:

lychee --offline --no-progress --root-dir "$(git rev-parse --show-toplevel)" './**/*.md'

Add --config lychee.toml when the repository has one; lychee also loads ./lychee.toml by itself.

What the Check Does

tasks/link-check.sh:

  1. cds to the working-tree root (git rev-parse --show-toplevel, so it is correct inside a worktree too)
  2. Runs bunx lychee --config lychee.toml --offline --no-progress --root-dir <repo root> './**/*.md'
  3. Excludes plugins/statusline-tools/tests/fixtures, whose links are broken on purpose
  4. Prints lychee's summary line, then ✓ every internal link resolves or ✗ broken internal links found (lychee exit N), and exits with lychee's exit code

It checks relative links, root-relative links (/docs/adr/x.md, resolved through --root-dir) and #anchor fragments. It is offline by design: external URL liveness depends on the network and on other sites' uptime, so it is not checked. Nothing is written to disk except lychee's own .lycheecache; the result is the terminal output and the exit code.

Read the full file on GitHub · 101 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · -1 lines · +8 tokens per session 40b871bb7e36
  2. 1mo ago Changed 2c338a73e72d
  3. 2mo ago Changed 93e680e8edfa
  4. 2mo ago First seen · 102 lines · 24 tokens per session scan A 7a5dab8c0581

Subscribe to this mod's changes

link-validation is a skill published in the GitHub repository terrylica/cc-skills (5 stars, last pushed today), licensed MIT. It adds 32 tokens to every session and 1,188 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

link-validation compared with skills from other repositories

link-validation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
link-validationterrylica/cc-skillsSkill5todayMITA32Claude Code
huedominikmartn/hueSkill96920d agoMITA84Claude Code, Codex
example-feature-generatorqf-studio/navigatorSkill35814d agoMITA33Claude Code
authentication-patternstravisjneuman/.claudeSkill115yesterdayMITA28Claude Code
content-repurposertravisjneuman/.claudeSkill115yesterdayMITA43Claude Code
electron-desktoptravisjneuman/.claudeSkill115yesterdayMITA38Claude Code
impact-report-writertravisjneuman/.claudeSkill115yesterdayMITA43Claude Code