publishing

Apply platform-specific constraints and sanitize HTML for social media publishing.

11|1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/Arcanada-one/datarim --skill publishing-arcanada-one
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: publishing
Source: https://github.com/Arcanada-one/datarim/tree/main/skills/publishing
Command: npx skills add https://github.com/Arcanada-one/datarim --skill publishing-arcanada-one

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Publishing the same content across multiple platforms often breaks due to character limits, unsupported formatting, unsafe HTML, or incorrect posting/threading behavior, causing failed posts or mangled previews.

Core Features & Use Cases

  • Platform-specific posting constraints: Applies correct Telegram Bot API limits for message text, photo/video captions, and media group caption behavior.
  • Safe Telegram formatting: Enforces a strict HTML allowlist and validates attributes (including href scheme guarding and code language class validation) to prevent parse errors.
  • Adaptive long-post splitting: Splits oversized Telegram messages into numbered parts while respecting UTF-16 unit limits and best-effort split points.
  • Multi-platform publishing rules: Provides constraints and formatting guidance for LinkedIn, Facebook, X/Twitter, VK, and Instagram, plus link preview requirements (OG/Twitter card tags).
  • Correct Telegram commenting on channels: Implements a reliable workflow for posting comments under channel posts in the linked discussion group with verification.

Quick Start

Use the publishing skill to format and split a long post safely for Telegram, including correct HTML sanitization and channel-comment threading.

Frequently Asked Questions about publishing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I split long Telegram Bot API messages without breaking UTF-16 character limits?

To split long Telegram messages correctly, you must enforce UTF-16-aware length checks to respect Bot API limits. This ensures oversized message text and media captions are divided into numbered parts at best-effort split points without causing failed posts.

How does strict HTML sanitization work for Telegram bot posts?

Telegram HTML sanitization enforces a strict allowlist of supported tags and validates attributes, including href scheme guarding and code language class validation. This prevents parse errors and ensures your bot's messages are formatted safely before posting.

What's the best way to post comments under Telegram channel posts via a bot?

Posting comments under Telegram channel posts requires a validated workflow using message_thread_id verification in the linked discussion group. This ensures your bot correctly threads responses under the target channel post rather than sending standalone messages.

How do I prepare OG tags and Twitter cards for multi-platform social media publishing?

Preparing OG and Twitter card tags involves applying specific link preview requirements alongside multi-platform publishing rules. This ensures your content generates correct visual previews across platforms like LinkedIn, Facebook, X/Twitter, VK, and Instagram.

Why do my cross-platform social media posts fail or display mangled formatting?

Cross-platform social media posts fail due to unmet character limits, unsupported formatting, or unsafe HTML. Applying platform-specific posting constraints and consistent multi-platform adaptations for the same content prevents these errors and mangled previews.

Does Telegram Bot API have different size limits for photo captions versus message text?

Telegram Bot API enforces distinct size limits for message text, photo/video captions, and media group caption behavior. Applying these specific constraints during content preparation ensures your media posts stay within allowed boundaries.