본문으로 건너뛰기
cccskills
무료GitHub에 공개

doc-link-audit

Use before publishing documentation, merging a docs PR, or reporting a Markdown-heavy repo's navigation as complete — when you want ground-truth confirmation that internal links, heading anchors, and directory links resolve, without opening every file yourself.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md3.8 KB
  • scripts/check_links.py7.5 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Doc Link Audit

Overview

A dependency-free Python script that parses every .md file in a repo, resolves every [text](target) link, and reports what's actually broken: a missing file, a heading anchor that doesn't exist, or a page nothing else links to. It replicates GitHub's heading-slug algorithm exactly (including the double-hyphen case an em-dash produces) rather than a simplified approximation.

Core principle: A link checker that reports false positives on doc examples and fenced code blocks isn't worth reading a second time — teams turn it off. Excluding code spans and fenced blocks from the scan is not an optional nicety here, it's what makes the tool's output trustworthy enough to act on without re-verifying by hand.

Usage

python3 ${CLAUDE_SKILL_DIR}/scripts/check_links.py [root_dir] [--check-external] [--exclude PATTERN]
  • Defaults to .. Exit code 0 = clean, 1 = findings, 2 = usage error.
  • --exclude PATTERN is a regex matched against each file path (e.g. --exclude 'archive/|vendor/').
  • --check-external additionally HEAD-requests every http(s):// link found (off by default — slow, needs network, and a timeout or 403 from an otherwise-fine site is not the same as a broken link).

What it reports

SectionMeans
BROKEN LINKS[text](path) where path doesn't resolve to a file, or path#anchor where the heading anchor doesn't exist in the target file
ORPHAN PAGESA .md file no other .md file links to (excludes conventional entry points: README, INDEX, CHANGELOG, etc.)
EXTERNAL LINKShttp(s):// links found; only verified with --check-external

A link to a directory ([examples/](examples/)) is treated as valid without checking for an index.md inside it — Markdown renderers differ on that resolution, so this script doesn't guess.

Known limitation classes

This is a regex-and-string-position parser, not a real Markdown AST. Two situations it cannot fully solve:

  1. Pathological code-fence nesting — a fenced block whose content itself contains a bare ``` line (e.g. showing fence syntax as an example) can confuse the opener/closer pairing. The script anchors fences to line boundaries (^```lang\n...^```$) which resolves the common case (adjacent untagged blocks — the bug this script's own first draft hit, self-diagnosed by running it against this library and getting 49 false positives before the fix), but a block genuinely nested inside another block will still mismatch. If you see a false positive pointing at .md/.js-shaped text inside what's clearly a code example, that's this limitation — exclude the file or accept the noise rather than trusting a hand-rolled fence parser to get arbitrary nesting right.
  2. Table cells and non-standard constructions — [text](target)-shaped text that appears outside any fenced block or inline code span (rare, but possible inside a Markdown table cell with unusual escaping) is treated as a real link. Both single-backtick and double-backtick ( like this , which permits literal single backticks inside) inline code spans are stripped correctly.

When in doubt, treat this script's report as "review these" not "these are definitely broken" — the same posture you'd take with any linter's edge cases.

Remember

Zero broken links reported means zero file and anchor problems. It says nothing about whether the content those links point to is any good, current, or the right thing to link to.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use when evaluating, comparing, installing, or recommending a Claude Code plugin, Agent Skill, MCP server, agent toolkit, or GitHub-hosted AI extension, especially when popularity is weak evidence or the candidate requests shell, network, filesystem, or credential access.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Rtur2003/Claude-Code-Promts-Skills532026년 9월 22일 업데이트

Use when cutting a release, writing a CHANGELOG entry, or summarizing what changed since a tag — when the repo's commits follow (or mostly follow) Conventional Commits and a mechanically-accurate section breakdown beats a model's reading of the diff.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Rtur2003/Claude-Code-Promts-Skills532026년 9월 22일 업데이트

Use before committing, opening a PR, or reporting a task done — when you want ground-truth confirmation there are no conflict markers, live-looking credentials, debug leftovers, untracked TODOs, or oversized files, without spending a model turn re-reading every file yourself.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Rtur2003/Claude-Code-Promts-Skills532026년 9월 22일 업데이트

Use when the user names a coding or Claude Code task ("add OAuth", "set up hooks", "review this PR", "pick a model"), asks which prompt to use, says to "use the right prompt", or when you enter this repo and need to orient without reading every file.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Rtur2003/Claude-Code-Promts-Skills532026년 9월 22일 업데이트

Use when the user names a coding, Claude Code, research, documentation, or technology-selection task; asks which prompt to use; says to use the right prompt; or when an agent enters this repository and needs to orient without reading every file.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Rtur2003/Claude-Code-Promts-Skills532026년 9월 22일 업데이트

Use when a skill isn't triggering as expected, before adding a new skill (to check for a name collision), during periodic cleanup of an accumulated skills directory, or when asked to review skill quality — checks frontmatter validity, description quality against Skill Discovery Optimization conventions, body size, and cross-scope name collisions.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Rtur2003/Claude-Code-Promts-Skills532026년 9월 22일 업데이트

Rtur2003의 스킬 모두 보기

이 스킬의 문제 신고