Tg Reply Rewrite logo

Tg Reply Rewrite

Community
serejaris
tg-reply-rewrite

Use when a bot or agent reply, alert, log summary, or status report is about to go to Telegram and the reader is not an engineer — rewrite the text so a person on a phone understands what happened, how urgent it is, and what to do next, without changing any fact. Use tg-rich-messages for delivery.

Overview

Publisherserejaris
Repositorytelegram-skills
Skill nametg-reply-rewrite
Stars
35
Forks
4
Bundled files
Instructions only
LicenseMIT
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.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

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

Installation

Install the Tg Reply Rewrite 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/serejaris/telegram-skills/tree/main/skills/tg-reply-rewrite
  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/serejaris/telegram-skills.git /tmp/telegram-skills
mkdir -p .claude/skills
cp -r /tmp/telegram-skills/skills/tg-reply-rewrite .claude/skills/tg-reply-rewrite
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Tg Reply Rewrite 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 Tg Reply Rewrite 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 Tg Reply Rewrite 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.

tg-reply-rewrite

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-rich-messages.

Do not rewrite when the reader asked for an exact string, JSON, code, or another machine format. Pass those through unchanged. Write in the reader's language.

Rules

  1. First line: what happened and whether it is urgent. It must make sense alone, in a notification preview. Take urgency from the source; if the source gives none, judge it from the consequence; if you cannot tell, say so.
  2. One thought per block. Separate blocks with a blank line. Most urgent first.
  3. Every finding answers three questions: what happened, what it means for the reader, what to do. End it with a ready sentence the reader can copy and send to the agent. It names the target and the expected result. Destructive steps ask for a proposal first.
  4. Explain or remove jargon. Keep a technical term only when the reader needs it, and add its meaning in a few plain words on first use.
  5. Keep every fact, number, and identifier unchanged. Names, versions, dates, IDs, and links stay character for character. Never invent a cause, a number, or a consequence the source does not support. A guess in the source stays a guess, and an unproven result is not reported as done.
  6. Group long identifier lists without losing them. Show "thing: N items" and the worst two, then put the full list in a collapsed block.
  7. Commands are a last resort. Use one only when the reader has no agent to ask, and put it in code formatting with one line saying what it does.
  8. What is fine goes in one line at the end. List the checks that passed and nothing more. If everything is fine, that line is the whole message.
  9. Secrets never pass through. Rule 5 does not cover tokens, passwords, or private keys: replace them with [removed] and tell the reader one was removed.

Length

PartLimitSource
First lineabout 80 characters, 120 at mosteditorial, notification preview
Findingsup to 5 in the open text; the rest in a collapsed blockeditorial
Whole messageaim for under 1 200 characterseditorial, about two phone screens
sendMessage text4 096 characters after entity parsingBot API
Rich message32 768 characters, 500 blocksBot API, see tg-rich-messages

Over the target: collapse details first. Split only as a last resort, at a block boundary.

Output format

  • Short reply, no tables: sendMessage with parse_mode: HTML. Allowed here: <b>, <i>, <code>, <pre>, <a href>, <blockquote>, <blockquote expandable>. Escape &, <, > in all dynamic text.
  • Tables or collapsed sections with headings: sendRichMessage. Use <details> for long lists. Move the body into html, markdown, or blocks as described in tg-rich-messages.
  • Bold the first line and the finding titles only.

Example (invented data)

Before:

text
[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):

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.

Frequently asked questions

What does the Tg Reply Rewrite AI skill do?

Use when a bot or agent reply, alert, log summary, or status report is about to go to Telegram and the reader is not an engineer — rewrite the text so a person on a phone understands what happened, how urgent it is, and what to do next, without changing any fact. Use tg-rich-messages for delivery.

Why use Tg Reply Rewrite on TypingMind?

Because you install it once and use it with any model. Tg Reply Rewrite 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 Tg Reply Rewrite in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/serejaris/telegram-skills/tree/main/skills/tg-reply-rewrite. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Tg Reply Rewrite?

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 Tg Reply Rewrite?

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

Is the Tg Reply Rewrite AI skill free?

Yes. It is published on GitHub by serejaris under the MIT license. 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 👇