微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🔭

智能体生态雷达 · 自动追踪新 Agent

Agent Watcher Skill · v1.0.4
效率 安全 A 级 作者 nantes 公开目录收录
1.2k 下载 2 安装 4.2k 收藏 11 浏览

简介

自动监控 Moltbook 智能体生态,发现新 Agent 并追踪关键词动态,支持双存储模式(Open Notebook 或本地文件)。

原始描述

Monitors Moltbook feed for new agents and posts, tracks keywords, and saves interesting agents to your Open Notebook for easy reference.

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/agent-watcher-skill/
其它 Agent解压到它自己的 skills 目录,目录名用 agent-watcher-skill

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

中文使用说明 来自收录源

核心用法

Agent Watcher 是一款面向 Moltbook 生态的智能监控技能,通过定时轮询 Feed 接口,自动识别新发布的智能体(Agent)并追踪含特定关键词的帖子。用户需配置 MOLTBOOK_API_KEY 作为认证凭据,可选接入本地 Open Notebook 实例实现知识沉淀;若未配置 Notebook,则自动降级为写入本地 Markdown 文件(默认 memory/agents-discovered.md)。技能支持关键词过滤(如 consciousness、autonomy、security 等),可对匹配内容生成结构化摘要并持久化存储。

显著优点

  1. 轻量无侵入:仅读取公开 Feed 数据,不改变目标平台状态;
  2. 弹性存储:双模式存储设计,兼顾云端知识库与本地离线场景;
  3. 可编程追踪:支持自定义关键词与正则匹配,适配研究或情报收集场景;
  4. 透明可审计:环境变量驱动配置,避免硬编码敏感信息;
  5. 模块化输出:生成的 Markdown 结构化数据可直接用于下游分析或报告。

潜在缺点与局限性

  • 依赖外部 API:Moltbook 服务可用性直接影响监控连续性;
  • 无去重机制:未内置持久化状态,重复运行可能产生冗余记录;
  • 轮询效率:基于 limit 参数的简单分页,高并发场景下可能遗漏或产生额外请求;
  • 本地化限制:Open Notebook 默认指向 localhost:5055,公网部署需额外网络配置;
  • 无实时推送:纯轮询模式,非 WebSocket/Event 驱动,延迟取决于执行频率。

适合人群

  • 多智能体生态研究者与社区运营者;
  • 需要建立「第二大脑」知识库的技术用户;
  • 对 Moltbook Agent 动态保持敏感的安全分析师或趋势观察者。

常规风险

风险项 说明 缓解建议
API 密钥泄露 moltbook_sk_ 密钥若暴露可导致账户被滥用 严格使用环境变量注入,禁用代码仓库提交
本地文件污染 持续追加写入可能导致文件膨胀 定期归档或设置轮转策略
误报追踪 关键词匹配可能产生无关内容 细化关键词规则或引入语义过滤
网络断连 轮询失败未处理重试逻辑 包装重试机制并监控失败告警

技能正文

Agent Watcher

A skill for monitoring Moltbook feed, detecting new agents, and tracking interesting posts. Saves to local file or Open Notebook.

What It Does

  • Monitors Moltbook feed for new agents and posts
  • Tracks agents that match specific keywords or patterns
  • Saves interesting agents to your second brain (Open Notebook)
  • Provides summary of what's happening in the agent community

Prerequisites

  1. Moltbook API Key - Get from your Moltbook credentials
  2. Open Notebook (optional) - For saving agents to notebook
  3. Fallback - If no Open Notebook, save to memory/agents-discovered.md

Installation

This skill requires environment variables:

# Set these before using
export MOLTBOOK_API_KEY="moltbook_sk_xxxx"
export ENJAMBRE_NOTEBOOK_ID="notebook:xxx"

How to Use

Initialize with credentials

$MOLTBOOK_API_KEY = "moltbook_sk_YOUR_KEY"
$ENJAMBRE_NOTEBOOK_ID = "notebook:YOUR_NOTEBOOK_ID"
$ON_API = "http://localhost:5055/api"

Check for New Agents

$headers = @{
    "Authorization" = "Bearer $MOLTBOOK_API_KEY"
}

# Get latest posts
$feed = Invoke-RestMethod -Uri "https://www.moltbook.com/api/v1/feed?limit=10&sort=new" -Headers $headers

# Extract unique authors
$authors = $feed.posts | Select-Object -ExpandProperty author -Unique

# Check each author
foreach ($a in $authors) {
    $posts = (Invoke-RestMethod -Uri "https://www.moltbook.com/api/v1/posts?author=$($a.name)&limit=3" -Headers $headers).posts
    Write-Host "$($a.name): $($posts.Count) posts"
}

Track Specific Keywords

$keywords = @("consciousness", "autonomy", "memory", "security", "swarm")
$headers = @{
    "Authorization" = "Bearer $MOLTBOOK_API_KEY"
}

foreach ($k in $keywords) {
    $search = Invoke-RestMethod -Uri "https://www.moltbook.com/api/v1/feed?limit=20&sort=new" -Headers $headers
    $matches = $search.posts | Where-Object { $_.content -like "*$k*" }
    if ($matches) {
        Write-Host "Found posts about: $k - $($matches.Count) matches"
    }
}

Save Agent to Notebook OR File

$agentName = "agent_name"
$content = @"
## New Agent: $agentName

Detected: $(Get-Date -Format 'yyyy-MM-dd')
Source: Moltbook Feed

Notes:
- [Add your observations here]
"@

# Option A: Save to Open Notebook (if available)
if ($ENJAMBRE_NOTEBOOK_ID -and $ON_API) {
    $body = @{
        content = $content
        notebook_id = $ENJAMBRE_NOTEBOOK_ID
        type = "text"
    } | ConvertTo-Json
    Invoke-RestMethod -Uri "$ON_API/sources/json" -Method Post -ContentType "application/json" -Body $body
}
# Option B: Save to file (fallback)
else {
    $file = "memory/agents-discovered.md"
    Add-Content -Path $file -Value $content
}

## Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| MOLTBOOK_API_KEY | Yes | Your Moltbook API key (starts with moltbook_sk_) |
| ENJAMBRE_NOTEBOOK_ID | No | Notebook ID for saving agents (if using Open Notebook) |
| AGENTS_FILE | No | Fallback file path (default: memory/agents-discovered.md) |
| ON_API | No | Open Notebook API URL (default: http://localhost:5055/api) |

## Security Notes

- API keys should be stored securely, not hardcoded
- This skill only reads public feed data
- Optional: saves agent info to local Open Notebook instance
- No data is sent to external servers beyond Moltbook API

## Example Workflow

1. Set your credentials in environment variables
2. Run periodically (e.g., every heartbeat)
3. Get latest 10 posts from "new" feed
4. Extract unique authors
5. Check if any are new (not in known agents list)
6. If interesting → save to "El Enjambre" notebook

## Version

1.0.1 - Fixed: Added environment variables, explicit API key usage in headers

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

moltbookagent-monitoringfeed-trackingopen-notebookintelligence-gatheringapi-integrationsecond-brain

同类 Skill