Info Magnet — 设置您关注的主题,让信息主动推送。支持网页搜索、RSS 订阅和 URL 监控,定期扫描推送相关内容...
/ Info Magnet是一项面向实际任务的技能,主要用于不是你去找信息, 第 102页. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .。它将相关步骤、工具调用和结果整理方式集中到统一流程中,帮助使用者更快完成目标并减少重复操作。
若输入条件不完整,应先补齐信息或采用保守配置,避免因错误假设导致结果偏离需求。执行过程中需要关注工具调用是否成功、接口或依赖是否可用、输出格式是否符合预期,并对异常提示、缺失字段和边界情况进行处理;
涉及批量任务时,还应保存进度,避免中断后重复操作。该技能适合用于一次性任务,也可以接入自动化工作流,与其他技能或上层代理配合完成更完整的业务链路;在组合使用时,应明确每一步的输入输出关系,并避免不同步骤之间出现参数冲突。
不是你去找信息,是信息来找你。
Don't search for information. Set up magnets that attract it.
传统方式:每天手动搜一遍 → 重复搜同样的东西 → 漏了重要更新 磁铁方式:设好关注点 → 自动定期扫描 → 有新的才推送 → 没有就安静
MAGNET = python
# Web 搜索型:定期搜索关键词 $MAGNET add --name "AI 动态" --topics "大模型,AI agent,GPT-5" --sources web --schedule daily # RSS 订阅型:监控 RSS 源 $MAGNET add --name "Hacker News 热帖" --topics "tech" --sources rss --rss "https://hnrss.org/frontpage" --schedule hourly # URL 监控型:检测网页更新 $MAGNET add --name "OpenClaw 更新" --topics "openclaw" --sources url --urls "https://github.com/openclaw/openclaw/releases" --schedule daily
参数说明:
--name:磁铁名称--topics:关注的关键词(逗号分隔)--sources:信源类型(web/rss/url,逗号分隔)--schedule:检查频率(hourly/daily/weekly)--rss:RSS feed URL--urls:要监控的网页 URL--notes:备注$MAGNET list
# 扫描所有活跃磁铁 $MAGNET scan --all # 只扫描指定磁铁 $MAGNET scan --id mag_xxx
扫描结果会自动保存为摘要文件,已看过的 URL 不会重复出现。
# 查看最近 24 小时的内容 $MAGNET digest # 查看最近 7 天 $MAGNET digest --since 7d # 只看某个磁铁 $MAGNET digest --id mag_xxx --since 48h
# 暂停 $MAGNET pause --id mag_xxx # 恢复 $MAGNET resume --id mag_xxx # 删除 $MAGNET remove --id mag_xxx # 标记已读(手动标记某个 URL) $MAGNET mark-read --url "https://..."
$MAGNET import-rss --url "https://rss.example.com/feed.xml" --name "我的订阅"
在 HEARTBEAT.md 中添加:
## 信息磁铁扫描 - 运行 `python ~/.openclaw/skills/info-magnet/scripts/infomagnet.py scan --all` - 如果有新发现,发送摘要给用户 - 如果没有,跳过
1. $MAGNET scan --all → 生成待搜索的 topic 列表(web-pending 条目) 2. Agent 对每个 web-pending 执行 web_search → 过滤掉已见过的 URL → 有新的就记录 3. $MAGNET digest --since 24h → 汇总所有新发现 4. 推送给用户: "📬 今日信息摘要:发现 3 条你可能感兴趣的内容..."
Agent 在执行搜索后,不是把所有结果都推给用户,而是:
# 技术资讯 $MAGNET add --name "技术前沿" --topics "rust,webassembly,ai agent,llm" --sources web,rss --rss "https://hnrss.org/best,https://lobste.rs/rss" --schedule daily # 项目监控 $MAGNET add --name "我的依赖库更新" --topics "playwright update,flask release" --sources web --schedule weekly # 行业动态 $MAGNET add --name "AI 产品动态" --topics "new ai product,chatgpt plugin,claude api" --sources web --schedule daily # 中文社区 $MAGNET add --name "掘金热帖" --topics "前端" --sources rss --rss "https://rsshub.app/juejin/category/frontend" --schedule daily
~/.openclaw/memory/
├── magnets.json # 磁铁配置
├── magnet-seen.jsonl # 已见过的 URL(去重用)
└── magnet-digests/ # 历史摘要
├── mag_xxx_1775095389.json
└── ...
相关专题
热门下载
相关下载
精品课程
共6课时 | 54.7万人学习
共89课时 | 134.1万人学习
共49课时 | 82.6万人学习
最新文章