一键导入
crawl
Recursively crawl a documentation site, converting each page to markdown
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Recursively crawl a documentation site, converting each page to markdown
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Process raw sources into wiki pages — creates summaries, entities, and concept pages
Check Sentry errors, Axiom logs, and other monitoring sources for bugs, then fix them with regression tests
Fetch Google Docs and convert to markdown
Generate TTS audio from speaker_notes and upload to Vercel Blob
Generate AI illustrations for course cards and upload to Vercel Blob
Convert PDF files to markdown
| name | crawl |
| description | Recursively crawl a documentation site, converting each page to markdown |
| user-invocable | false |
| allowed-tools | Read, Bash, Glob, Grep |
Recursively crawl a documentation site starting from a root URL, using LLM judgment to follow related links and converting each page to markdown.
/crawl <start_url> [-o output_dir] [-d max_depth]
Defaults: -o output/, -d 2
Parse arguments: extract start URL, -o <dir> (default output/), -d <depth> (default 2).
Create the output directory if needed: mkdir -p <output_dir>
Initialize state:
visited: set of normalized URLs already processed (fetched or skipped)queue: list of (url, depth) pairs, starting with [(start_url, 0)]results: list of {url, path, status} for final reportmax_pages: 50 (safety cap)Process the queue in breadth-first order:
For each (url, depth) popped from the queue:
a. Skip if the normalized URL is already in visited.
b. Add the normalized URL to visited.
c. Fetch and convert the page:
bash fetch/parsers/web.sh "<url>" "<output_dir>"
len(results) >= max_pages, stop and report.
e. If depth < max_depth, extract links:bash fetch/links.sh "<url>"
This outputs TSV: <absolute_url>\t<link_text> per line.
f. Filter links — classify each extracted link as follow or skip:
Follow (add to queue at depth + 1):
/en/docs/claude-code, follow /en/docs/claude-code/settings but not /en/docs/agents)Skip (do not follow):
/api/, /auth/, /login/, /signup/, /download/, /changelog/.pdf, .zip, .tar.gz, .png, .jpg, .svg, .gifvisitedUse your judgment for edge cases. When uncertain, prefer to follow — the user can always delete unwanted files.
g. Add filtered URLs to the queue as (url, depth + 1).
h. Pace requests: wait 1 second between fetches to avoid rate limiting: sleep 1
After the queue is empty (or max_pages reached), report results:
web.sh generates.max_pages, stop and tell the user how many remain.-o ~/code/llm-wiki/raw/)./crawl https://docs.anthropic.com/en/docs/claude-code -o ~/code/llm-wiki/raw/ -d 2
This fetches the Claude Code docs root, follows all related doc links up to 2 levels deep, and writes markdown files to the llm-wiki raw directory.