What Square Post does
The Square Post skill enables users to efficiently publish various types of content directly to Binance Square. This skill is particularly useful for those who want to share insights, analyses, or multimedia content with their audience on the platform. It supports multiple post formats, including short text posts, image posts (with up to four images), long-form articles (with an optional cover image), and video posts that automatically generate a cover frame. By utilizing the provided scripts, users can avoid the complexities of hand-coding API requests and streamline their posting process.
To get started, users need to set up their environment with Node.js 18 or newer, and ensure they have the required dependencies like ffmpeg for video processing. The skill handles authentication through the Binance Square OpenAPI key, which can be stored for future use or provided on-the-fly. This ensures that users can securely manage their API keys without exposing sensitive information in command-line arguments.
The skill is designed for developers and content creators who frequently publish to Binance Square and want to automate their posting workflow. It eliminates the need for manual uploads and provides a straightforward command-line interface for posting content. By following the structured commands, users can easily create and publish their content without the hassle of managing the underlying API interactions.
Overall, the Square Post skill is a practical tool for anyone looking to enhance their content-sharing capabilities on Binance Square, providing a seamless experience from content creation to publication.
When to use it
Use this skill when you want to publish new posts or articles to Binance Square, especially if you have multimedia content to share.
When not to use it
This skill is not suitable for managing existing posts, such as editing or deleting content on Binance Square.
What you can build with it
Publishing a Market Analysis
Quickly share a market analysis article with a title and cover image to Binance Square.
Sharing Visual Insights
Post a short analysis along with multiple images to engage your audience visually.
Uploading Video Content
Publish a video analysis with an auto-generated cover image to enhance your content offerings.
How to install Square Post
View source1. Install with the skills CLI
npx skills add ccxt/ccxt/square-post --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by ccxtSquare Post Skill
Purpose
Publish new content to Binance Square by running the local scripts in scripts/.
Supported post types:
- Text-only short posts
- Image posts with up to 4 images
- Long articles with a title and optional cover image
- Video posts with an auto-generated cover image
Do not hand-code API requests for normal posting. The scripts own upload, polling, cover generation, and publish behavior.
Runtime Dependencies
- Node.js 18 or newer. The scripts use native ES modules and the built-in
fetchAPI. ffmpegis required for video posts becausepost-video.mjsextracts the first frame as the cover image.ffprobeis required when a video duration is not provided by the user.- Network access is required for Binance Square OpenAPI requests and presigned media uploads.
Authentication
Posting requires a Binance Square OpenAPI key.
Before posting:
- Prefer
BINANCE_SQUARE_OPENAPI_KEYfrom the user's environment if present. - If it is not present, the scripts automatically check
~/.config/binance-square/openapi-key. - If no valid key is found, ask the user to provide an API key first.
- If the user wants to reuse the key in future requests, save it with
BINANCE_SQUARE_OPENAPI_KEY=<apiKey> node scripts/save-key.mjs; otherwise use it only for the current command environment. - Tell the user they can create an API key at: https://www.binance.com/square/creator-center/home
Pass the key only via BINANCE_SQUARE_OPENAPI_KEY (env or saved file). Never write it into command arguments or print the full key — CLI args appear in ps output and shell history. When mentioning a key, show only the first 5 and last 4 characters, such as abc12...xyz9.
Scripts
All commands should be run from this skill directory.
Text Or Article Post
Use for text-only short posts or long articles without images.
node scripts/post-text.mjs --text "Hello #crypto $BTC"
Long article with title and no cover:
node scripts/post-text.mjs --text "Full article body..." --title "Market Report"
Flags:
--textrequired, post text content--titleoptional, sets article-style content
Image Post
Use for short image posts or long articles with a cover image.
node scripts/post-image.mjs --text "Chart analysis" --images "./chart1.png,./chart2.png"
Long article with title and cover:
node scripts/post-image.mjs --text "Full analysis..." --title "Market Report" --cover "./chart.png"
Flags:
--textrequired, post or article content--imagesrequired for short image posts only. Use comma-separated image paths with max 4.--titleoptional, sets article-style content. When present, do not pass--images.--coverrequired when--titleis present for an article with media. Article mode supports exactly one cover image.
The script uploads each image, waits for processing, and publishes with the processed image URL returned by the backend. If --title is provided, it publishes contentType=2, requires --cover, and sends that uploaded image URL as cover only. If no --title is provided, it publishes contentType=1 and sends all --images as imageList.
Video Post
Use for video posts.
node scripts/post-video.mjs --video "./video.mp4" --duration 7.5 --text "My analysis"
Flags:
--videorequired, local video path--durationrequired, video duration in seconds--textoptional, post text content
The script uploads the video, waits for processing, extracts the first frame with ffmpeg, uploads that frame as the cover image, and publishes with cover included in the request.
If the user does not provide a duration, use ffprobe to determine it before running the script.
Agent Workflow
-
Resolve the API key (see Authentication). If unresolved, stop and ask the user before doing anything else.
-
Pick the script from user intent using the table below. Then validate against Constraints — if a constraint is violated, explain it and do not run.
User intent Script Required flags Short text post post-text.mjs--textLong article, no media post-text.mjs--text --titleImage short post (1–4 imgs, no title) post-image.mjs--text --images "<p1,p2,...>"Article with cover post-image.mjs--text --title --coverVideo post post-video.mjs--video --duration(+ optional--text) -
Disambiguate edge cases before running:
- Title + exactly one image → that image is the cover (
--cover, not--images). - Title + multiple images → stop and ask which single image is the cover.
- Video without duration → run
ffprobefirst to get it.
- Title + exactly one image → that image is the cover (
-
Preserve user content exactly. Do not rewrite, translate, add hashtags/cashtags, or change punctuation.
$coinand#topictext passes through verbatim — the backend parses them. -
Run the script with
BINANCE_SQUARE_OPENAPI_KEYinjected into the command environment for one-time use (never as a CLI arg). -
Report the result:
- On success, return the
IDandLinkprinted by the script. - If the script prints
Success!withID: unavailableandLink: unavailable, treat it as successful —/content/addreturned 504 after submission, so no post ID or link is available. - On failure, surface the script error and any API code/message.
- On success, return the
Constraints
- Images: max 4 per post; article cover is exactly 1 image.
- Video: max 1 per post.
- Images and video are mutually exclusive in a single post.
- Only attach media the user explicitly provided; do not auto-attach.
- Do not modify user-provided text.
#topicand$coinare parsed server-side. - Daily limits: 100 posts/day, 400 uploads/day.
Common Errors
220003: API key not found.220004: API key expired.220009: Daily post limit exceeded for OpenAPI.220014: Daily upload limit exceeded.20002or20022: Sensitive words detected.20013: Content length is limited.20020or220011: Content body must not be empty.30008,2000001, or2000002: Account or device posting restriction.
Scope
This skill only supports publishing new posts. It does not support:
- Reading, listing, or searching existing posts
- Editing or deleting posts
- Commenting, liking, or other interactions
- User profile or account management
- Scheduling or drafts
Frequently asked questions about Square Post
Similar skills
Agent-Browser Core
Efficient browser automation for AI agents.
Setup My IQ
Effortlessly create and update your personal context portfolio.
CRM Maintenance
Automate HubSpot updates from your calendar and emails.
Zoom MCP
Streamline access to Zoom meeting assets and recordings.
Slack Automation
Automate tasks and extract data from Slack easily.
SMB Onboard
Guides small business owners through initial tool setup.

