Twitter Monitor
Workflow
Use this skill as an execution workflow, not as a long-running daemon. First complete a one-shot fetch, then offer optional Feishu sync and scheduling only when useful.
- Ask for X/Twitter account ids when missing. Accept handles such as , , profile URLs, or multiple comma-separated ids.
- Ask the user to provide or configure a API key when is unavailable. Do not write API keys into files committed to a repository.
- Confirm pagination depth. Default to ; use a larger number only when the user asks for more history or accepts higher API usage.
- Run
scripts/twitter_monitor.py
and generate JSON or CSV output.
- If the user wants Feishu/Lark Bitable output, follow
references/feishu-output.md
.
- After the one-shot command works, ask whether they want recurring execution. If yes, follow , including OpenClaw when appropriate.
Quick Start
From this skill directory:
bash
export TWITTER_API_KEY="..."
python scripts/twitter_monitor.py --accounts sama --pages 1 --format json
For multiple accounts:
bash
python scripts/twitter_monitor.py --accounts sama,elonmusk,OpenAI --pages 1 --format csv
For a JSON account list:
bash
python scripts/twitter_monitor.py --accounts-file assets/accounts.example.json --pages 1
Read
references/twitterapi-setup.md
when the user needs API key setup, account input examples, or command variants.
Output Schema
The script writes one record per tweet with these fields:
Deduplicate by
before appending to any durable destination.
Feishu
Do not require Feishu configuration for normal fetches. Only enter the Feishu workflow when the user asks to write, append, or sync records to Feishu/Lark Bitable.
Prefer
over hard-coded Feishu app credentials. If
is missing, ask whether to install and configure it. See
references/feishu-output.md
for the field mapping and sync rules.
Scheduling
Offer scheduling only after a successful one-shot fetch or when the user explicitly asks for ongoing monitoring.
Prefer OpenClaw when the user wants an agent-managed recurring job or already uses OpenClaw. Otherwise choose Codex automations, cron, or launchd based on the runtime environment. See
.
Safety
Never commit real API keys, Feishu tokens, output files containing private monitoring data, or local status caches. Keep secrets in environment variables, secret managers, or the user's existing CLI auth.