一键导入
fixing-broken-links
Crawl all links in a file or project, test each for a valid HTTP response, report broken ones, and fix or remove them.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Crawl all links in a file or project, test each for a valid HTTP response, report broken ones, and fix or remove them.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use Cursor's browser aria snapshots to audit a page for accessibility issues — missing labels, broken tab order, contrast, and ARIA misuse.
Add PostHog analytics to a web application, including event tracking, page views, feature flags, and session replay.
Generate OpenAPI/Swagger documentation for an API, including endpoint schemas, request/response types, and interactive docs UI.
Add authentication to a web application using NextAuth.js (Auth.js), including OAuth providers, session management, and protected routes.
Dockerize an application with a production-ready Dockerfile, docker-compose setup, and .dockerignore.
Set up Playwright end-to-end testing in a project, including test configuration, example tests, and CI integration.
| name | fixing-broken-links |
| description | Crawl all links in a file or project, test each for a valid HTTP response, report broken ones, and fix or remove them. |
| user-invocable | true |
Scan a file (or set of files) for URLs, test every link, and fix any that are broken.
Read the target file(s) and collect every URL:
[text](url)https://...href and src attributes[id]: url./path/to/file, resources/foo/SKILL.mdFor external URLs:
curl -sL -o /dev/null -w "%{http_code}" --max-time 10 "<url>" to get the HTTP status code200–299 → OK301/302 → OK but note the redirect target403 → Might be valid (some sites block curl); try with a browser user-agent header404 → Broken429 → Rate limited; retry once after a short pause000 or timeout → Retry once; if still failing, mark as unreachableFor local file paths:
[ -f "path" ]For each broken link:
Produce a summary table:
| URL | Status | Action |
|-----|--------|--------|
| https://example.com/page | 200 | OK |
| https://old.example.com/moved | 404 → 301 | Updated to https://new.example.com/page |
| ./docs/missing.md | MISSING | Removed link |
[text](url) not [text]( url ) (no extra spaces)