Files
twitter-cli-cookiefile/skill/SKILL.md
Luna 7956158d9b
All checks were successful
CI / test (3.10) (push) Successful in 1m9s
CI / test (3.11) (push) Successful in 1m8s
CI / test (3.12) (push) Successful in 27s
Polish public-facing docs
2026-05-08 17:11:10 +02:00

38 lines
1.3 KiB
Markdown

---
name: twitter-cli-cookiefile
description: Use the local twitter-cli fork with cookies.txt authentication for reading or writing Twitter/X data. Trigger on Twitter/X CLI work, tweet lookups, timeline reads, posting, or account-specific cookie-file auth flows where TWITTER_COOKIE_FILE should be set per command for multi-account use.
---
# Twitter CLI (cookie-file, multi-account)
Use this repository checkout.
## Rules
- Prefer `TWITTER_COOKIE_FILE=/path/to/cookies.txt` per command.
- Do not pin a default account in repo config.
- Keep commands account-specific so switching accounts is just swapping the env var.
- Activate the repo venv before using `twitter`.
## Basic pattern
```bash
cd <repo-checkout>
. .venv/bin/activate
TWITTER_COOKIE_FILE=/path/to/account.cookies.txt twitter whoami --json
```
## Examples
```bash
TWITTER_COOKIE_FILE=/path/to/account.cookies.txt twitter tweet 1234567890 --json
TWITTER_COOKIE_FILE=/path/to/account.cookies.txt twitter user someuser --json
TWITTER_COOKIE_FILE=/path/to/account.cookies.txt twitter post "hello world"
```
## Notes
- The fork already supports Netscape-format `cookies.txt` via `TWITTER_COOKIE_FILE`.
- Repo-local skill path: `skill/SKILL.md`
- If auth fails, verify the cookie file still contains fresh `auth_token` and `ct0` values for the target account.