Skip to content
Development
Skill

/bird-twitter

Read X/Twitter content via Bird CLI. Actions: read tweets, search, view all bookmarks or bookmark folders, trending, news, timeline, mentions, lists. Keywords: twitter, x, tweet, trending, bookmarks, bookmark folder, 收藏夹, timeline. 整理收藏夹(移动/新建/增删)用 bird-bookmark-folders。

From plugin
all-my-ai-needs
1423 skills

Claude Code

$ npx -y skills add codingSamss/all-my-ai-needs --skill bird-twitter --agent claude-code

SKILL.md

bird-twitter.SKILL.md
name: bird-twitter
description: "Read X/Twitter content via Bird CLI. Actions: read tweets, search, view all bookmarks or bookmark folders, trending, news, timeline, mentions, lists. Keywords: twitter, x, tweet, trending, bookmarks, bookmark folder, 收藏夹, timeline. 整理收藏夹(移动/新建/增删)用 bird-bookmark-folders。"

Bird Twitter Skill (Read-Only)

Read X/Twitter content using the Bird CLI tool. This skill only exposes read-only operations to avoid account suspension risks.

When to Use This Skill

Triggered by:

  • "read tweet [id/url]", "show tweet [id/url]"
  • "search twitter [query]", "search x [query]"
  • "my bookmarks", "twitter bookmarks"
  • "bookmark folder", "收藏夹文件夹", "待办收藏夹", "推特收藏夹中的[folder name]"
  • "trending", "twitter trends", "what's trending"
  • "twitter news", "x news"
  • "timeline", "i/timeline", "通知时间线", "device follow"
  • "for you", "home", "home timeline", "首页推荐"
  • "following", "following timeline", "首页关注流"
  • "user timeline [username]", "timeline [username]", "user tweets [username]"
  • "my mentions", "twitter mentions"
  • "twitter lists", "my lists"
  • "my feed"

Terminology Mapping (Unified)

  • `timeline` -> `x.com/i/timeline` (`device_follow` endpoint)
  • `for you` / `首页推荐` / `home` -> `bird home -n 20`
  • `following` / `首页关注流` -> `bird home --following -n 100`
  • `timeline [username]` -> `bird user-tweets <username> -n 20`

Default rule: if user says only `timeline` with no qualifier, treat it as `i/timeline`.

Prerequisites

1. Bird CLI 安装:**新机器上运行一次 `scripts/install_local.zsh` 即可**——解包仓库内置包 `vendor/bird-macos-universal-v0.8.0.tar.gz`、重签、把 wrapper 与凭据工具链接进 `~/.local/bin`,幂等可重复运行。外部来源可用时也可选 `brew install steipete/tap/bird`。

  • 运行件布局:`~/.local/bin/bird` 与 `~/.local/bin/bird-x-cookies-to-keychain` 都是指向本 skill `scripts/` 下源文件的软链,真二进制是 `~/.local/bin/bird-bin`。源文件随 skill 入仓、软链由安装脚本重建,所以换机器只需「同步仓库 + 跑一次脚本 + 存一次凭据」
  • **macOS 26+ 解包后必须重签一次**(安装脚本已含此步):包内二进制是 linker-signed adhoc 签名,新系统判定其无效并直接 SIGKILL,表现为任何子命令都零输出、退出码 137。执行 `codesign -f -s - <bird 路径>` 即可,二进制内容不变。包内那份签名本身就是坏的,重新解包不解决问题。

2. 认证凭据按 环境变量 -> 钥匙串 -> 浏览器 cookie 库 的顺序解析:

  • 主路径是钥匙串,Claude Code 一侧不需要任何系统授权。填充方式二选一:
  • 自动(推荐):在一个持有完全磁盘访问权限的终端里运行 `bird-x-cookies-to-keychain`。凭据写入本地登录钥匙串(`login.keychain-db`),**不随 iCloud 同步**,每台机器各存一次,它从 Chrome 提取后直接写入钥匙串,凭据过期时重跑同一条即可刷新。授权对象选终端而非 Claude Code——终端路径固定,一次永久有效
  • 手动:值取自 Chrome DevTools(F12 -> Application -> Cookies -> `https://x.com`)
       security add-generic-password -U -a "$USER" -s bird-x-auth-token -w
       security add-generic-password -U -a "$USER" -s bird-x-ct0 -w
  • `~/.local/bin/bird` 是一层 wrapper,取出凭据后经 `AUTH_TOKEN` / `CT0` 环境变量交给真二进制 `bird-bin`。用环境变量而非命令行参数有两个原因:凭据不进 argv(`ps` 默认输出看不到,但 `ps eww` 仍能读到进程环境——暴露面只是小一档,不是消失);不受全局开关与子命令先后顺序的影响(`bird --timeout 20000 whoami` 这类写法会让基于位置的注入失效)。`bird-bookmark-folders` skill 共用同一对钥匙串条目
  • **凭据失效(401 / `Could not authenticate you`)时的自动恢复**:在 Claude 桌面 app 的终端面板里运行 `bird-x-cookies-to-keychain`(`mcp__terminal__run_in_terminal`),无需用户介入。该面板的 shell 挂在桌面 app 本体(`com.anthropic.claudefordesktop`)名下并继承其完全磁盘访问权限;Bash 工具继承的则是 `com.anthropic.claude-code` helper 的身份,没有该权限——这是两条路唯一的差别,也是刷新必须走终端面板的原因
  • 回退路径是让 bird 自己读浏览器 cookie 库,这需要给当前 Claude Code bundle 完全磁盘访问权限。该授权绑定调用方路径与签名,而 Claude Code 每次升级都换目录,因此会反复失效——不要依赖它

3. In this environment, network access to X should go through local proxy:

  • `HTTP_PROXY=http://127.0.0.1:7897`
  • `HTTPS_PROXY=http://127.0.0.1:7897`

4. Run `HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 whoami` to verify authentication;输出首行 `📍 env AUTH_TOKEN` 表示走的是钥匙串凭据,`📍 chrome` 表示回退到了 cookie 库 5. If Python requests fail with SSL certificate verification behind proxy, ensure `certifi` is available (`python3 -c "import certifi; print(certifi.where())"`); when needed, pass the CA bundle explicitly via `--cafile`.

Global Options

All commands should use:

  • proxy env (`HTTP_PROXY` / `HTTPS_PROXY`)
  • `--cookie-source chrome` to only use Chrome cookies (skip Safari/Firefox)。**凭据走钥匙串时该选项无实际作用**:wrapper 已把 `AUTH_TOKEN`/`CT0` 注入环境,bird 优先用环境变量,不会去读任何浏览器 cookie 库
  • `--timeout 15000` to avoid hanging requests

Recommended command prefix:

HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 <command>

For `device_follow_timeline.py`:

  • In this proxy environment, prefer a single-shot command with explicit `--cafile`; do not first try a bare command and then retry.
  • Script now auto-detects `certifi` CA bundle and logs `SSL trust source`.
  • You can explicitly force trust source with `--cafile <path>` / `--capath <dir>`; environment variables `SSL_CERT_FILE` / `SSL_CERT_DIR` are still supported.
  • Emergency fallback only: set `BIRD_INSECURE_SSL=1` to retry once without SSL verification.

Example:

HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 home -n 20

Commands

1. Check Auth Status

**Triggers:** "twitter auth", "bird whoami", "check twitter login"

HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 whoami

2. Read Tweet

**Triggers:** "read tweet [id]", "show tweet [url]", "get tweet"

HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 read <tweet-id-or-url>

Options: `--plain` for stable output without emoji/color Notes:

  • `--plain` 仅用于临时阅读/命令行快速查看,不得用于“收录/归档/完整保存”任务。
  • 归档任务必须使用 `--json-full`,并从 `article.article_results.result.content_state`(正文结构)+ `media_entities`(图片资源)恢复图文顺序。

2b. Archive Tweet/Article (Text + Media)

**Use when:** 用户要求“收录/归档/完整保存/原文保留(含图)”

HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 read --json-full <tweet-id-or-url>

Requirements:

  • 保留原文结构(标题、列表、引用、代码块)
  • 图片按原文顺序本地化并在文内原位引用
  • 必做三数一致校验:预期图片数 = 下载成功数 = 文内引用数
  • 结构重建必须以 `content_state.blocks` 为唯一顺序源,禁止用 `--plain` 文本推断结构
  • `atomic` 块类型必须从 `entityMap.value.type` 判定(`MEDIA` / `MARKDOWN` / `DIVIDER`),禁止猜测
  • `MEDIA` 必须通过 `m
Read more
@codingsamss
Ships withall-my-ai-needs

跨 Claude Code 与 Codex 两套 agent 的 skill 真源,以及点名安装的 Claude Mods 来源与迁移约定。写入由 agent 执行,人只审校与决策。 把 Claude Code 与 Codex 的可复用能力收敛到一个仓库,按 platform-first 维护:每个平台独立持有自己的 skills/ 与运行约定,同名 skill 允许在两端并存,不强行抽象去重。 仓库要解决的是多端 AI 配置的漂移——GitHub 仓库、本地工作区、本地 CLI

Stars on GitHub

Momentum

stars in total
14
Star history of codingSamss/all-my-ai-needs on GitHub, a chart by star-history.com

Other skills on all-my-ai-needs.

aihot

aihot

查询 AIHOT(aihot.news)的中文 AI 资讯。用户问今天或最近 AI 圈发生了什么、AI 新闻和 AI 日报、大模型与 AI 产品发布、OpenAI/Anthropic/Google 等公司或某个 AI 话题的最新消息、当前最热的 AI…

apifox-cli

apifox-cli

通过 Apifox CLI 管理 Apifox 项目资源。触发场景:运行接口自动化测试/测试套件,查询/创建/更新/删除接口、环境、Schema、Mock、分支等项目资源,导入导出 API 文档,查看测试报告,管理 Runner、定时任务、通知等 CI/CD…

apifox-test-case

apifox-test-case

Apifox 接口测试用例:test-case 与 test-data 的查询、创建、更新、删除、分类和运行;处理测试步骤、断言、提取变量、前后置处理器、数据集,以及“CLI 创建后前端测试步骤无法展示”等问题。

bilibili

bilibili

Read Bilibili (B站) content. Actions: search videos, view hot/rank feeds, read video details, prepare audio, and read subtitles…

cc-codex-review

cc-codex-review

CC×Codex 交叉讨论。不确定性强的问题(事实核查 / 有争议或乐观的结论 / 重要技术决策)找 codex 交叉验证,避免单模型片面。关键词: 让codex看看, 跟codex讨论, codex审查, 帮我审查, review, 交叉讨论,…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about bird-twitter.

Which coding agents can use bird-twitter?
bird-twitter installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.