x-integrationlisted
Install: claude install-skill crypdick/pynchy
# X (Twitter) Integration
Automate X/Twitter actions via Playwright browser automation, persistent Chromium profile.
## System requirements
Need system Chrome/Chromium binary — `CHROME_PATH` must be set in `.env` (e.g. `CHROME_PATH=/usr/bin/google-chrome-stable`). Playwright bundled Chromium not used — X fingerprint as bot.
All X tools run **headed mode** (not headless) — X detect + block headless browsers. Headless servers need Xvfb (`apt install xvfb`).
Interactive login via `setup_x_session` also need VNC (`apt install x11vnc novnc`).
## How it works
Playwright drive system Chrome binary (via `CHROME_PATH`) with persistent browser contexts. After one manual login (human do CAPTCHA / 2FA), next actions run auto from saved session. All tools use headed mode + anti-detection flags to dodge X bot fingerprinting.
## First-time setup (requires human)
Human must log in once before any X action:
```
setup_x_session()
```
Opens **visible** Chromium window at X login page. Human do login flow. Session saved for future auto use.
On **headless server** (no X display), tool auto-starts Xvfb + noVNC on port 6080. **Before call** `setup_x_session`, tell human open `http://<server>:6080/vnc.html?autoconnect=true` in browser.
**Hardware security keys (YubiKey, FIDO2):** noVNC cannot forward WebAuthn challenges — key must physically connect to machine running browser. If X login need hardware key, run `setup_x_session` on local machine with key attached, then rsync profile to s