All skills
binance avatar

/square-post

@3f5ae15
by binancebinance/binance-skills-hub1k stars
232

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.

Use this Skill: https://skilld.dev/gh/binance/binance-skills-hub/square-post

This session only. Nothing lands on disk.

README.md

≈530 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Square Post Skill

Publish text, image, article, and video posts to Binance Square through the local Node.js scripts in scripts/.

Dependencies

Runtime

  • Node.js 18 or newer. The scripts use native ES modules and the built-in fetch API.
  • Bash-capable shell for running the scripts through the agent tool.

System Tools

  • ffmpeg is required for video posts. scripts/post-video.mjs extracts the first frame from the source video and uploads it as the post cover.
  • ffprobe is required when the user does not provide a video duration. The agent uses it to determine the duration before calling post-video.mjs.

External Services

  • Binance Square OpenAPI access through BINANCE_SQUARE_OPENAPI_KEY or the local saved key file.
  • Network access to the Square OpenAPI endpoints and to presigned upload URLs returned by the API.

No npm package install is required for the current scripts; they only use Node.js built-in modules.

Authentication

Scripts read the OpenAPI key in this order:

  1. BINANCE_SQUARE_OPENAPI_KEY
  2. The saved key file at ~/.config/binance-square/openapi-key

Do not pass API keys as CLI arguments. --key is rejected because command-line arguments can appear in process listings and shell history.

To save a key for future runs, explicitly run:

BINANCE_SQUARE_OPENAPI_KEY=<apiKey> node scripts/save-key.mjs

The saved key file is written with 0600 permissions. To remove it, delete ~/.config/binance-square/openapi-key.

Directory Structure

square-post/
├── SKILL.md              # Skill instructions and publishing workflow
├── README.md             # Directory overview
├── scripts/
│   ├── lib.mjs           # Shared API, upload, polling, and publish helpers
│   ├── save-key.mjs      # Saves the OpenAPI key to a local private config file
│   ├── post-text.mjs     # Text and article publishing script
│   ├── post-image.mjs    # Image post and article-with-cover publishing script
│   └── post-video.mjs    # Video publishing script with generated cover

Source: SKILL.md on GitHub

1 warning17d5 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    The skill is safe. It provides local scripts to publish content to Binance Square using official APIs, employing secure secret management practices and proper execution methods.

  • Socket17d

    1 alert: gptAnomaly

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer6mo

    2/3 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 3f5ae15. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 4 months ago
What it can do
Runs commands
metadata
{
  "author": "binance-square",
  "version": "2.0.0"
}
All 1 allowed tools
Bash
  • Content
  • API
  • binance
  • square
  • social-media
  • publishing
  • nodejs
  • video
  • images
  • articles

README badge

README badge for binance/binance-skills-hub/square-post

Publishes new posts to Binance Square — text, images (up to 4), articles with optional covers, or videos with auto-generated cover frames. Runs local Node.js scripts that handle upload, media processing, and API submission; requires a Binance Square OpenAPI key and ffmpeg for video posts.

Generated from the current SKILL.md.

What post types does this skill support?
Text-only posts, image posts (up to 4 images), long-form articles with an optional cover image, and video posts with an auto-generated cover frame.
Do I need to provide an API key, and where do I get one?
Yes. The skill checks the environment variable BINANCE_SQUARE_OPENAPI_KEY or ~/.config/binance-square/openapi-key. You can create an API key at https://www.binance.com/square/creator-center/home.
What are the runtime dependencies?
Node.js 18 or newer, ffmpeg for video posts, and ffprobe if you don't provide a video duration. Network access to Binance Square OpenAPI is required.
Can I edit or delete posts after publishing them?
No. This skill only creates new posts. It does not support editing, deleting, reading, or managing existing posts.
Are there daily posting limits?
Yes. You can publish up to 100 posts per day and perform up to 400 uploads per day.

Generated from the current SKILL.md. These answers refresh after source changes.