name: x-bookmarks-manager
description: Read X/Twitter bookmarks using the bird CLI, verify the active account via bird whoami, and return bookmarks as JSON. Use when the user asks to list, search, summarize, or export X bookmarks, or when you must validate the active X account before fetching bookmarks.
X Bookmarks Manager
Overview
Fetch X bookmarks via a local bird CLI install and return JSON for the agent to summarize or filter.
Workflow (agent-driven)
- Ensure bird is installed locally via
scripts/setup.sh(installs with npm into.skills-data). - Ensure
BIRD_EXPECTED_USERis set in.skills-data/x-bookmarks-manager/.env. - Run
scripts/x-bookmarksto validate the account and output JSON. - Parse or summarize the JSON for the user.
Commands
scripts/x-bookmarks: validatebird whoamiand printbird bookmarks --json.scripts/setup.sh: install bird in.skills-data/x-bookmarks-manager/venv/node_modules/.bin/birdand create.env.
Output
- Raw JSON from
bird bookmarks --jsonon stdout.
Account safety
- Always run
bird whoamibefore fetching bookmarks. - If the active account does not match
BIRD_EXPECTED_USER, stop and ask the user to fix login or update.env.
Local data and env
- Store all mutable state under
/.skills-data/ /. - Keep config and registries in .skills-data/
/ (for example: config.json, .json). - Use .skills-data/
/.env for SKILL_ROOT, SKILL_DATA_DIR, and any per-skill env keys. - Install local tools into .skills-data/
/bin and prepend it to PATH when needed. - Install dependencies under .skills-data/
/venv: - Python: .skills-data/
/venv/python - Node: .skills-data/
/venv/node_modules - Go: .skills-data/
/venv/go (modcache, gocache) - PHP: .skills-data/
/venv/php (cache, vendor)
- Python: .skills-data/
- Write logs/cache/tmp under .skills-data/
/logs, .skills-data/ /cache, .skills-data/ /tmp. - Keep automation in
/scripts and read SKILL_DATA_DIR (default to /.skills-data/ /). - Do not write outside
and /.skills-data/ / unless the user requests it.
Notes
- bird is installed under
.skills-data/x-bookmarks-manager/venv/node_modules/.bin/birdand invoked directly. - Network access is required to download bird from npm on first setup.
- If bird is installed manually (npm/pnpm/bun), set
BIRD_BINin.envto the correct path. - If bird is not authenticated, ask the user to log in with bird and retry.