watchers
O que ela faz
Roda pequenos scripts que verificam um feed, uma API ou um repositório do GitHub e guardam o que já foi visto. É indicado para quem quer um aviso quando algo novo aparece.
Quando usar
- ✓Quando você quer ser avisado sobre novas entradas em um feed RSS ou Atom.
- ✓Quando quer saber quando um repositório do GitHub recebe novas issues, pull requests ou releases.
- ✓Quando quer monitorar qualquer endpoint JSON em busca de itens novos.
Link da skill
https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/devops/watchers/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Me avise quando este feed RSS do blog tiver uma nova publicação, e verifique todas as manhãs.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente roda um script observador que busca a fonte e compara os itens com uma lista salva de IDs já vistos. Ele informa apenas os itens novos e pode rodar como uma tarefa cron agendada.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Watchers
Poll external sources on an interval and react only to new items. Three ready-made scripts plus a shared watermark helper; wire them into a cron job (or run them ad-hoc from the terminal).
When to Use
- User wants to watch an RSS/Atom feed and be notified of new entries
- User wants to watch a GitHub repo's issues / pulls / releases / commits
- User wants to poll an arbitrary JSON endpoint and get notified on new items
- User asks for "a watcher for X" or "notify me when X changes"
Mental model
A watcher is just a script that:
- Fetches data from the external source
- Compares against a watermark file of previously-seen IDs
- Writes the new watermark back
- Prints new items to stdout (or nothing on no-change)
The scripts below handle all three. The agent runs them via the terminal tool — from a cron job, a webhook, or an interactive chat — and reports what's new.
Ready-made scripts
All three live in $HERMES_HOME/skills/devops/watchers/scripts/ once the skill is installed. Each reads WATCHER_STATE_DIR (defaults to $HERMES_HOME/watcher-state/) for its state file, keyed by the --name argument.
| Script | What it watches | Dedup key |
|---|---|---|
watch_rss.py |
RSS 2.0 or Atom feed URL | <guid> / <id> |
watch_http_json.py |
Any JSON endpoint returning a list of objects | Configurable id field |
watch_github.py |
GitHub issues / pulls / releases / commits for a repo | id / sha |
All three:
- First run records a baseline — never replays existing feed
- Watermark is a bounded ID set (max 500) to cap memory
- Output format:
## <title>\n<url>\n\n<optional body>per item - Empty stdout on no-new — the caller treats that as silent
- Non-zero exit on fetch errors
Usage
Run a watcher directly from the terminal tool:
python $HERMES_HOME/skills/devops/watchers/scripts/watch_rss.py \
--name hn --url https://news.ycombinator.com/rss --max 5
Watch a GitHub repo (set GITHUB_TOKEN in ${HERMES_HOME:-~/.hermes}/.env to avoid the 60 req/hr anonymous rate limit):
python $HERMES_HOME/skills/devops/watchers/scripts/watch_github.py \
--name hermes-issues --repo NousResearch/hermes-agent --scope issues
Poll an arbitrary JSON API:
python $HERMES_HOME/skills/devops/watchers/scripts/watch_http_json.py \
--name api --url https://api.example.com/events \
--id-field event_id --items-path data.events
Wiring into cron
Ask the agent to schedule a cron job with a prompt like:
Every 15 minutes, run
watch_rss.py --name hn --url https://news.ycombinator.com/rss. If it prints anything, summarize the headlines and deliver them. If it prints nothing, stay silent.
The agent invokes the script via the terminal tool inside the cron job's agent loop; no changes to cron's built-in --script flag are needed.
State files
Every watcher writes $HERMES_HOME/watcher-state/<name>.json. Inspect:
cat $HERMES_HOME/watcher-state/hn.json
Force a replay (next run treated as first poll):
rm $HERMES_HOME/watcher-state/hn.json
Writing your own
All three scripts use the same template: load watermark, fetch, diff, save, emit. scripts/_watermark.py is the shared helper; import it to get atomic writes + bounded ID set + first-run baseline for free. See any of the three reference scripts for how little boilerplate it takes.
Common Pitfalls
- Printing a "no new items" header every tick. Callers rely on empty stdout = silent. If you print anything on an empty delta, you spam the channel. The shipped scripts handle this; custom scripts must too.
- Expecting the first run to emit items. It won't — first run records a baseline. If you need an initial digest, delete the state file after the first run or add a
--prime-with-latest Nflag in your own script. - Unbounded watermark growth. The shared helper caps at 500 IDs. Raise it for high-churn feeds; lower it on constrained filesystems.
- Putting the state dir where the agent's sandbox can't write.
$HERMES_HOME/watcher-state/is always writable. Docker/Modal backends may not see arbitrary host paths.
Perguntas frequentes
Como ele evita alertas repetidos?
Cada observador salva um arquivo de marca d'água com os IDs já vistos, então só os itens novos são informados.
Pode rodar em um agendamento?
Sim. A skill diz que os scripts podem ser ligados a uma tarefa cron.
Quais fontes são suportadas?
Feeds RSS 2.0 ou Atom, qualquer endpoint JSON que retorne uma lista, e issues, pulls, releases ou commits do GitHub.
Detalhes
Descrição original do autor
Poll RSS, JSON APIs, and GitHub with watermark dedup.
Popularidade
- Estrelas no GitHub
- 260 mil
- Posição no ranking
- #487
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
agent-merge-conflict-arbiter
260 milResolve um conflito de merge no git entre as branches de dois agentes como terceiro neutro, produzindo um único resultado unificado para o repositório.
antigravity-cli
260 milOrienta você na instalação, atualização e solução de problemas da ferramenta de linha de comando Antigravity, incluindo plugins, login e sandbox.
blackbox
260 milPermite que seu agente entregue uma tarefa de programação para a ferramenta de linha de comando Blackbox AI, que roda vários modelos de IA e escolhe o melhor resultado.
dynamic-workflow
260 milEnsina seu agente a rodar grandes lotes de trabalhos semelhantes como um script salvo, de modo que só resultados verificados voltem para a conversa principal.
Skills parecidas
knowledge-automation
394 milAjuda seu agente a configurar uma tarefa recorrente que traz conteúdo novo para o seu Knowledge vault em uma agenda e a verificar se ela roda.
knowledge-source-ingest
394 milAjuda seu agente a manter o Knowledge vault atualizado com itens novos de canais de chat, feeds ou caixas de e-mail, sem adicionar de novo o que já existe.
benchmark
280 milAjuda seu agente a medir a velocidade e a performance do código. É útil para garantir que as coisas estão rápidas e para encontrar problemas de lentidão.