/telegram-skills:tg-reply-rewritefrom telegram-skills
Rewrites bot replies, alerts, and status reports into short Telegram messages for non-engineers on phones. Preserves facts while removing jargon and adding urgency context.
Ships in telegram-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Input: the raw reply. Output: the same facts as a short Telegram message for a non-engineer on a phone. This skill edits text only and sends nothing; delivery belongs to tg-classic-messages for a short HTML reply and tg-rich-messages for tables or details blocks.
Do not rewrite when the reader asked for an exact string, JSON, code, or another machine format: apply rule 9 on secrets first, then pass the rest through unchanged. Write in the reader's language.
[removed] and tell the reader one was removed.| Part | Limit | Source |
|---|---|---|
| First line | about 80 characters, 120 at most | editorial, notification preview |
| Findings | up to 5 in the open text; the rest in a collapsed block | editorial |
| Whole message | aim for under 1 200 characters | editorial, about two phone screens |
sendMessage text | 4 096 characters after entity parsing | Bot API |
| Rich message | 32 768 characters, 500 blocks | Bot API, see tg-rich-messages |
Over the target: collapse details first. Split only as a last resort, at a block boundary.
sendMessage with parse_mode: HTML. Allowed here: <b>, <i>, <code>, <pre>, <a href>, <blockquote>, <blockquote expandable>. Escape &, <, > in all dynamic text.sendRichMessage. Use <details> for long lists.<blockquote expandable> in a short reply and <details> in a rich one. Move the body into html, markdown, or blocks as described in tg-rich-messages.Before:
[scan 03:00] host=web-1 ERR backup job nightly-db exit=1 last_ok=3d ; WARN disk /var 92% (threshold 85%) ; pending_sec_updates=1 libfoo 1.2.3->1.2.4 ; ports OK ; tls cert OK 61d ; hint: journalctl -u nightly-db -n 50
After (parse_mode: HTML):
<b>Database backups on web-1 are failing. Urgent: fix today.</b>
<b>Backups are failing</b>
The job nightly-db stopped with an error (exit code 1). The last good copy is 3 days old. If the database is lost now, those 3 days are gone.
<blockquote>Find out why nightly-db fails on web-1, fix it, run it once, and show me the result.</blockquote>
<b>Disk is filling up</b>
The /var folder on web-1 is 92% full, over the 85% threshold. A full disk can stop services from saving data.
<blockquote>Show what takes the most space in /var on web-1 and propose what to delete. Delete nothing yet.</blockquote>
<b>A security update is waiting</b>
libfoo can go from 1.2.3 to 1.2.4. The fix is available but not installed.
<blockquote>Install libfoo 1.2.4 on web-1 and confirm the new version is running.</blockquote>
Fine at the 03:00 scan: open ports, TLS certificate (61 days left).
The journalctl hint is gone because the agent can run it; every fact from the scan stayed.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub serejaris/telegram-skills --plugin telegram-skills15 skills in this plugin
/tg-bot-opsUse when running a Telegram bot in production: webhook or long polling, allowed_updates, webhook secret token, bot settings from code (setMySettings, getMe, privacy mode, callback_query_mode), botinvite links, 429 and retry_after, file retries, broadcast limits and paid broadcasts, lost updates on shutdown, a poison update after new Bot API types, t.me outage and fallback domains, local Bot API server./tg-capability-mapUse before promising a Telegram feature or designing around one: what a bot can do in Bot API, what lives only in the client or MTProto (scheduled posts, channel stats, poll stats, channel stories, folders, boosts, welcome messages, communities), and what never to promise from a bot./tg-classic-messagesUse when sending or editing ordinary Telegram bot messages: sendMessage text, MarkdownV2/HTML escaping and entities, quotes, date_time, custom emoji, link previews, photos and documents with captions, albums, upload size limits, protect_content, copy, forward, delete. Also use to choose between a classic message and a rich message./tg-markdown-to-richUse when converting an existing Markdown file or stdin into a Telegram Rich Message (InputRichMessage.markdown) for sendRichMessage, including file_id, URL, and multipart upload media bindings. Triggers: "send markdown to Telegram", "convert doc to rich message", "telegram rich message from file"./tg-miniapp-launch-authUse when choosing how a Telegram Mini App opens (keyboard, inline or menu button, main app, direct link, startapp, join request) or when a server must trust a Mini App user: validating initData by HMAC or Ed25519, signature in the check string, auth_date, isVersionAtLeast gating, origin protection, test launch links in the test environment./tg-miniapp-uiUse when building or debugging the interface of a Telegram Mini App: theme colors and dark mode, safe areas and notches, fullscreen, keyboard and viewport height, MainButton and SecondaryButton, BackButton, haptic feedback, performance on weak Android, or a layout bug that shows up only on a real iPhone, Android or Desktop client.Other plugins' skills for the same job