wigolo-cache
它能做什么
这项技能教智能体如何搜索 wigolo 已经保存在本地的网页。它会先检查磁盘上已有的内容,也可以显示缓存统计信息或清除匹配的条目。
适用场景
- ✓当用户询问某个页面或主题是否已经抓取过的时候。
- ✓当用户想搜索自己已经从网上收集到的内容的时候。
- ✓当用户想查看自己上次查看某个网站以来有哪些变化的时候。
技能链接
https://github.com/KnockOutEZ/wigolo/blob/main/skills/wigolo-cache/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们之前有没有抓取过关于 OAuth PKCE 的内容?请在我的本地缓存中搜索一下。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会按关键词搜索本地缓存,或结合关键词与语义搜索。它可以按网站地址或日期进行筛选,也可以重新检查缓存页面,报告有什么变化。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
wigolo cache
The local knowledge store. Every page wigolo fetches, crawls, or searches lands here with clean markdown and embeddings, so the second read is instant and free. Check the cache before any search or fetch.
Quick Reference
// Keyword search over cached content
{ "query": "oauth2 pkce" }
// Scope to a URL glob
{ "query": "pkce", "url_pattern": "*auth0.com*" }
// Higher-recall hybrid (keyword + semantic) lookup
{ "query": "token refresh rotation", "mode": "hybrid" }
// Only entries cached after a date
{ "query": "release notes", "since": "2026-06-01" }
// Cache statistics (no query needed)
{ "stats": true }
// Re-fetch matching cached URLs and report what changed
{ "url_pattern": "*docs.example.com*", "check_changes": true }
// Clear matching entries (requires at least one filter)
{ "url_pattern": "*staging.example.com*", "clear": true }
Parameters
| Parameter | Type | Default | When to use |
|---|---|---|---|
query |
string | none | Full-text keyword search over cached bodies |
url_pattern |
string | none | URL glob filter, e.g. "*example.com*" |
since |
string | none | ISO date — only entries cached after this date |
clear |
boolean | false | Delete matching entries (needs query, url_pattern, or since) |
stats |
boolean | false | Return total URLs, size, and date range |
check_changes |
boolean | false | Re-fetch matching URLs, report changed/unchanged + diff summary |
mode |
string | "fts" | "fts" (keyword BM25) or "hybrid" (keyword + semantic, fused) |
limit |
number | 20 | Max results to return |
max_tokens_out |
number | none | Token-budget cap on returned bodies (cl100k-base) |
The Cache-First Workflow
Cached content is instant (0ms network), free (no engine query), and already extracted (clean markdown). A miss costs nothing; a redundant fetch wastes 5-15 seconds. So the first move is always:
// Step 1 — probe the cache
cache({ "query": "server islands hydration", "url_pattern": "*docs.astro.build*" })
// Step 2 — miss? fall through to search or fetch
search({ "query": "astro server islands", "include_domains": ["docs.astro.build"] })
Modes
fts(default) — keyword BM25 over the local full-text index. Fast, exact-term.hybrid— additionally runs semantic vector search and fuses both rankings with reciprocal rank fusion for higher recall. Falls back to keyword search when the embedding index is empty or unavailable.
Stats and Change Detection
stats: true reports total URLs, on-disk size, and the cached date range — useful to gauge whether find_similar has enough local signal yet.
check_changes: true re-fetches the matching cached URLs and reports which ones changed, with a per-URL diff summary. Scope it with query or url_pattern so you only re-check what matters.
Anti-Patterns
- DON'T search or fetch before probing the cache — you may already have it.
- DON'T pass
clear: truewithout a filter — the handler refuses an unscoped wipe. - DON'T expect
mode: "hybrid"to help on a cold cache — warm it withcrawlfirst.
When NOT to use wigolo-cache
- Content you have never fetched — the cache only holds what wigolo has already read; use
searchorfetchto bring it in first.
See Also
- wigolo-search — when the cache misses
- wigolo-crawl — warm the cache in bulk
- wigolo-diff — compare a live page against its cached copy
- wigolo-find-similar — discover related cached pages
- wigolo/rules/cache-first.md — the cache-first rule
常见问题
搜索缓存会用到互联网吗?
不会。这项技能说明,缓存搜索在本地进行,且不产生费用。
它能删除旧条目吗?
能。清除选项可以删除匹配的条目,但需要至少一个筛选条件。
统计信息显示什么?
它显示页面总数、大小和日期范围。
详情
作者的原始描述
Local-first knowledge cache — full-text and hybrid semantic search over every page wigolo has already fetched, crawled, or searched. Use before any web request: cached hits return instantly and free. Triggers when the user says "check the cache", "have we seen this", "what's on disk", "search what I've already fetched", "cache stats", or "what changed since I last looked". Also clears matching entries and re-checks cached URLs for changes.
repo: KnockOutEZ/wigolo
热度
- GitHub 星标
- 5.5k
- 排名
- #14816
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
wigolo
5.5k帮你的智能体通过本地工具服务器搜索、抓取、爬取和研究网页,结果缓存在你的电脑上,无需任何 API 密钥。
wigolo-agent
5.5k帮你的智能体在限定时间内,从多个网络来源一次性收集数据,并按照 schema 定义的固定结构返回。
wigolo-crawl
5.5k帮你的智能体爬取文档网站或网站的某个板块,在设定的限制内遵循站点地图或链接,并把页面保存到本地缓存。
wigolo-diff
5.5k帮你的智能体比较网页的两个版本,并精确显示改动了什么,可以按板块、按单词显示,也可以输出简短的计数摘要。