twitter-watch

twitter-watch is a skill for Claude Code, Codex from cafe3310/public-agent-skills. It costs 18 tokens per session (794 once invoked), scanned A, original, Apache-2.0.

A workflow for collecting interaction data from a series of Twitter posts and combining it into a report. It uses a visible, persistent browser session so an already logged-in Twitter account can be reused.

In plain words
What is it for?
Use it to monitor post links from a text file, collect their interaction data, and generate per-post results and a combined Twitter report.
Why use it?
It handles dynamically loaded post data and allows a person to see the browser while collection runs, including when login or CAPTCHA checks need attention. The provided information does not specify every report metric.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to monitor post links from a text file, collect their interaction data, and generate per-post results and a combined Twitter report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cafe3310/public-agent-skills/twitter-watch
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cafe3310/public-agent-skills --skill twitter-watch
Clone the repo
git clone --depth 1 https://github.com/cafe3310/public-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for twitter-watch

README.md
[![agentmods](https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/twitter-watch/github.svg)](https://agentmods.dev/skills/cafe3310/public-agent-skills/twitter-watch)
Your own site
<a href="https://agentmods.dev/skills/cafe3310/public-agent-skills/twitter-watch"><img src="https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/twitter-watch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for twitter-watch

Your own site · 80×15
<a href="https://agentmods.dev/skills/cafe3310/public-agent-skills/twitter-watch"><img src="https://agentmods.dev/badge/skills/cafe3310/public-agent-skills/twitter-watch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 794 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.00794
Opus 5 $0.00009 $0.00397
Sonnet 5 $0.00004 $0.00159
Haiku 4.5 $0.00002 $0.00079

Measured 11d ago against content hash bbfafdc66ea8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

twitter-watch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/watch.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/twitter-watch/SKILL.md · 65 lines

What it actually says

twitter-watch

一个自动监控 Twitter 互动数据的 Agent 技能,旨在通过模拟真人行为获取最准确的推文表现指标。

工作原理与设计意图

为了确保抓取成功率并规避反爬虫机制,watch.py 脚本采用了以下设计:

  • 自动配置: 脚本启动时会自动检查并确保 ~/.agent-browser/config.json 中配置了 {"autoConnect": true},这确保了 agent-browser 优先尝试连接用户已打开的真实浏览器。
  • 强制有头模式: 所有命令均附带 --headed 参数,确保浏览器界面可见,方便用户监控和必要时介入(如处理验证码)。
  • 真实浏览器验证: 脚本会检查 navigator.userAgent。如果仍处于 Headless 模式或未建立连接,脚本将发出警示。
  • 持久化会话: 使用 --session-name twitter-watch。如果用户已在浏览器登录,脚本将继承登录状态。
  • 拟人化滚动与随机延迟: 模拟真实用户行为,触发推文动态加载。

使用方法

1. 对非技术用户的说明 (当用户询问如何使用时)

如果用户询问如何使用此功能,请务必提供以下简洁的操作指南:

Twitter 监控使用说明:

  1. 开启浏览器调试模式:在 Chrome 地址栏输入 chrome://inspect/#remote-debugging 并回车,确保勾选 "允许远程调试"。
  2. 准备环境:脚本会自动为您配置 agent-browser。在使用过程中,如果 Chrome 弹出“是否允许远程调试”提示,请务必点击**“允许”**。
  3. 准备链接文件:将想要监控的 Twitter 链接放入文本文件(如 links.txt),每行一个。
  4. 发送文件路径:将文件路径发送给我,我将自动抓取数据并生成 twitter_report.md 报告。

2. 执行流程 (Agent 必读)

  1. 环境准备: 确保已安装 agent-browserpython3
  2. 人工验证:
    • 首先运行:agent-browser --headed --session-name twitter-watch open https://www.google.com
    • 使用 ask_user 确认用户已看到窗口并允许连接。
  3. 启动监控:
    python3 skills/twitter-watch/scripts/watch.py links.txt
    

输出规范

1. 单条结果 (JSON)

文件名:output_<tweet_id>.json 包含 raw (原文) 和 val (数值) 字段。

2. 汇总报告 (Markdown)

文件名:twitter_report.md 包含操作系统信息、生成时间以及带有格式化数字的表格。

环境要求

  • Python 3.6+
  • Node.js & NPM
  • agent-browser CLI
  • Google Chrome 浏览器 (已启用远程调试)
Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 65 lines · 18 tokens per session scan A bbfafdc66ea8

Subscribe to this mod's changes

twitter-watch is a skill published in the GitHub repository cafe3310/public-agent-skills (253 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 18 tokens to every session and 794 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.