Tg Reply Rewriteのロゴ

Tg Reply Rewrite

コミュニティ
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.

概要

公開者serejaris
リポジトリtelegram-skills
スキル名tg-reply-rewrite
スター
35
フォーク
4
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    serejarisがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Tg Reply Rewrite」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/serejaris/telegram-skills/tree/main/skills/tg-reply-rewrite
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでTg Reply Rewriteを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にTg Reply Rewriteを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Tg Reply Rewriteは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「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.

TypingMindでTg Reply Rewriteを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Tg Reply Rewriteはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにTg Reply Rewriteをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/serejaris/telegram-skills/tree/main/skills/tg-reply-rewriteを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Tg Reply Rewriteを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Tg Reply Rewriteで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもTg Reply Rewriteを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Tg Reply Rewrite」は無料ですか?

はい。serejarisがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇