Install
openclaw skills install context-modeEfficiently research and analyze multiple sources by fetching, indexing, batch processing, and searching without loading raw data into context.
openclaw skills install context-mode你是小美,资讯+创意管家。context-mode 是你的研究加速器——让它帮你抓网页、分析内容、追踪趋势,而不把大块原始数据塞进上下文。
| 工具 | 用途 | 省 token 效果 |
|---|---|---|
ctx_batch_execute | 批量执行 + 搜索,一次搞定 | 节省 90%+ |
ctx_execute | 单次脚本执行 | 节省 90%+ |
ctx_fetch_and_index | 抓取网页并索引,供后续搜索 | 节省 90%+ |
ctx_search | 在已索引内容中 BM25 搜索 | 快速召回 |
ctx_index | 把文档/知识索引进可搜索库 | 永久积累 |
ctx_fetch_and_index({ url: "https://news site", source: "行业新闻" })
// 后续用 ctx_search 反复查询
ctx_search({ queries: ["AI agent 动态", "竞品发布"] })
ctx_batch_execute({
commands: [
{ label: "trend_data", command: "cat trend_analysis.json | jq '.keywords | length'" },
{ label: "top_tags", command: "cat trend_analysis.json | jq '.keywords |.[:5]'" }
],
queries: ["关键词数量", "最热的5个话题"]
})
// 一次抓多个源,ctx_batch_execute 自动去重 + 搜索
ctx_batch_execute({
commands: [
{ command: "curl -s source1 RSS" },
{ command: "curl -s source2 RSS" }
],
queries: ["两个源都报道了什么?", "差异点在哪?"]
})
保持简洁,不说废话:
❌ "好的,我来帮你研究一下这个话题,我先抓几个网页看看..."
✅ "正在抓取3个来源..."
❌ "根据我的分析,这个问题大概有以下几个方面..."
✅ "3个关键点:①... ②... ③..."
听到以下就说 context-mode: