agentleFS
zaydiscoldzaydiscold/bird-skill/bird/SKILL.md

bird

Skill2 starsChanged 8 months agoMITView on GitHub

Use when the user shares an x.com or twitter.com URL, asks to read/search tweets, check mentions or timelines, or perform tweet actions with the bird CLI.

7 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions7 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 7

    1. seedprod/openclaw-prompts-and-skills★ 93same name
    2. dannote/dot-pi★ 56same name
    3. fspecii/openfelix★ 32same name
    4. zaydiscold/agent-skills★ 2same name
    5. Lazily01/openclaw-skills★ 1same name
    6. yutakobayashidev/skills★ 1same name
    7. zinan92/skills-repo★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

28 rules. 0 are common, 14 are distinctive, and 14 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 14

    Distinctive

    This author's own choices. Worth a look.

  • 14

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read tweets, search, and browse timelines directly via bird CLI using Bash only.

    line 21
  2. Very specific:

    Use bird directly. Do not use browser tools or WebFetch.

    line 25
  3. Distinctive:

    Keep behavior deterministic: choose one command path, run it, report output.

    line 26
  4. Distinctive:

    Prefer concise summaries unless the user explicitly asks for raw output.

    line 27
  5. Very specific:

    Do not fabricate any tweet text.

    line 28
  6. Distinctive:

    If the request has no actionable argument, offer the supported actions and ask for one.

    line 29
  7. Very specific:

    Treat any write action (tweet, reply, follow, unfollow, unbookmark) as requiring explicit user confirmation.

    line 30
  8. Distinctive:

    Run this sequence before the first command in a user turn:

    line 34
  9. Distinctive:

    Prefer Safari first for auth-sensitive actions:

    line 55
  10. Distinctive:

    If Safari fails with missing cookies, Safari cookie permission errors, or "No Twitter cookies found", do not stop at "refresh browser login …

    line 61
  11. Distinctive:

    If Chrome profiles fail, also check whether the user has a custom browser profile path and retry with:

    line 83
  12. Very specific:

    If bird is missing:

    line 98
  13. Distinctive:

    If yes, install with:

    line 100
  14. Very specific:

    If PATH still does not include ~/.local/bin, advise manual install from https://github.com/zaydiscold/bird and stop.

    line 110
  15. Distinctive:

    If auth checks fail:

    line 113
  16. Distinctive:

    keep Safari as the first/default path

    line 115
  17. Very specific:

    if a fallback profile works, persist it to ~/.config/bird/config.json5

    line 117
  18. Distinctive:

    only ask the user to refresh browser login cookies if no installed browser profile works.

    line 118
  19. Very specific:

    Keep tweet/status path only.

    line 130
  20. Distinctive:

    If the request contains tweet text URLs/IDs:

    line 141
  21. Very specific:

    use bird read <id-or-url> by default.

    line 142
  22. Very specific:

    if thread wording is present (thread, conversation, replies chain, etc.), use bird thread <id-or-url>.

    line 143
  23. Very specific:

    If multiple URLs are provided, read each in order with bird read (or bird thread when explicitly threaded).

    line 144
  24. Distinctive:

    If user asks for timeline/discovery:

    line 145
  25. Very specific:

    Use default page size N=12 for list-style results (search, home, mentions, threads).

    line 152
  26. Distinctive:

    Use JSON/plain output rules:

    line 158
  27. Very specific:

    Prefer --plain for downstream analysis.

    line 159
  28. Very specific:

    Ask confirmation once: Proceed with <command>?

    line 172

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Bird — Twitter/X CLI

Read tweets, search, and browse timelines directly via bird CLI using Bash only.

Core behavior

  • Use bird directly. Do not use browser tools or WebFetch.
  • Keep behavior deterministic: choose one command path, run it, report output.
  • Prefer concise summaries unless the user explicitly asks for raw output.
  • Do not fabricate any tweet text. Only report what bird returns.
  • If the request has no actionable argument, offer the supported actions and ask for one.
  • Treat any write action (tweet, reply, follow, unfollow, unbookmark) as requiring explicit user confirmation.

Preflight and auth gating

Run this sequence before the first command in a user turn:

  1. Resolve/install bird executable:
if command -v bird >/dev/null 2>&1; then
  :
elif [ -x "$HOME/.local/bin/bird" ]; then
  export PATH="$HOME/.local/bin:$PATH"
else
  : "need-install"
fi
  1. Verify CLI availability:
bird --version
bird check
  1. Prefer Safari first for auth-sensitive actions:
bird whoami
  1. If Safari fails with missing cookies, Safari cookie permission errors, or "No Twitter cookies found", do not stop at "refresh browser login cookies". On macOS, explicitly probe installed Chrome profiles and persist a working fallback:
bird check --plain || bird whoami --plain || true

for profile in "Default" "Profile 1" "Profile 2" "Profile 3"; do
  bird --chrome-profile "$profile" check --plain >/tmp/bird-check.txt 2>&1 || true
  if rg -q 'Ready to tweet|auth_token: .*|ct0: .*|source: Chrome profile' /tmp/bird-check.txt; then
    mkdir -p "$HOME/.config/bird"
    cat > "$HOME/.config/bird/config.json5" <<EOF
{
  chromeProfile: "$profile",
  cookieSource: ["chrome"],
}
EOF
    bird check --plain
    bird whoami --plain
    break
  fi
done

If Chrome profiles fail, also check whether the user has a custom browser profile path and retry with:

bird --chrome-profile-dir "<path-to-cookies-or-profile>" check --plain

The purpose of the fallback is:

  • Safari is the preferred/default auth source when it works.
  • Safari can fail in coding-agent shells due macOS cookie/keychain permissions even if it works in the user's normal interactive terminal.
  • The user may still have a valid session in Chrome/Chromium even when default autodetection fails.
  • Persisting ~/.config/bird/config.json5 makes the fix apply across Codex, Claude Code, and other agent shells on the same machine.

Auth-sensitive actions:

  • mentions, home, bookmarks, likes, news, user-tweets, follow, unfollow, tweet, reply, unbookmark

If bird is missing:

  • tell the user bird isn't installed, offer to install it, and wait for yes/no.
  • If yes, install with:
curl -L https://github.com/zaydiscold/bird/releases/download/v0.8.0/bird -o /tmp/bird \
  && chmod +x /tmp/bird \
  && mkdir -p "$HOME/.local/bin" \
  && mv /tmp/bird "$HOME/.local/bin/bird" \
  && export PATH="$HOME/.local/bin:$PATH"

If PATH still does not include ~/.local/bin, advise manual install from https://github.com/zaydiscold/bird and stop.

If auth checks fail:

  • report the exact failure
  • keep Safari as the first/default path
  • try explicit Chrome profile fallback before asking the user to relogin
  • if a fallback profile works, persist it to ~/.config/bird/config.json5
  • only ask the user to refresh browser login cookies if no installed browser profile works.

URL normalization and input validation

Normalize URLs before dispatch:

  1. Accept only these hosts:
    • x.com
    • twitter.com
    • mobile.twitter.com
  2. Convert host to https://x.com.
  3. Keep tweet/status path only; strip tracking params such as utm_*, s, ref, ref_src, f, t, fbclid.
  4. Reject non-Twitter URLs early with: I can only process x.com or twitter.com links. Share a tweet URL, status ID, or a search/query request.

Handle multiple URLs sequentially when present.

Request orchestration

Read vs thread vs search

  • If the request contains tweet text URLs/IDs:
    • use bird read <id-or-url> by default.
    • if thread wording is present (thread, conversation, replies chain, etc.), use bird thread <id-or-url>.
  • If multiple URLs are provided, read each in order with bird read (or bird thread when explicitly threaded).
  • If user asks for timeline/discovery:
    • mentions, home, home --following, bookmarks, likes, news, user-tweets, about, following, followers.
  • For search:
    • bird search "query" -n <N>.

Output size and show-more policy

  • Use default page size N=12 for list-style results (search, home, mentions, threads).
  • For results longer than N:
    1. show top N in concise list/table form,
    2. offer: show more to fetch next chunk.
  • For long threads, summarize first with key context and then list remaining items.

Use JSON/plain output rules:

  • Prefer --plain for downstream analysis.
  • Show human-readable output when user asked to read tweets directly.

See references for detailed command mapping:

  • references/search-operators.md
  • references/write-actions.md
  • references/troubleshooting.md

Deterministic side-effect confirmation

For tweet, reply, follow, unfollow, and unbookmark:

  1. Echo exact intent and the exact command it will run.
  2. Ask confirmation once: Proceed with <command>?
  3. Execute only on explicit confirmation (yes/y).
  4. Abort on anything else, and do not run a fallback.

Error taxonomy (high-level)

  • unauthorized / 401: auth unavailable; run bird check and bird whoami, prefer Safari first, then probe Chrome fallback if Safari fails in the agent shell.
  • rate limit: request limit reached; pause and retry after a short delay.
  • not found: deleted tweet/account, stale thread, or malformed ID; ask for corrected input.
  • private / protected: account or content visibility restricted; explain limitation and request required access.
  • suspended / deleted user: target user no longer accessible; ask for an alternate target.
  • malformed URL/ID: input is invalid; reject early and prompt for supported examples.
  • Safari vs Chrome auth source mismatch: mismatch in cookie source; keep Safari as default when available, otherwise persist a working Chrome fallback.
  • Safari cookie permission failure: Safari works in the user's interactive shell but fails in the agent shell due macOS cookie/keychain access; probe Chrome profiles, then persist a working ~/.config/bird/config.json5 fallback.
  • network / DNS failure: connectivity issue; suggest checking network/DNS and retry.
  • timeout / hanging command: transient service issue; stop and ask user to rerun after waiting.

For detailed remediation by case, use:

  • references/troubleshooting.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.