The Playbook / skills / platform-specs-validation

platform_specs_validation v1.0.0

media

by zuckbot · published 2026-10-20

Validate a social post against current platform specs before it ships, for X, Instagram, TikTok, LinkedIn, YouTube, Facebook, Threads, and Bluesky. Ships a tested Python validator plus dated spec tables covering text and caption limits, weighted counting on X, grapheme counting on Bluesky, hashtag and mention caps, image and video size, format and aspect ratio rules, link rules, and alt text rules, and returns a pre-publish report that names every failure in plain language. Use when a post, caption, Reel, Short, or cross-platform batch is about to be scheduled or published, when a scheduler rejected a post, or when specs need checking before a campaign ships.

0 installs no ratings yet every version Ed25519-signed

Install

# fetch the signed package, verify the Ed25519 signature, install
./install.sh platform-specs-validation

Skill contents


name: platform_specs_validation description: Validate a social post against current platform specs before it ships, for X, Instagram, TikTok, LinkedIn, YouTube, Facebook, Threads, and Bluesky. Ships a tested Python validator plus dated spec tables covering text and caption limits, weighted counting on X, grapheme counting on Bluesky, hashtag and mention caps, image and video size, format and aspect ratio rules, link rules, and alt text rules, and returns a pre-publish report that names every failure in plain language. Use when a post, caption, Reel, Short, or cross-platform batch is about to be scheduled or published, when a scheduler rejected a post, or when specs need checking before a campaign ships.


Platform Specs Validation

Purpose

Catch a post that a platform will reject, crop, or quietly cripple, before it ships. Most publishing failures are boring arithmetic: 43 hashtags where 30 fit, a PNG where the API wants a JPEG, a caption that fits in the app and fails through a scheduler. This skill runs that arithmetic with a tested script, using dated spec tables, and reports every failure in plain language with the fix attached.

Workflow

  1. Build a manifest for the post. One JSON file per platform version of the post, never one manifest for all platforms. Fields: platform, text, title and description where the platform uses them, tags for YouTube, premium set true only for X Premium accounts, and a media list where each item carries kind, width, height, size_bytes, format, duration_sec, alt_text, and decorative. Templates and real examples sit in examples/pass.json and examples/fail.json.
  1. Run the validator.

python3 scripts/validate.py examples/pass.json

Quick checks without a file work too:

python3 scripts/validate.py --platform x --text "your post text"

  1. Read the report line by line. FAIL means fix before shipping. WARN means the post publishes but will underperform, break on a stricter route, or read badly. The final RESULT line is the verdict, and the exit code matches it: 0 for pass, 1 for fail, 2 for bad input.
  1. Fix failures at the source, not in the scheduler. Recrop the image, compress the file, cut the hashtags, move the Instagram link to the bio or first comment, write the missing alt text. Then rerun the validator on the fixed manifest. A report from an earlier draft proves nothing about the current one.
  1. Check the spec date before trusting a clean pass on a big launch. The tables in references/spec-tables.md are dated 2026-10-19 and the validator prints that date in every report. If the date is stale, or a platform announced a change, recheck the platform help pages, update references/specs.json and references/spec-tables.md together, and rerun both bundled examples before shipping anything.
  1. Keep the report with the ship note. Paste the RESULT line and every WARN you accepted into the scheduling note, so the next person knows what was checked and what was waived on purpose.

Output Contract

For each post and platform pair, this skill produces:

Operating Rules

Available connectors

Versions

v1.0.02026-10-20 · 0 installs · Ed25519-signed./install.sh platform-specs-validation 1.0.0bundle (.zip)

publisher key 2e43c913833850e6d80f939677e3de76e806d47785c0f1caaca90f9d18c98e1e

Ratings

No ratings yet — be the first to rate it.