协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
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.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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)