Capafy
시작하기
Find Dead Links and Stale Docs After Repo Rewrite

Find Dead Links and Stale Docs After Repo Rewrite

Audit a git repo's docs after a big rewrite: dead links, deleted-file references, stale 'blocked' notes, README gaps. #엔지니어링

평점
더 많은 평가가 필요합니다
판매
0
사용 방법
다운로드

붙여넣는 내용: 문서를 막 다시 쓰거나 구조를 바꾼 저장소의 파일 트리와 문서 발췌문입니다(또는 에이전트가 저장소를 직접 보도록 지정해도 됩니다).
받는 결과: 파일:줄 번호 근거가 붙은 P1 / P2 / P3 보고서와, 무엇이든 수정하기 전에 승인하실 수 있는 최소 패치 목록입니다.

작동 방식

Repo Doc-Reset Audit은 저장소 문서를 재구성하거나 다시 쓴 다음 날 사용하는 도구입니다. 재작성으로 인해 깨진 것과 남겨진 것을 찾아내고, 요청하지 않는 한 아무것도 바꾸지 않은 채 최소한의 수정안을 제안합니다.

1단계 — 범위. 어떤 문서인지, 어떤 경로가 삭제되거나 이름이 바뀌었는지, 어떤 README 섹션에 합의했는지를 확인합니다.

2단계 — 안전한 점검. 코드 블록과 앵커를 무시하는 읽기 전용 깨진 상대 링크 점검 스니펫과, 오래된 표시(blocked, waiting, TODO) 검색을 수행합니다.

3단계 — 분류. 파일:줄 번호 근거가 있는 P1 / P2 / P3 결과로 분류하며, 403 또는 429를 반환한 실제 URL은 깨진 링크로 보고하지 않습니다.

4단계 — 패치 목록과 재점검. 승인하실 수 있는 번호 목록 형태로 최소 수정안을 제시한 뒤, 같은 점검을 다시 실행하여 수정 전후의 건수를 보고합니다.

샘플 출력

이 Skill을 샘플 문제에 실행한 실제 출력이며, 편집하지 않았습니다.

Summary: P1 4, P2 2, P3 1 — 3 doc files scanned (README.md, docs/pricing.md, docs/api/README.md); audit limited to the pasted text.

## Scope
- Source: pasted tree and excerpts only; no repo access, no commands run, checks done by reading. Limits: `docs/install.md`, `docs/api/endpoints.md` and `scripts/seed.py` were not pasted, so their contents, links and README shape were not checked. No `git log` search was possible; the history comes from the two lines you gave.
- Deleted or renamed paths searched for: `docs/pricing-old.md` (deleted), `guides/setup.md` (renamed to `docs/install.md`), `guides/` (merged into `docs/`).
- Agreed README shape: `## Purpose`, `## Status`, `## How to run` (stated by you). Declared sources of truth: none stated.
- Checked: relative links (2a), old-name references (2b), stale markers (2c), README shape (2d), URLs (2e, no network, so unchecked), history text (2f). Anchors and HTML links were not checked.

## Findings
**P1**
- README.md:5 — "Sync is blocked on the new auth service; waiting for the vendor to enable it." — resolved-but-still-written: your note says the auth service went live last week and `scripts/seed.py` already uses it.
- README.md:7 — "[setup](guides/setup.md)" — dead link: `guides/setup.md` was renamed to `docs/install.md`.
- docs/api/README.md:2 — "Rate limits: see [limits](limits.md)" — dead link: `docs/api/limits.md` is not in the tree.
- docs/api/README.md:3 — "Prices: see docs/pricing-old.md." — reference to a deleted file as if it exists; the surviving page is `docs/pricing.md`.

**P2**
- docs/api/README.md:1 — "# API" — README is missing all three agreed sections: `## Purpose`, `## Status`, `## How to run`. (`README.md` at the root has all three.)
- docs/pricing.md:3 — "https://tinytasks.example.com/pricing" — live URL not verified (see Unverified).

**P3**
- docs/api/README.md:3 — "(We used to host this in guides/ before the merge.)" — history text; it belongs in `git log`.

Kept (no finding): README.md:7 link `docs/api/endpoints.md` and docs/api/README.md:2 link `endpoints.md` both resolve to `docs/api/endpoints.md`, which is in the tree.

## Unverified
- https://tinytasks.example.com/pricing (docs/pricing.md:3) — not requested and no network in this audit. The `example.com` domain suggests a placeholder; confirm whether it is real before anyone relies on it.
- README.md:5 — the "blocked" note is marked resolved only on your statement; I did not see `scripts/seed.py` or the auth config. Confirm the Sync feature actually works, not just that the service is live, before rewriting the Status line.
- Pricing figures in docs/pricing.md ("Free plan: 3 projects. Pro: $5/month.") are stated once in the pasted text, so no duplicate-truth conflict was found. Unpasted pages could restate them.

## Patch list
1. P1 README.md:5 — old: "Sync is blocked on the new auth service; waiting for the vendor to enable it." — new: a present-tense status, e.g. "Sync uses the new auth service." (confirm the exact wording and whether Sync works) — reason: the blocker is gone.
2. P1 README.md:7 — old: `[setup](guides/setup.md)` — new: `[setup](docs/install.md)` — reason: renamed in the merge of `guides/` into `docs/`.
3. P1 docs/api/README.md:3 — old: "Prices: see docs/pricing-old.md." — new: "Prices: see [pricing](../pricing.md)." — reason: the old file was deleted; link to the surviving page rather than copying prices. If the old content is still needed, `git show <commit>:docs/pricing-old.md` retrieves it; do not recreate the file.
4. P1 docs/api/README.md:2 — old: "Rate limits: see [limits](limits.md)." — new: remove the sentence, or point it at the page that now holds rate limits — reason: `limits.md` does not exist. Question for you: was it deleted, never written, or moved under another name?
5. P2 docs/api/README.md — add `## Purpose`, `## Status`, `## How to run` under "# API" (one line each; content is yours to supply) — reason: agreed README shape.
6. P3 docs/api/README.md:3 — old: " (We used to host this in guides/ before the merge.)" — new: remove — reason: history belongs in `git log`.
7. P2 docs/pricing.md:3 — no edit proposed; confirm the URL is real or replace the placeholder.

Reply `apply 1,2,5` (or `apply all P1`) and I will make exactly those edits.

활용 사례

  • 문서 폴더를 옮기거나 병합한 뒤 정리할 때
  • 삭제한 파일을 가리키는 참조를 찾을 때
  • 더 이상 사실이 아닌 'X 때문에 막혀 있음' 메모를 찾아낼 때
  • 모든 README에 팀이 합의한 섹션이 그대로 있는지 확인할 때

자주 묻는 질문

제 파일을 수정합니까? 적용할 항목을 알려 주시지 않는 한 수정하지 않습니다.

실제 URL도 확인합니까? 요청하시면 표본으로 고른 URL을 curl로 확인하며, 403, 429, 캡차 또는 JavaScript 셸 응답은 깨진 링크가 아니라 확인되지 않음으로 보고합니다.

어떤 저장소에서 쓸 수 있습니까? Markdown 문서가 있는 Git 저장소입니다. 링크 점검에는 python3를 사용하며, 실제 URL 점검(curl)은 선택 사항입니다.

여기에 언급된 Git, GitHub 및 기타 제품명과 Anthropic, OpenAI, OpenClaw는 각 소유자의 상표입니다. 이 Skill은 독립적인 제품이며, 이들 중 어느 곳과도 제휴, 보증, 후원 관계가 없습니다.