Capafy
시작하기
Dead Link Checker That Avoids False Positives

Dead Link Checker That Avoids False Positives

Turn URLs and saved-login notes into an ALIVE / DEAD / UNDETERMINED table; handles SPA 200s, 403 blocks, soft 404s. #엔지니어링

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

붙여넣는 내용: URL 목록과 저장된 로그인 세션에 관한 메모(쿠키 이름, 플래그, 날짜만 해당하며 값은 포함하지 않습니다).
받는 결과: 근거와 다음 조치가 담긴 ALIVE / DEAD / UNDETERMINED 표, 그리고 불분명한 항목에 대해 실행해 볼 curl 또는 Playwright 프로브.

작동 방식

Link and Session Liveness Checker는 링크 검사기가 모두 정상이라고 하거나(혹은 모두 죽었다고 하거나) 그 결과를 믿기 어려울 때 쓰는 도구입니다. 관찰한 내용을 읽고 각 링크나 저장된 세션을 ALIVE, DEAD, UNDETERMINED 중 하나로 분류하며 이유를 함께 제시합니다.

1단계 — 증거 수집. 각 URL의 상태 코드, 주요 헤더, 본문 일부를 확인합니다. 저장된 세션은 이름, 플래그, 날짜만 확인하며 값은 확인하지 않습니다.

2단계 — 분류. 어떤 경로에나 200으로 응답하는 SPA, UNDETERMINED로 분류되는 403/429/챌린지 페이지, 로그인 리디렉션, 소프트 404, HEAD와 GET의 차이를 다룹니다.

3단계 — 프로브. 판정 규칙이 포함된 안전한 curl 또는 Playwright 스니펫을 제공합니다. 세션의 경우 로그인해야만 볼 수 있는 페이지에 인증된 요청을 보내는 것도 포함됩니다.

4단계 — 표. 항목별로 판정, 근거, 신뢰도, 다음 조치를 정리하며, 사이트에 과도한 요청을 보내지 않도록 요청 간격에 대한 안내도 함께 드립니다.

샘플 출력

이 Skill을 샘플 문제에 실행해 얻은, 편집하지 않은 실제 출력입니다.

## Evidence

| # | Item | Observed | Marker |
|---|---|---|---|
| 1 | docs…/guide/setup | 200, 1840 bytes, `<div id="root"></div>` shell | none |
| 2 | shop…/p/blue-mug | 200, same final URL | "Blue Mug" present |
| 3 | blog…/2023/old-post | 404, body "Page not found" | n/a |
| 4 | api…/v1/status | 429, `Retry-After: 120` | n/a |
| 5 | news…/archive | 200, title "Example News", body "This article is no longer available" | none |
| A | dashboard.example.com | `sid` (HttpOnly, Secure) expires 2027-03-01; `_ga`; verified 2 weeks ago | "Sign out" on `/account` |
| B | portal.example.org | `sid` session-only; verified 3 months ago | no logged-in URL or marker |

## Verdicts

| Item | Verdict | Evidence | Confidence | Next step |
|---|---|---|---|---|
| 1 docs setup | UNDETERMINED | 200 with an empty JS shell. A status code from an SPA proves nothing. | unconfirmed | Pick a marker, then run Case C, and Case D if needed |
| 2 shop blue-mug | **ALIVE** | 200, no redirect, marker "Blue Mug" present | confirmed | None |
| 3 blog old-post | **DEAD** | Real 404 with a not-found body | confirmed | Replace or remove the link |
| 4 api status | UNDETERMINED (blocked, not dead) | 429 rate limit, `Retry-After: 120` | unconfirmed | Wait at least 120 s, then send one GET |
| 5 news archive | **DEAD (likely)** | The body phrase "This article is no longer available" is the evidence. Going by status 200 alone, this would have been counted as alive. | likely | Replace or remove. If the archive moved, find the new URL. |
| A dashboard | UNDETERMINED | The 2027-03-01 date is only what the cookie *claims*. It is not the server's session lifetime. `_ga` is analytics and doesn't matter here. | unconfirmed | Run Case E once |
| B portal | UNDETERMINED | No logged-in URL or marker to test against. A session-only `sid` can last days, but 3 months unverified makes expiry plausible. That is a guess, not a verdict. | unconfirmed | Supply a logged-in-only URL and marker, then run Case E |

## Probes to run

**#1: control-path test**, once for this host:
curl -sS -o real.html -w 'real=%{http_code} %{size_download}\n' 'https://docs.example.com/guide/setup'
sleep 2
curl -sS -o fake.html -w 'fake=%{http_code} %{size_download}\n' 'https://docs.example.com/this-path-should-not-exist-7f3a'
cmp -s real.html fake.html && echo IDENTICAL || echo DIFFERENT
The result will almost certainly be IDENTICAL for a `#root` shell. In that case, render the page:
`node probe.js 'https://docs.example.com/guide/setup' '<setup-page-heading>'`
Use a heading or sentence that appears only on the setup guide.

**#4: one GET, at least 120 s after the 429:**
curl -sS -D - -o status.json --max-time 20 'https://api.example.org/v1/status'
If it returns 2xx with the expected body (for example a `"status"` field you know), it is ALIVE. If it returns another 429, stop for this run.

**A: authenticated check.** This sends one request and doesn't print any cookie values:
curl -sS -L --max-time 20 --max-redirs 3 -b ~/sessions/dash.txt -c ~/sessions/dash.txt \
  -o me.html -w 'status=%{http_code} final=%{url_effective}\n' 'https://dashboard.example.com/account'
grep -c 'Sign out' me.html
- **ALIVE:** final URL is `/account` and the count is at least 1.
- **DEAD:** the request bounces to a login page, or returns 401. Log in again in a normal browser and re-export the cookies.
- **UNDETERMINED:** 403 or a challenge page.

The `-c` flag saves rotated cookies. Drop it if you don't want the file rewritten.

**B: blocked on missing info.** I need two things from you:
- `<logged-in-only-url>`, for example an account or settings page
- `<logged-in-only-marker>`, for example a logout link or your account name. Don't use "Log in".

Then run Case E with `~/sessions/portal.txt`. A curl-style cookie file *may* not hold a session-only cookie at all. So if the probe shows a logged-out page, the cause may be the file rather than the server. Check that a `sid` line exists in the file, without printing its value: `grep -c 'sid' ~/sessions/portal.txt`.

## Notes

- **Pacing:** one probe per URL. The only extra is the single control request for docs.example.com. Leave 2 s or more between requests to the same host and about 1 s across hosts.
- **api.example.org:** paused until its `Retry-After` has passed. Don't retry it in a loop.
- **Cookie dates vs. results:** trust the observed Case E result over any cookie date.
- **Re-check cadence:** sessions at most daily, links weekly.

활용 사례

  • 문서, 블로그, 링크 목록에서 죽은 링크 정리
  • 저장된 로그인 세션이 아직 작동하는지 확인
  • 봇 차단과 삭제된 페이지 구분
  • 쿠키 만료일을 그대로 믿는 함정 피하기

자주 묻는 질문

쿠키를 붙여넣어야 합니까? 아니요. 이름, 플래그, 날짜만 붙여넣으십시오. Skill이 값은 가리도록 안내합니다.

차단을 우회합니까? 아니요. User-Agent 변경은 진단을 돕는 용도일 뿐이며, 의도적인 차단은 UNDETERMINED로 보고합니다.

사이트에 직접 요청을 보냅니까? Skill 자체는 네트워크 호출을 하지 않습니다. Skill이 작성한 프로브는 사용자의 컴퓨터에서 curl 또는 Playwright로 실행되며, 결과는 사용자가 다시 붙여넣습니다. 직접 소유했거나 테스트가 허용된 링크와 계정에만 사용하십시오. URL당 프로브를 한 번 보내며, 싱글 페이지 앱에는 호스트당 대조 요청을 한 번 더 보냅니다.

Anthropic, Claude Code, OpenAI, Codex, OpenClaw, Playwright는 각 소유자의 상표입니다. 이 Skill은 독립 제품이며 해당 소유자와 제휴, 보증, 후원 관계가 없습니다.