Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

social-cli

Skill by letta-ai

social-cli is a command line tool for posting, replying, reading feeds and searching on Bluesky and X. It uses YAML files and exit codes so AI agents and automation scripts can run sync, check and dispatch loops.

  • Score 54
  • 158 stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install social-cli

Built from the published package, never by AI.

git clone --depth 1 https://github.com/letta-ai/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/tools/social-cli ~/.claude/skills/social-cli

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install social-cli in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

social-cli is a command line tool for Bluesky (ATProto) and X (Twitter). It lets an agent post, reply, start threads, like, delete and follow, and read feeds, profiles and search results. Output is YAML, and exit codes signal success, invalid input or partial failure so scripts can react.

The main workflow is a sync, check and dispatch loop. Sync pulls notifications into inbox YAML files, the agent writes decisions to outbox files, and dispatch executes them and records results in a sent ledger to prevent duplicates. Bluesky also supports annotations on any URL using the at.margin.note lexicon. It suits agents and automation scripts that manage posts across Bluesky and X.

Written from the project's SKILL.md and checked against it.

What it can do

  • post, reply, threadPublishes posts, replies and multi-post threads to Bluesky or X.
  • like, delete, followHandles basic engagement actions on Bluesky and X posts and accounts.
  • searchSearches posts on Bluesky or X and returns results as YAML.
  • feedReads feeds, including custom Bluesky feeds and X home or user feeds.
  • profile, whoami, rate-limitsShows profile details, the current account and API rate limit status.
  • annotateAdds notes or highlights to any URL on Bluesky using at.margin.note.
  • sync, check, dispatchRuns an agent loop that pulls notifications, checks them and sends outbox actions.
  • Inbox and outbox filesStores notifications and agent decisions as YAML files in the working directory.
  • Replay protectionRecords sent actions in a ledger so duplicate dispatches are avoided.
  • Retries and session refreshRetries failed requests with backoff and refreshes expired Bluesky sessions.

What you need

  • Node.js and pnpm to install and build from source
  • Bluesky account handle and app password
  • X API key, API secret, access token and access token secret
  • X bearer token (optional, for app-only endpoints)

Try asking

  • Check my inbox and reply to any Bluesky mentions.
  • Post a thread about this article to Bluesky and X.
  • Annotate https://example.com with a highlighted quote.

Good to know

  • Annotations work on Bluesky only.
  • X notifications include mentions only.
  • Posts over 300 characters (Bluesky) or 280 (X) are rejected before the API call.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: tools/social-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to social-cli

All alternatives →

Compare with setup-zoom-webhooks, baoyu-post-to-weibo or add-dial-number

social-cli: common questions

Which platforms does social-cli support?

It supports Bluesky (ATProto) and X (Twitter). Only credentials for the platforms you use are required.

How does social-cli avoid sending duplicate posts?

Dispatch appends each sent action to sent_ledger-{platform}.yaml, and sync deduplicates against that ledger. This prevents duplicate dispatch across runs.

What do the exit codes mean?

Exit code 0 means all actions succeeded, 1 means an invalid outbox or missing credentials, and 2 means partial failure. The check command exits 1 when nothing is actionable.

How do I install social-cli?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is social-cli free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is social-cli safe to use?

It scores 54 of 100. Grades: maintenance B, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to social-cli?

Similar skills: setup-zoom-webhooks, baoyu-post-to-weibo, add-dial-number, setup-zoom-websockets.

social-cli Install

Add to stack

Loading.