skills/binance/square-post/SKILL.md
Use when the user wants to publish new content to Binance Square — short text, multi-image posts (up to 4), long-form articles with an optional cover, or videos with an auto-generated cover frame. Trigger on direct phrasings like "post to Square", "publish to Binance Square", "发广场", "发布到广场", and on near-miss intents where the user clearly wants to share or publish content on Square even without naming the skill: "share this analysis on Square", "把这篇文章发出去", "发个动态", "把这个视频上传到广场", "publish my chart to Square as an article". Also use when the user provides media (images, video) plus a caption and asks to push it to Square, or asks to turn a draft into a Square article. Do not use for reading, searching, commenting, liking, editing, deleting, scheduling, or managing existing Square posts — this skill only creates new posts.
npx skillsauth add binance/binance-skills-hub square-postInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Publish new content to Binance Square by running the local scripts in scripts/.
Supported post types:
Do not hand-code API requests for normal posting. The scripts own upload, polling, cover generation, and publish behavior.
fetch API.ffmpeg is required for video posts because post-video.mjs extracts the first frame as the cover image.ffprobe is required when a video duration is not provided by the user.Posting requires a Binance Square OpenAPI key.
Before posting:
BINANCE_SQUARE_OPENAPI_KEY from the user's environment if present.~/.config/binance-square/openapi-key.BINANCE_SQUARE_OPENAPI_KEY=<apiKey> node scripts/save-key.mjs; otherwise use it only for the current command environment.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.
All commands should be run from this skill directory.
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:
--text required, post text content--title optional, sets article-style contentUse 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:
--text required, post or article content--images required for short image posts only. Use comma-separated image paths with max 4.--title optional, sets article-style content. When present, do not pass --images.--cover required when --title is 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.
Use for video posts.
node scripts/post-video.mjs --video "./video.mp4" --duration 7.5 --text "My analysis"
Flags:
--video required, local video path--duration required, video duration in seconds--text optional, post text contentThe 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.
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 | --text |
| Long article, no media | post-text.mjs | --text --title |
| Image short post (1–4 imgs, no title) | post-image.mjs | --text --images "<p1,p2,...>" |
| Article with cover | post-image.mjs | --text --title --cover |
| Video post | post-video.mjs | --video --duration (+ optional --text) |
Disambiguate edge cases before running:
--cover, not --images).ffprobe first to get it.Preserve user content exactly. Do not rewrite, translate, add hashtags/cashtags, or change punctuation. $coin and #topic text passes through verbatim — the backend parses them.
Run the script with BINANCE_SQUARE_OPENAPI_KEY injected into the command environment for one-time use (never as a CLI arg).
Report the result:
ID and Link printed by the script.Success! with ID: unavailable and Link: unavailable, treat it as successful — /content/add returned 504 after submission, so no post ID or link is available.#topic and $coin are parsed server-side.220003: API key not found.220004: API key expired.220009: Daily post limit exceeded for OpenAPI.220014: Daily upload limit exceeded.20002 or 20022: Sensitive words detected.20013: Content length is limited.20020 or 220011: Content body must not be empty.30008, 2000001, or 2000002: Account or device posting restriction.This skill only supports publishing new posts. It does not support:
tools
Use binance-cli for Binance Spot, Futures (USD-S), and Convert. Requires auth.
data-ai
Per-trade smart-money signals — each result is a discrete buy or sell event from a tracked smart-money wallet, with trigger price, current price, max gain since trigger, and exit rate. BSC and Solana only. Use for: "smart money buy signal on $X", "any whale just bought $Y", "alpha signals in the last hour", "copy-trade-worthy signals", "trigger price and max gain on these trades", "on-chain trading signals from smart money".
development
Per-token details for a specific token identified by keyword, symbol, or contract address: (1) search — find tokens by keyword/symbol/contract; (2) meta — static info: name, symbol, logo, social links, creator, official website; (3) dynamic — real-time market data: price, 24h change, volume, holder count, liquidity; (4) kline — OHLCV candlestick data for technical analysis. Use for: "price of $X", "search for token Y", "kline chart for $Z", "who created $W", "social links for $V", "holder count of $U", "candlestick data", "find the contract address of <token>".
testing
Snapshot of a single wallet's token holdings on a specific chain — list of every token currently held with name, symbol, current price, 24h price change, and holding quantity. Use when the user provides an explicit wallet address (or says "my wallet") and wants the current portfolio: "what does 0x... hold", "wallet balance breakdown", "list positions for this address", "what tokens are in this wallet", "show me the holdings of <address>".