marketing-x
marketing-x
Tracks X (Twitter) user profiles for new posts since the last check, archives every fetched tweet locally, and writes a per-run JSON record. Designed to be invoked daily via /loop so Claude can summarize what's new without re-paying for old data.
Always run doctor before the first check of a session — it catches missing creds, broken cache paths, and sync problems before you burn API credits.
Setup
Setup workflow (what Claude does when invoked for setup)
When the user says any of "set up x-monitor", "configure x-monitor", "install x-monitor on this Mac", "share x-monitor across my machines":
- First Mac (the one with credentials): run
uv run python x_monitor.py setup --share-credentials. This creates the iCloud cache home, migrates any local data into it, mergesX_MONITOR_HOMEinto settings.json, and copies the credentials file into the synced home so the second Mac can pick them up automatically. - Second Mac: run
uv run python x_monitor.py setup. Detects the iCloud-stashed credentials and installs them at~/.config/x-monitor/credentials.json(mode 600). Noscpneeded. - After setup completes, tell the user to restart Claude Code so
X_MONITOR_HOMEis picked up by future sessions. - If
setupreports✗ no credentials, do not proceed — surface the printed instructions and stop.
If the user just says "set up x-monitor" without specifying which Mac, ask which machine they're on (the one with credentials, or a fresh one). On unsure, default to plain setup (read-only credential install) — it's safe to run on either machine.