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 <project_root>/.skills-data/<skill-name>/.
- •Keep config and registries in .skills-data/<skill-name>/ (for example: config.json, <feature>.json).
- •Use .skills-data/<skill-name>/.env for SKILL_ROOT, SKILL_DATA_DIR, and any per-skill env keys.
- •Install local tools into .skills-data/<skill-name>/bin and prepend it to PATH when needed.
- •Install dependencies under .skills-data/<skill-name>/venv:
- •Python: .skills-data/<skill-name>/venv/python
- •Node: .skills-data/<skill-name>/venv/node_modules
- •Go: .skills-data/<skill-name>/venv/go (modcache, gocache)
- •PHP: .skills-data/<skill-name>/venv/php (cache, vendor)
- •Write logs/cache/tmp under .skills-data/<skill-name>/logs, .skills-data/<skill-name>/cache, .skills-data/<skill-name>/tmp.
- •Keep automation in <skill-root>/scripts and read SKILL_DATA_DIR (default to <project_root>/.skills-data/<skill-name>/).
- •Do not write outside <skill-root> and <project_root>/.skills-data/<skill-name>/ 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.