Bird CLI
Overview
Use this skill to operate Twitter/X through the local bird CLI (bird 0.8.0).
Prefer JSON output (--json) for machine-readable processing, then summarize for the user.
Capability Map (from bird --help)
- Identity/auth checks:
check, whoami, query-ids
- Read single tweet:
read, shorthand bird <tweet-id-or-url> [--json]
- Read conversations:
replies, thread
- Discovery:
search, mentions, news/trending, home, user-tweets
- Library/account views:
bookmarks, likes, lists, list-timeline, following, followers, about
- Write actions:
tweet, reply, unbookmark, follow, unfollow
Load detailed command notes from references/commands.md when choosing flags.
Workflow
1. Preflight
- Confirm binary:
command -v bird && bird --version
- Check credentials:
bird check
- Verify account context:
bird whoami
If credential checks fail, report the exact error and stop before any publish flow starts.
These checks are mandatory before draft/review/post steps.
2. Read-first defaults
Use read commands by default unless the user explicitly asks to modify account state.
- Start with narrow fetch sizes (
-n 10 or -n 20)
- Prefer
--json for parsing and reliable summarization
- Use
--cursor/--max-pages for controlled pagination
- Avoid broad scraping flags unless explicitly requested
3. Write actions (state-changing)
Treat these as state-changing commands:
tweet
reply
unbookmark
follow
unfollow
Run these commands only through this sequence:
- Draft: produce the exact text or action plan.
- Review: show the draft/command target and request explicit confirmation (
confirm/post).
- Post: execute only after explicit confirmation and return resulting IDs/URLs.
Until confirmation arrives, remain read-only even if the intent seems obvious.
If intent is unclear, ask once before executing.
4. Safety and rate-risk guidance
list-timeline --all warns account ban risk in CLI help; do not use unless user explicitly requests it.
- Prefer bounded pagination (
--max-pages) over unbounded --all.
- Keep timeouts explicit for long jobs (
--timeout <ms>).
- Treat the review step as the write authorization guardrail; do not skip it.
Output Patterns
- For exploration requests: return concise highlights + important IDs/URLs.
- For monitoring requests: return counts, top items, and next cursor if pagination remains.
- For publish requests: include the command result and posted tweet ID/URL when available.
Auth and Config Notes
Bird supports credentials via:
- direct cookies:
--auth-token, --ct0
- browser profile extraction:
--chrome-profile, --chrome-profile-dir, --firefox-profile, --cookie-source
- config files:
~/.config/bird/config.json5 and ./.birdrc.json5
Useful env vars:
BIRD_TIMEOUT_MS
BIRD_COOKIE_TIMEOUT_MS
BIRD_QUOTE_DEPTH
NO_COLOR
Maintenance
If Bird is upgraded, regenerate command help snapshot:
bash scripts/capture_help_snapshot.sh
This refreshes references/help-snapshot.txt.
1---2name: bird-cli3description: X/Twitter operations using the bird CLI for reading timelines, searching posts, fetching threads/replies, and posting tweets or replies. Use when asked to read Twitter/X content, monitor mentions, get bookmarks/likes/follows/lists, publish via bird, or debug bird authentication/config.4---56# Bird CLI78## Overview910Use this skill to operate Twitter/X through the local `bird` CLI (`bird 0.8.0`).11Prefer JSON output (`--json`) for machine-readable processing, then summarize for the user.1213## Capability Map (from `bird --help`)1415- Identity/auth checks: `check`, `whoami`, `query-ids`16- Read single tweet: `read`, shorthand `bird <tweet-id-or-url> [--json]`17- Read conversations: `replies`, `thread`18- Discovery: `search`, `mentions`, `news`/`trending`, `home`, `user-tweets`19- Library/account views: `bookmarks`, `likes`, `lists`, `list-timeline`, `following`, `followers`, `about`20- Write actions: `tweet`, `reply`, `unbookmark`, `follow`, `unfollow`2122Load detailed command notes from `references/commands.md` when choosing flags.2324## Workflow2526### 1. Preflight27281. Confirm binary: `command -v bird && bird --version`292. Check credentials: `bird check`303. Verify account context: `bird whoami`3132If credential checks fail, report the exact error and stop before any publish flow starts.33These checks are mandatory before draft/review/post steps.3435### 2. Read-first defaults3637Use read commands by default unless the user explicitly asks to modify account state.3839- Start with narrow fetch sizes (`-n 10` or `-n 20`)40- Prefer `--json` for parsing and reliable summarization41- Use `--cursor`/`--max-pages` for controlled pagination42- Avoid broad scraping flags unless explicitly requested4344### 3. Write actions (state-changing)4546Treat these as state-changing commands:4748- `tweet`49- `reply`50- `unbookmark`51- `follow`52- `unfollow`5354Run these commands only through this sequence:55561. Draft: produce the exact text or action plan.572. Review: show the draft/command target and request explicit confirmation (`confirm`/`post`).583. Post: execute only after explicit confirmation and return resulting IDs/URLs.5960Until confirmation arrives, remain read-only even if the intent seems obvious.61If intent is unclear, ask once before executing.6263### 4. Safety and rate-risk guidance6465- `list-timeline --all` warns account ban risk in CLI help; do not use unless user explicitly requests it.66- Prefer bounded pagination (`--max-pages`) over unbounded `--all`.67- Keep timeouts explicit for long jobs (`--timeout <ms>`).68- Treat the review step as the write authorization guardrail; do not skip it.6970## Output Patterns7172- For exploration requests: return concise highlights + important IDs/URLs.73- For monitoring requests: return counts, top items, and next cursor if pagination remains.74- For publish requests: include the command result and posted tweet ID/URL when available.7576## Auth and Config Notes7778Bird supports credentials via:7980- direct cookies: `--auth-token`, `--ct0`81- browser profile extraction: `--chrome-profile`, `--chrome-profile-dir`, `--firefox-profile`, `--cookie-source`82- config files: `~/.config/bird/config.json5` and `./.birdrc.json5`8384Useful env vars:8586- `BIRD_TIMEOUT_MS`87- `BIRD_COOKIE_TIMEOUT_MS`88- `BIRD_QUOTE_DEPTH`89- `NO_COLOR`9091## Maintenance9293If Bird is upgraded, regenerate command help snapshot:9495```bash96bash scripts/capture_help_snapshot.sh97```9899This refreshes `references/help-snapshot.txt`.