Use when the user asks to fetch, search, review, summarize, digest, or act on X/Twitter bookmarks, saved posts, bookmark folders, no-credit bookmark access, or recurring bookmark reviews.
Ships in x-bookmarks. 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.
Use this skill when a user asks to fetch, search, review, summarize, digest, or act on X/Twitter bookmarks, saved posts, bookmark folders, or recurring bookmark reviews.
check, whoami, bookmarks, read). Run account
changes such as tweet, reply, unbookmark, follow, unfollow, likes,
or new bookmarks only when the user explicitly asks for that action.bird.fast first because it uses the logged-in browser
session and avoids paid X API credits.tweet.read users.read bookmark.read offline.access.--include-write-scope to x_api_auth.py for the bundled fetch
workflows. Request bookmark.write only for a separate, explicitly
authorized write workflow. Each setup requests the read scopes plus only that
run's --include-write-scope/--scope flags, so rerunning setup without
them drops write access.auth_token, ct0, OAuth tokens, access
tokens, refresh tokens, or client secrets in chat.~/.config/x-bookmarks/,
~/.local/state/x-bookmarks/, and ~/.config/bird/.X_BOOKMARKS_CONFIG_DIR, X_BOOKMARKS_TOKEN_FILE, and
X_BOOKMARKS_STATE_FILE can override the x-bookmarks defaults. Keep every
override outside the plugin and source checkout.From this skill directory, check the configured backend; do not require both. For Bird:
bird check --plain
For X API v2 with saved local OAuth state:
python3 scripts/x_api_auth.py --status
The API fetch helper can instead use an existing OAuth user access token from
X_API_ACCESS_TOKEN or X_API_BEARER_TOKEN. Never print either variable.
Fetch recent bookmarks with one backend:
# Bird
scripts/fetch_bookmarks_bird.sh --count 25
# X API v2
python3 scripts/fetch_bookmarks_api.py --count 25 --pretty
Fetch bookmarks for local inspection or search. Bird emits JSON for the agent
to inspect; the API helper also provides the bundled --query filter:
scripts/fetch_bookmarks_bird.sh --all
python3 scripts/fetch_bookmarks_api.py --all --query "agents mcp" --pretty
For the API backend, fetch new results since the last recorded review:
python3 scripts/fetch_bookmarks_api.py --all --since-last --update-state --pretty
Bird can fetch a recent window with
scripts/fetch_bookmarks_bird.sh --count 100, but it does not maintain a
persisted review cutoff.
List bookmark folders or fetch a folder:
python3 scripts/fetch_bookmarks_api.py --folders --pretty
python3 scripts/fetch_bookmarks_api.py --folder-id FOLDER_ID --count 50 --pretty
bird bookmarks --folder-id FOLDER_ID -n 50 --json
Open X login when Bird needs a browser session:
scripts/open_x_login.sh
https://bird.fast/
or their managed toolchain.https://x.com with
scripts/open_x_login.sh when tool access allows it, then ask the user to
finish logging in and retry bird check --plain.--cookie-source, --chrome-profile,
--chrome-profile-dir, or --firefox-profile flags.For Bird details, read references/bird-fast.md before changing install,
browser auth, or no-credit backend behavior.
Use OAuth 2.0 Authorization Code Flow with PKCE. The default local callback is:
http://localhost:8739/callback
Use --redirect-uri when the X Developer app is configured with another
loopback callback.
Required read scopes:
tweet.read users.read bookmark.read offline.access
If local auth is missing and the user wants the official API path:
Ask the user to create or select an X Developer app.
Ask them to enable OAuth 2.0 / PKCE user authentication.
Ask them to add the selected callback URL exactly.
Ask for the OAuth 2.0 Client ID.
For a public client without a client secret, run:
python3 scripts/x_api_auth.py --client-id CLIENT_ID
For a confidential client, collect the secret through a hidden local prompt and pass it through standard input:
read -rs X_API_CLIENT_SECRET
printf '\n'
printf '%s\n' "$X_API_CLIENT_SECRET" |
python3 scripts/x_api_auth.py --client-id CLIENT_ID --client-secret-stdin
unset X_API_CLIENT_SECRET
The helper stores the confidential-client secret in its private local configuration so it can refresh tokens.
If the helper cannot open the browser, ask the user to open the printed URL and approve access. Setup waits up to 5 minutes for the callback, then exits with an error; rerun it if the user needs more time. A rerun fails while an earlier run still holds the callback port, so stop that run first.
Run python3 scripts/x_api_auth.py --status, then a small test fetch.
For endpoint, scope, and rate-limit details, read references/x-api-v2.md
before changing API behavior.
Unless the user asks for a narrower format, return:
When asked to search, run a local query over fetched bookmark text, author
metadata, links, and expanded quoted posts. For API-backed requests for "new",
"since last time", or recurring review, use
--all --since-last --update-state without --query (the helper refuses that
combination). Review state is saved only after a fetch that reached the end of
the list (--all without --max-pages). A partial fetch cannot confirm the
cutoff, so it returns every fetched bookmark as unfiltered, leaves
meta.state_updated false, and stderr says how to rerun. If
meta.cutoff_mode is created_at_fallback or unfiltered, tell the user the
"new" list may skip or repeat bookmarks.
Bird can fetch a recent window but does not persist the last reviewed bookmark.
x.com in a supported browser
and allow any browser cookie or Keychain prompt.402: this usually indicates an API payment, credit, or access-plan
restriction. Use Bird or review the Developer account's access.429: report the rate-limit reset time from the helper, if it gives
one.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/x-bookmarks:x-bookmarksfrom x-bookmarks
npx claudepluginhub heynag/charms --plugin x-bookmarks