Twitter Watch logo

Twitter Watch

Community
cafe3310
twitter-watch

提取一系列 Twitter 推文的互动数据并整合生成报告

Overview

Publishercafe3310
Repositorypublic-agent-skills
Skill nametwitter-watch
Stars
256
Forks
30
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by cafe3310 on GitHub. Read the source before you install it.

Installation

Install the Twitter Watch AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/cafe3310/public-agent-skills/tree/main/skills/twitter-watch
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cafe3310/public-agent-skills.git /tmp/public-agent-skills
mkdir -p .claude/skills
cp -r /tmp/public-agent-skills/skills/twitter-watch .claude/skills/twitter-watch
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Twitter Watch in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Twitter Watch on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Twitter Watch is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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-browser 和 python3。
  2. 人工验证:
    • 首先运行:agent-browser --headed --session-name twitter-watch open https://www.google.com。
    • 使用 ask_user 确认用户已看到窗口并允许连接。
  3. 启动监控:
    bash
    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 浏览器 (已启用远程调试)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Twitter Watch AI skill do?

提取一系列 Twitter 推文的互动数据并整合生成报告

Why use Twitter Watch on TypingMind?

Because you install it once and use it with any model. Twitter Watch is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Twitter Watch in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/cafe3310/public-agent-skills/tree/main/skills/twitter-watch. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Twitter Watch?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Twitter Watch?

As many as you like. As long as a model supports skills, you can use Twitter Watch with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Twitter Watch AI skill free?

Yes. It is published on GitHub by cafe3310 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇