Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
6551team avatar

Twitter To Binance Square

  • 259 installs
  • 19 repo stars
  • Updated May 23, 2026
  • 6551team/6551-twitter-to-binance-square

twitter-to-binance-square is a Claude Code skill that mirrors Twitter/X posts to Binance Square—or publishes new Square posts directly—for developers who need automated crypto social content distribution without manual c

About

twitter-to-binance-square is a Python-based Claude Code skill from 6551team that bridges Twitter/X and Binance Square through two entry points: scripts/auto_mirror.py for scheduled mirroring and scripts/mcp_server.py exposing one MCP tool, publish_square_post. The mirror script supports three sourcing modes—account, search, and hashtag—with engagement filters, deduplication via a state file, and dry-run previews before live posts. Publishing covers four Square shapes: text, up to 4 images, one video with ffprobe/ffmpeg cover handling, and normalized #tags. Credentials come from a 6551 TWITTER_TOKEN and BINANCE_SQUARE_OPENAPI_KEY from Binance Creator Center. Reach for twitter-to-binance-square when you already post crypto insights on X and want the same text, images, or video on Binance Square without hand-copying each update.

  • Cross-posts Twitter/X content to Binance Square
  • Reduces manual social publishing for crypto brands
  • Supports multi-channel audience growth
  • Useful for traders sharing market updates
  • Automates repetitive distribution workflows

Twitter To Binance Square by the numbers

  • 259 all-time installs (skills.sh)
  • Ranked #354 of 1,106 Finance & Trading skills by installs in the Skillselion catalog
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/6551team/6551-twitter-to-binance-square --skill twitter-to-binance-square

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs259
repo stars19
Last updatedMay 23, 2026
Repository6551team/6551-twitter-to-binance-square

How do you auto-mirror Twitter posts to Binance Square?

Automate republishing Twitter/X posts to Binance Square to keep crypto audiences updated without manual cross-posting.

Who is it for?

Developers or technical content operators who publish crypto analysis on Twitter/X and need reliable, API-driven syndication to Binance Square with media and hashtag support.

Skip if: Developers without Binance Square Creator Center OpenAPI access, a 6551 TWITTER_TOKEN, or any need to cross-post between X and Binance Square should skip this skill.

When should I use this skill?

Trigger when the user asks to mirror tweets to Binance Square, cross-post X content to Square, run the Binance Square MCP server, or publish images or video directly to Square.

What you get

Published Binance Square posts (text, imageList up to 4, or video), mirror_state.json deduplication log, and dry-run request bodies from CLI or MCP.

  • Published Binance Square posts via CLI or MCP
  • mirror_state.json deduplication and post log
  • Dry-run Binance request bodies for text, image, and video shapes

By the numbers

  • Includes 2 Python entry-point scripts: auto_mirror.py and mcp_server.py
  • Supports 3 mirror sourcing modes: account, search, and hashtag
  • Publishes up to 4 images or 1 video per Binance Square post

Files

SKILL.mdMarkdownGitHub ↗

Twitter to Binance Square

Use the scripts in this skill directory. The scripts own Binance Square upload, status polling, video cover extraction, and publish behavior.

Credentials

  • Tweet mirroring requires TWITTER_TOKEN.
  • TWITTER_TOKEN must be a valid 6551 Twitter API token supplied by the user's environment.
  • Square publishing requires BINANCE_SQUARE_OPENAPI_KEY; SQUARE_API_KEY is accepted only for backward compatibility.
  • Never pass the Square key as a command-line argument or MCP tool parameter.
  • Never print the full key.

Supported Publish Shapes

ShapeBinance body fields
TextcontentType=1, bodyTextOnly
ImagescontentType=1, bodyTextOnly, imageList
VideocontentType=3, fileTicket, cover, videoTimeSeconds, isPublish=true
Tagsnormalized #tags appended into bodyTextOnly

Images and video are mutually exclusive. Image posts support max 4 images. Video posts support exactly 1 video.

Automation Script

Run from this directory:

python scripts/auto_mirror.py --mode account --accounts VitalikButerin --tags Crypto,Web3 --once --dry-run

Effective CLI parameters:

ParameterEffect
--config, -cLoad JSON config.
--modeaccount, search, or hashtag.
--accountsComma-separated Twitter usernames for account mode.
--keywordsSearch keywords for search mode.
--hashtagHashtag for hashtag mode, without #.
--intervalPoll interval in seconds.
--min-likesMinimum likes threshold.
--min-retweetsMinimum retweets threshold.
--max-postsMax posts per cycle.
--include-repliesInclude replies in account mode.
--include-retweetsInclude retweets in account mode.
--tagsComma-separated tags appended as #tags.
--imageImage path or URL to attach; repeat or comma-separate, max 4.
--videoOne video path or URL to attach.
--video-durationVideo duration in seconds; if omitted, ffprobe is used.
--video-coverImage path or URL used as video cover; if omitted, ffmpeg extracts the first frame.
--no-tweet-imagesIgnore images found on source tweets.
--no-tweet-videosIgnore videos found on source tweets.
--dry-runPreview request body without posting or uploading.
--onceRun one cycle and exit.
--state-fileState file for posted tweet IDs and post log.

The JSON config uses mirror_config.example.json as the source of truth.

MCP Server

Run:

python scripts/mcp_server.py

MCP tool: publish_square_post

ParameterEffect
textRequired post text.
tagsOptional list of tags. Items may include or omit #.
imagesOptional list of local image paths or image URLs, max 4.
videoOptional local video path or video URL.
video_duration_secondsOptional positive duration; if omitted, ffprobe is used.
video_coverOptional local image path or URL for video cover; if omitted, ffmpeg extracts the first frame.
dry_runReturn request body without upload or publish.

Do not pass both images and video.

Agent Rules

1. Use dry_run before first live publishing when practical. 2. Only attach media explicitly provided by the user or present on the source tweet. 3. Do not rewrite user text unless the user asks. 4. Preserve existing #tags and $symbols; append configured tags only once. 5. Treat 220009 as the daily Square OpenAPI limit.

Verification Boundary

Local dry-run verifies parameter wiring and request-body construction. Live Square publishing was verified on 2026-05-23 with a temporary OpenAPI key for image+tags and video+tags posts. Live Twitter account fetching was verified with a valid 6551 TWITTER_TOKEN. Twitter image URL publishing was also verified end to end: a direct pbs.twimg.com/media/... source image was uploaded and published as a Square-hosted public.bnbstatic.com image. Tweet image extraction must prefer direct pbs.twimg.com/media/... image URLs over x.com/.../photo/... page URLs.

Related skills

How it compares

Pick twitter-to-binance-square when you need a maintained Python CLI plus MCP path specifically for Twitter/X-to-Binance-Square mirroring with media upload, not generic multi-platform schedulers.

FAQ

What credentials does twitter-to-binance-square require?

twitter-to-binance-square needs TWITTER_TOKEN from 6551.io for Twitter/X fetching and BINANCE_SQUARE_OPENAPI_KEY from Binance Creator Center for publishing. SQUARE_API_KEY is accepted as a backward-compatible alias. Keys are read from environment variables only.

What media can twitter-to-binance-square publish to Binance Square?

twitter-to-binance-square publishes text posts, up to 4 images per post, or exactly 1 video with optional ffprobe duration and ffmpeg cover extraction. Images and video are mutually exclusive in a single Square post.

How does twitter-to-binance-square avoid duplicate Square posts?

twitter-to-binance-square tracks posted tweet IDs in mirror_state.json configured via --state-file or JSON config. The auto_mirror.py script skips tweets already recorded, and dry-run mode previews request bodies without uploading or publishing.

Finance & Tradingcontentdistribution

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.