wigolo-crawl
它能做什么
这项技能教智能体如何从一个网站(例如其文档)收集大量页面。它使用站点地图或链接跟随策略,只在选定的路径内操作,并遵守频率限制和 robots.txt。
适用场景
- ✓当用户想为文档网站建立索引,以便之后阅读的时候。
- ✓当用户要求获取网站某个路径下的全部页面的时候。
- ✓当用户想把网站的文本批量复制并保存到本地缓存的时候。
技能链接
https://github.com/KnockOutEZ/wigolo/blob/main/skills/wigolo-crawl/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请爬取这个网站的文档,范围限制在 API 参考文件夹内,最多保存三十页。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会选择一种策略,例如站点地图、链接爬取或仅 URL 发现,并添加模式使爬取范围保持在限定之内。然后,它会在限制内抓取页面,并存入本地缓存。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
wigolo crawl
Crawl sites with configurable strategy, depth, and rate limiting. All pages enter the local cache with embeddings.
Quick Reference
// Crawl docs via sitemap (fastest, recommended for doc sites)
{ "url": "https://docs.example.com", "strategy": "sitemap", "max_pages": 30 }
// BFS crawl with scope filter
{ "url": "https://example.com", "strategy": "bfs", "max_depth": 3, "max_pages": 50, "include_patterns": ["^https://example\\.com/docs"] }
// URL discovery only (no content fetched — fastest for scoping)
{ "url": "https://example.com", "strategy": "map" }
// Authenticated crawl
{ "url": "https://app.example.com/docs", "strategy": "bfs", "use_auth": true, "max_pages": 20 }
Parameters
| Parameter | Type | Default | When to use |
|---|---|---|---|
url |
string | required | Seed URL |
strategy |
string | "bfs" | "sitemap" for doc sites, "map" for URL discovery only |
max_depth |
number | 2 | How many link levels to follow |
max_pages |
number | 20 | Hard cap on pages fetched |
include_patterns |
string[] | none | Regex whitelist — ALWAYS add to stay in scope |
exclude_patterns |
string[] | none | Regex blacklist |
use_auth |
boolean | false | For authenticated sites |
extract_links |
boolean | false | Return inter-page link graph |
max_total_chars |
number | 100000 | Total char budget |
max_tokens_out |
number | none | Token-budget cap (cl100k-base) |
include_full_markdown |
boolean | false | Pages return evidence-only by default |
citation_format |
string | "numbered" | "numbered" / "json" / "anthropic_tags" |
Pages are dedup'd by canonical URL (anchor-fragment aware: /intro and /intro#install collapse to one entry).
After Crawling
All crawled pages enter the local cache with embeddings. This means:
cache({ query: "..." })finds content instantly (no network).find_similar({ url: "..." })discovers related pages from cached content.- Future searches that hit cached URLs return instantly.
Crawl first, then use cache and find_similar for subsequent lookups.
Anti-Patterns
- DON'T crawl
max_pages: 100withoutinclude_patterns— fetches nav/footer/sitemap noise. - DON'T use BFS on large doc sites —
strategy: "sitemap"is faster and more complete. - DON'T crawl when you need one page — use
fetch.
When NOT to use wigolo-crawl
- Login-required crawl beyond what
use_authcovers — handle authentication externally first, thencrawl.
See Also
- wigolo-fetch — for single pages
- wigolo-find-similar — discover related content after crawling
- wigolo-cache — query the pages a crawl populated
常见问题
它会遵守 robots.txt 吗?
会。这项技能说明,它会遵守 robots.txt 并应用频率限制。
如何让爬取范围保持在限定之内?
这项技能说明应添加包含模式,把爬取限制在正确的区域。
什么是站点地图策略?
它读取网站的站点地图,这通常是覆盖文档网站最快的方式。
详情
作者的原始描述
Local-first multi-page crawl with sitemap, BFS, DFS, and URL-map strategies, anchor-fragment dedup, rate limiting, robots.txt respect, and automatic local cache population. Use when the user wants to index documentation, crawl a docs site, extract all pages under a path, or says "crawl", "index this site", "get all the docs", "bulk extract". Prefer when crawled pages should land in a reusable local cache for later `cache` / `find_similar` queries.
repo: KnockOutEZ/wigolo
热度
- GitHub 星标
- 5.5k
- 排名
- #14817
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
wigolo
5.5k帮你的智能体通过本地工具服务器搜索、抓取、爬取和研究网页,结果缓存在你的电脑上,无需任何 API 密钥。
wigolo-agent
5.5k帮你的智能体在限定时间内,从多个网络来源一次性收集数据,并按照 schema 定义的固定结构返回。
wigolo-cache
5.5k帮你的智能体先搜索已经抓取、爬取或搜索过的页面,再回到网上查找,使重复查询即时完成且无需额外成本。
wigolo-diff
5.5k帮你的智能体比较网页的两个版本,并精确显示改动了什么,可以按板块、按单词显示,也可以输出简短的计数摘要。