Bluesky posting CLI — plan
Bluesky posting CLI — plan
Status: ready to run (agent-ready). Bead: marketing-861.1 (epic marketing-861). Planning-repo pointer: pl-4csf.
Why
First piece of shared posting infrastructure. Agents and Rufus need to post to Bluesky from more than one account (Reports That Matter now, personal next) without copy-pasting, and every post should land in activity-log.csv. RTM post drafting is happening separately (in the RTM repo), so this plan only covers the tool.
Prompt (paste into a session in this repo)
Build Bluesky posting for the marketing repo (bead marketing-861.1; plan docs/plans/2026-10-09-bluesky-posting-cli.md).
First: git pull --ff-only; `bd import` if needed; claim the bead. Read AGENTS.md, README.md, CREDENTIALS.md, PLAYBOOK.md and activity-log.csv.
1. Build a small Node CLI at tools/bluesky/ using @atproto/api: post text + link card (+ optional image with alt text), threads, --account <name> reading the app password from the path in CREDENTIALS.md and the handle from a small committed config (tools/bluesky/accounts.json: name → handle, credential path). --dry-run is the default (prints exactly what would post); --live actually posts. Each live post appends a row to activity-log.csv (date, project, campaign, platform=bluesky, summary, url). Never print, log or commit credential values.
2. Also accept a Markdown/YAML file of drafted posts (one per item, with an approved: true flag) and post only approved items, so drafts written elsewhere (e.g. the RTM repo) can be fed in.
3. Test: dry-run for the reportsthatmatter account; one authenticated login check (createSession) with no post. Add a minimal test for the draft-file parser.
4. README at tools/bluesky/README.md with usage. Add a line to PLAYBOOK.md pointing at it.
5. Commit, push, close the bead. Report in ≤150 words: usage, test results, anything blocking (e.g. handle unknown, personal account password not yet created).
Decided
- Node +
@atproto/api; app-password auth; credentials are files under~/.config/bluesky/<account>(seeCREDENTIALS.md) until the cross-machine secrets decision (planningpl-zecn) lands. - Human approval stays: the tool only posts items explicitly flagged approved, or a single post with
--live.
Open
- Personal Bluesky app password not yet created.
- Scheduling (post at a set time) is out of scope here; see the post-generation pipeline bead.