/all-my-ai-needs:bird-twitterfrom all-my-ai-needs
Reads X/Twitter content via Bird CLI: tweets, search, bookmarks, trending, timeline, mentions, and lists. Read-only to avoid account suspension.
Ships in all-my-ai-needs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Read X/Twitter content using the Bird CLI tool. This skill only exposes read-only operations to avoid account suspension risks.
Triggered by:
timeline -> x.com/i/timeline (device_follow endpoint)for you / 首页推荐 / home -> bird home -n 20following / 首页关注流 -> bird home --following -n 100timeline [username] -> bird user-tweets <username> -n 20Default rule: if user says only timeline with no qualifier, treat it as i/timeline.
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 入仓、软链由安装脚本重建,所以换机器只需「同步仓库 + 跑一次脚本 + 存一次凭据」codesign -f -s - <bird 路径> 即可,二进制内容不变。包内那份签名本身就是坏的,重新解包不解决问题。bird-x-cookies-to-keychain。凭据写入本地登录钥匙串(login.keychain-db),不随 iCloud 同步,每台机器各存一次,它从 Chrome 提取后直接写入钥匙串,凭据过期时重跑同一条即可刷新。授权对象选终端而非 Claude Code——终端路径固定,一次永久有效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 共用同一对钥匙串条目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 的身份,没有该权限——这是两条路唯一的差别,也是刷新必须走终端面板的原因HTTP_PROXY=http://127.0.0.1:7897HTTPS_PROXY=http://127.0.0.1:7897HTTP_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 库certifi is available (python3 -c "import certifi; print(certifi.where())"); when needed, pass the CA bundle explicitly via --cafile.All commands should use:
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 requestsRecommended 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:
--cafile; do not first try a bare command and then retry.certifi CA bundle and logs SSL trust source.--cafile <path> / --capath <dir>; environment variables SSL_CERT_FILE / SSL_CERT_DIR are still supported.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
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
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(图片资源)恢复图文顺序。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 必须通过 mediaItems[].mediaId -> media_entities[].media_info.original_img_url 映射原图img-N.jpg/png 并存MEDIA=标准图片引用数、MARKDOWN=代码块数、DIVIDER=分隔线数assets/hitw93-*/ 下未被任何 .md 引用的冗余文件Triggers: "read thread [id]", "show thread [url]"
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 thread <tweet-id-or-url>
Triggers: "show replies to [id]", "tweet replies"
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 replies <tweet-id-or-url>
Notes:
replies does not support -n / --count in current Bird CLI versions.--max-pages <number> or --all to control pagination when needed.Triggers: "search twitter [query]", "search x [query]", "find tweets about"
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 search "<query>" -n 10
Triggers: "my bookmarks", "twitter bookmarks", "saved tweets"
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 bookmarks -n 20
Notes:
bookmarks without --folder-id reads All Bookmarks, not a user-created bookmark folder.待办, do not summarize All Bookmarks as a substitute. Resolve the folder id first, then read that folder.Triggers: "bookmark folder [name/id]", "收藏夹文件夹", "待办收藏夹", "推特收藏夹中的代办/待办"
If the folder URL or numeric id is known:
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 bookmarks --folder-id <folder-id-or-url> -n 20
For a complete folder read:
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 bookmarks --folder-id <folder-id-or-url> --all --max-pages 5 --json
Folder-id workflow:
https://x.com/i/bookmarks/<id>; bird accepts either the numeric id or the full URL.opencli twitter bookmark-folders to list folder ids. This command is read-only, but it may fail with HTTP 404 when X rotates the GraphQL operation.opencli twitter bookmark-folders fails, do not fall back to All Bookmarks. The reliable way to list folder ids is the bird-bookmark-folders skill (python3 scripts/bookmark_folders.py list), which calls BookmarkFoldersSlice directly. Failing that, get candidate ids from an already-open Chrome/X URL or browser history, then validate with bird ... bookmarks --folder-id <id> -n 3 --plain.--all --max-pages N --json, inspect nextCursor; if it is non-empty and the user asked for exhaustive results, increase --max-pages.Triggers: "trending", "twitter trends", "what's trending", "twitter news", "x news"
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 news
Triggers: "home", "home timeline", "my feed", "for you", "首页推荐"
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 home -n 20
Triggers: "following", "following timeline", "首页关注流", "关注时间线"
Following 时间线按时间排序,是日常信息获取的主要入口。默认拉 100 条以覆盖近一天的内容,避免遗漏。
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 home --following -n 100
Triggers: "timeline", "i/timeline", "notified timeline", "device follow", "通知时间线"
x.com/i/timeline 与 home --following 不是同一数据源。该命令直接请求 device_follow REST endpoint,默认读取 20 条。
SKILLS_HOME="$HOME/.claude/skills"
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 \
python3 "${SKILLS_HOME}/bird-twitter/scripts/device_follow_timeline.py" \
--count 20 \
--cafile "$(python3 -c 'import certifi; print(certifi.where())')"
如需严格对齐抓包参数,传入完整请求 URL:
SKILLS_HOME="$HOME/.claude/skills"
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 \
python3 "${SKILLS_HOME}/bird-twitter/scripts/device_follow_timeline.py" \
--count 20 \
--request-url "$BIRD_DEVICE_FOLLOW_URL"
Triggers: "tweets from [username]", "timeline [username]", "[username]'s tweets"
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 user-tweets <username> -n 20
Triggers: "my likes", "liked tweets"
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 likes -n 20
Triggers: "my mentions", "twitter mentions", "who mentioned me"
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 mentions -n 20
Triggers: "my lists", "twitter lists"
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 lists
Triggers: "list timeline [id]", "tweets from list"
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 list-timeline <list-id-or-url> -n 20
Triggers: "who do I follow", "my following"
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 following -n 50
Triggers: "my followers", "who follows me"
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 followers -n 50
Triggers: "about [username]", "user info [username]"
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 about <username>
Global output flag:
--plain - Stable output without emoji or color (good for parsing)--plain 不可作为归档源(会丢失图文结构/媒体信息)Count flags (supported by many but not all commands):
-n <number> or --count <number> - Limit number of resultshome, search, bookmarks, likes, mentions, user-tweets, list-timeline, following, followers, lists, newsPagination-only commands:
replies / thread use --max-pages <number> or --all instead of -n / --countWhen in doubt, check command-specific help first:
HTTP_PROXY=http://127.0.0.1:7897 HTTPS_PROXY=http://127.0.0.1:7897 bird --timeout 15000 <command> --help
device_follow_timeline.DEFAULT_BEARER_TOKEN,不要手抄:它在 device_follow_timeline.py:29-31 是跨两行的字符串拼接,grep 单行只会拿到前半截,用半截 token 会稳定返回 401 code 32 Could not authenticate youbird-bookmark-folders skill;本 skill 只做读取The following commands are intentionally NOT exposed due to account suspension risk:
bird tweet - Post new tweetsbird reply - Reply to tweetsbird follow / bird unfollow - Follow/unfollow usersbird unbookmark - Remove bookmarksREADME.md (opens in a new tab)runtime.yaml (opens in a new tab)scripts/bird-wrapper.zsh (opens in a new tab)scripts/cookies_to_keychain.py (opens in a new tab)scripts/device_follow_timeline.py (opens in a new tab)scripts/install_local.zsh (opens in a new tab)skill.config.json (opens in a new tab)vendor/README.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub codingsamss/all-my-ai-needs --plugin all-my-ai-needs23 skills in this plugin
/aihot查询 AIHOT(aihot.news)的中文 AI 资讯。用户问今天或最近 AI 圈发生了什么、AI 新闻和 AI 日报、大模型与 AI 产品发布、OpenAI/Anthropic/Google 等公司或某个 AI 话题的最新消息、当前最热的 AI 事件及来龙去脉、AI 模型排行、Codex 额度重置,或其它 AI 行业动态时使用。必须实时查询 AIHOT,不凭训练记忆回答新闻;匿名只读,无需 API Key。/apifox-cli通过 Apifox CLI 管理 Apifox 项目资源。触发场景:运行接口自动化测试/测试套件,查询/创建/更新/删除接口、环境、Schema、Mock、分支等项目资源,导入导出 API 文档,查看测试报告,管理 Runner、定时任务、通知等 CI/CD 配置。CLI 输出为结构化 JSON,常含 agentHints.nextSteps;所有命令支持 --help。/apifox-test-caseApifox 接口测试用例:test-case 与 test-data 的查询、创建、更新、删除、分类和运行;处理测试步骤、断言、提取变量、前后置处理器、数据集,以及“CLI 创建后前端测试步骤无法展示”等问题。Other plugins' skills for the same job