Square Post logo

Square Post

OrganizationPopular
binance
square-post

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.

Overview

Publisherbinance
Repositorybinance-skills-hub
Skill namesquare-post
Stars
1K
Forks
232
Bundled files
5
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by binance on GitHub. Read the source before you install it.

Installation

Install the Square Post AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/binance/binance-skills-hub/tree/main/skills/binance/square-post
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/binance/binance-skills-hub.git /tmp/binance-skills-hub
mkdir -p .claude/skills
cp -r /tmp/binance-skills-hub/skills/binance/square-post .claude/skills/square-post
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Square Post in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Square Post on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Square Post is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Square 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 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.
  • 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_KEY from 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.

bash
node scripts/post-text.mjs --text "Hello #crypto $BTC"

Long article with title and no cover:

bash
node scripts/post-text.mjs --text "Full article body..." --title "Market Report"

Flags:

  • --text required, post text content
  • --title optional, sets article-style content

Image Post

Use for short image posts or long articles with a cover image.

bash
node scripts/post-image.mjs --text "Chart analysis" --images "./chart1.png,./chart2.png"

Long article with title and cover:

bash
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.

Video Post

Use for video posts.

bash
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 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

  1. Resolve the API key (see Authentication). If unresolved, stop and ask the user before doing anything else.

  2. 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 intentScriptRequired flags
    Short text postpost-text.mjs--text
    Long article, no mediapost-text.mjs--text --title
    Image short post (1–4 imgs, no title)post-image.mjs--text --images "<p1,p2,...>"
    Article with coverpost-image.mjs--text --title --cover
    Video postpost-video.mjs--video --duration (+ optional --text)
  3. 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 ffprobe first to get it.
  4. 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.

  5. Run the script with BINANCE_SQUARE_OPENAPI_KEY injected into the command environment for one-time use (never as a CLI arg).

  6. Report the result:

    • On success, return the ID and Link printed by the script.
    • If the script prints 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.
    • On failure, surface the script error and any API code/message.

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. #topic and $coin are 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.
  • 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.

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Square Post AI skill do?

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 a...

Why use Square Post on TypingMind?

Because you install it once and use it with any model. Square Post is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Square Post in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/binance/binance-skills-hub/tree/main/skills/binance/square-post. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Square Post?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Square Post?

As many as you like. As long as a model supports skills, you can use Square Post with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Square Post AI skill free?

It is published on GitHub by binance. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇