Agent skill

Tg Bot Ops

by serejaris in serejaris/personal-corp-os

A skill your agent uses when operating, debugging, deploying, or monitoring a Telegram bot or Telegram-to-agent gateway.

MITAuto-check: notesBackend & APIs

Install Tg Bot Ops

skills CLI
$ npx skills add serejaris/personal-corp-os --skill tg-bot-ops -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install serejaris/personal-corp-os tg-bot-ops --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/serejaris/personal-corp-os.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/tg-bot-ops .claude/skills/tg-bot-ops && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
tg-bot-ops
GitHub stars
229
Token cost
~1.6k tokens
SKILL.md length
716 words
Files
5 (incl. references, assets)
Skills in repo
36
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when operating, debugging, deploying, or monitoring a Telegram bot or Telegram-to-agent gateway.

  • Works in 10 steps: Repo and runtime — inspect entrypoints,… → Environment — verify required env var… → Update intake — classify runtime: HTTP… → …
  • Monitoring a Telegram bot
  • SKILL.md covers Public Safety, Intake, Diagnostic Flow and Telegram-To-Agent Gateways, plus 6 more sections
  • Reaches api.telegram.org; needs TELEGRAM_BOT_TOKEN

What it does

Tg Bot Ops is an agent skill from serejaris/personal-corp-os. Use when operating, debugging, deploying, or monitoring a Telegram bot or Telegram-to-agent gateway. Triggers on "telegram bot down", "bot not responding", "debug bot", "check webhook", "polling vs webhook", "restart bot", "deploy bot", "bot logs", "agent gateway", "Telegram Bot API error", "send test message", "бот не отвечает", "проверь бота", "логи бота", "перезапусти бота". Covers health checks, logs, webhook/polling diagnostics, environment validation, safe restart/deploy checklists, Bot API smoke tests…

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files and assets (for example `README.md`, `README.ru.md` and `references/hermes-gateway.md`).

It sits in Backend & APIs, covering Webhooks, Chatbots and conversational support and Deployment. It works with Telegram. The repository describes itself as: Personal Corp OS — управление личной компанией через AI-агентов: задачи вне головы, отделы вместо памяти, недельное ретро. Открытые скиллы для Claude Code и Codex. The licence is MIT.

When your agent uses it

  • Monitoring a Telegram bot
  • Telegram-to-agent gateway
  • Telegram bot down
  • Bot not responding

Example prompts

  • “telegram bot down”
  • “bot not responding”
  • “debug bot”
  • “/tg-bot-ops”

Requirements

  • Python 3
  • Docker
  • A credential in TELEGRAM_BOT_TOKEN

Workflow steps

10 steps, taken from the first numbered list in SKILL.md.

  1. Repo and runtime — inspect entrypoints, process manager, deploy files, and
  2. Environment — verify required env var names exist without printing values.
  3. Update intake — classify runtime: HTTP Bot API webhook, HTTP Bot API
  4. Bot API identity — for Bot API-token runtimes, run getMe using a masked token path.
  5. Webhook/polling mode — for Bot API-token runtimes, run getWebhookInfo
  6. Single update owner — resolve 409 Conflict by reading the error text
  7. Telegram delivery — use a fresh nonce for Bot API or Telethon/user-session
  8. Handler/runtime — prove the runtime received and processed the update.
  9. Outbound response — prove the bot sent to the expected chat/topic.
  10. Incident note — report symptom, evidence, root cause, fix, and residual risk.

What it can do on your machine

Read from SKILL.md and the folder at commit 95e36c3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.telegram.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • TELEGRAM_BOT_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Tg Bot Ops loads about 1.6k tokens when it runs, and up to ~2.4k if it reads all its reference files. Until then it costs about 150 tokens; SKILL.md has 716 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~150
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:15
    - Do not print tokens, `.env` values, connection strings, raw logs, private DMs,
  • NoteMentions a .env fileSKILL.md:132
    - Printing raw bot tokens, `.env`, logs, user messages, payment payloads, or DB rows.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from serejaris/personal-corp-os at commit 95e36c3, republished under its MIT licence (© serejaris). 716 words, ~1,585 tokens.

Download SKILL.mdSave it as .claude/skills/tg-bot-ops/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
tg-bot-ops
description
Use when operating, debugging, deploying, or monitoring a Telegram bot or Telegram-to-agent gateway. Triggers on "telegram bot down", "bot not responding", "debug bot", "check webhook", "polling vs webhook", "restart bot", "deploy bot", "bot logs", "agent gateway", "Telegram Bot API error", "send test message", "бот не отвечает", "проверь бота", "логи бота", "перезапусти бота". Covers health checks, logs, webhook/polling diagnostics, environment validation, safe restart/deploy checklists, Bot API smoke tests, forum topic delivery, privacy mode, gateway routing, and incident notes.

Telegram Bot Ops

Use this skill when the real question is whether a Telegram bot is receiving updates, processing them in the intended runtime, and sending visible responses to the right chat, user, or forum topic.

Public Safety

  • Default to read-only diagnostics.
  • Do not print tokens, .env values, connection strings, raw logs, private DMs, payment payloads, session files, or full user records.
  • Use placeholders in notes and examples: <TELEGRAM_BOT_TOKEN>, <TELEGRAM_USER_ID>, <CHAT_ID>, <TOPIC_ID>, <WEBHOOK_URL>.
  • Do not send Telegram messages, restart production services, change webhooks, edit BotFather settings, or deploy until the user has authorized that exact action.
  • If any real secret appears in the repo, logs, or prompt, stop and tell the user it must be rotated before public release.

Intake

If the repo or runtime is unclear, identify:

  • bot repo and language/runtime;
  • deployment target: local, Docker, VPS/systemd, Railway, Render, Fly, Vercel, or other;
  • update mode: webhook, polling, or unknown;
  • env source for TELEGRAM_BOT_TOKEN;
  • expected symptom, chat surface, and timestamp;
  • whether production restart/deploy is allowed.

Diagnostic Flow

  1. Repo and runtime — inspect entrypoints, process manager, deploy files, and current git state.
  2. Environment — verify required env var names exist without printing values.
  3. Update intake — classify runtime: HTTP Bot API webhook, HTTP Bot API polling, MTProto bot session, or MTProto user session.
  4. Bot API identity — for Bot API-token runtimes, run getMe using a masked token path.
  5. Webhook/polling mode — for Bot API-token runtimes, run getWebhookInfo and inspect runtime logs.
  6. Single update owner — resolve 409 Conflict by reading the error text: webhook conflict means webhook/deleteWebhook path; competing getUpdates means find the polling owner.
  7. Telegram delivery — use a fresh nonce for Bot API or Telethon/user-session E2E when user-visible behavior matters.
  8. Handler/runtime — prove the runtime received and processed the update.
  9. Outbound response — prove the bot sent to the expected chat/topic.
  10. Incident note — report symptom, evidence, root cause, fix, and residual risk.

Telegram-To-Agent Gateways

When the bot is a gateway from Telegram into an agent runtime, read references/hermes-gateway.md. The reference is Hermes-compatible but intentionally generic: bot handle, host, service name, home directory, chat ids, topic ids, env paths, and logs must be placeholders or redacted.

Bot API vs Telethon / MTProto

  • Bot API is Telegram's HTTP interface for bot tokens: getUpdates, webhooks, sendMessage, getMe, callbacks, payments, and join requests.
  • Telethon is an MTProto client. It can be a bot-account runtime with start(bot_token=...) or a user-session E2E harness for what a Telegram user sees.
  • Pick one primary intake per bot token/account: Bot API webhook, Bot API polling, MTProto bot session, or MTProto user session. Do not mix without a clear deduplication plan.
Show full SKILL.md (285 more words)Show less

Webhook And Polling Checks

Safe read-only checks should avoid putting the token-bearing URL in shell history, process listings, or copied logs. Prefer a tiny local helper:

python
import json, os, urllib.request

token = os.environ["TELEGRAM_BOT_TOKEN"]
for method in ("getMe", "getWebhookInfo"):
    with urllib.request.urlopen(f"https://api.telegram.org/bot{token}/{method}") as response:
        data = json.load(response)
    print(method, {"ok": data.get("ok"), "result_keys": sorted((data.get("result") or {}).keys())})

Do not paste the token-bearing URL into notes or issues. In reports, write:

text
getWebhookInfo: webhook_url=<set|empty>, pending_update_count=<n>, last_error=<redacted>

Direct getUpdates diagnostics can consume pending updates. Use it only with a fresh nonce, short timeout, known update owner, and restore plan.

Forum Topics And Privacy

  • Non-General forum topics require preserving message_thread_id.
  • General topic is normally sent like an ordinary supergroup message: omit message_thread_id. Preserve message_thread_id for non-General topics.
  • With privacy mode enabled, bots see targeted commands, replies to the bot, inline messages via the bot, service messages, private chats, and channel messages where they are a member. Admin bots can receive all group messages.
  • Disabling privacy or removing/re-adding a bot affects group visibility and requires explicit user authorization.

Restart / Deploy Gate

Before restarting or deploying:

  • identify the exact production owner/process;
  • capture current status and rollback command;
  • state expected downtime or risk;
  • confirm the user authorized the action;
  • run post-restart getMe, webhook/polling, and one visible smoke test.

Output Format

Answer with:

  1. Status — not checked, local only, runtime checked, verified in Telegram, or blocked.
  2. Evidence — commands/logs checked, with secrets redacted.
  3. Finding — the failing layer or confirmed healthy layer.
  4. Action — what changed or the next safe step.
  5. Public safety — note if any secret, user data, or private payload was found.

Anti-Patterns

  • Claiming "bot works" from unit tests only.
  • Printing raw bot tokens, .env, logs, user messages, payment payloads, or DB rows.
  • Changing webhook/polling mode without knowing the current production owner.
  • Running a local polling process with a production token while production is active.
  • Ignoring message_thread_id when the bot lives in Telegram forum topics.

© serejaris, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references, assets) in skills/tg-bot-ops of serejaris/personal-corp-os.

  • SKILL.md
  • README.md
  • README.ru.md
  • assets/illustration.png
  • references/hermes-gateway.md

Open the folder on GitHubat commit 95e36c3

Compare with similar skills

Tg Bot Ops next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Tg Bot Ops compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tg Bot Ops this skillserejaris/personal-corp-os229—~1.6kAutomated safety check: NotesMIT
Whatsapp Telegramericrisco/rsc-harness180—~2.9kAutomated safety check: PassMIT
Telegram Setupvellum-ai/vellum-assistant1.4k—~2.9kAutomated safety check: WarnMIT
Chat SDKdatabuddy-analytics/Databuddy1.2k—~2.6kAutomated safety check: PassAGPL-3.0
Channel Debug Corevercel-labs/vercel-openclaw-archived117—~2kAutomated safety check: NotesMIT
Telegram Development Guide2025Emma/vibe-coding-cn23k1 repos~3.7kAutomated safety check: PassMIT

Similar skills

  • Whatsapp Telegram

    ericrisco/rsc-harness

    A skill your agent uses when wiring an app or agent to message customers over the WhatsApp Cloud API or a Telegram bot — order updates, OTP codes, reminders, alerts and broadcasts — or when…

    180 GitHub stars~2.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • Telegram Setup

    vellum-ai/vellum-assistant

    Connect a Telegram bot to the Vellum Assistant gateway with automated webhook registration and credential storage

    1.4k GitHub stars~2.9k tokensUpdated yesterday
    Backend & APIsAuto-check: warnings
  • Chat SDK

    databuddy-analytics/Databuddy

    Build multi-platform chat bots with Chat SDK (chat npm package).

    1.2k GitHub stars~2.6k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Channel Debug Core

    vercel-labs/vercel-openclaw-archived

    Official

    Channel webhook triage for vercel-openclaw Slack/Telegram/Discord/WhatsApp issues: prove deployment state, collect admin readiness endpoints, build evidence-first handoff before fixes.

    117 GitHub stars~2k tokensUpdated 4 mo ago
    Backend & APIsAuto-check: notes
  • Telegram Development Guide

    2025Emma/vibe-coding-cn

    Chinese-language guide to building on Telegram: bots through the Bot API, Mini Apps in JavaScript and custom clients through TDLib, with Python examples.

    23k GitHub starsUsed in 1 repo~3.7k tokens
    Backend & APIsAuto-check passed
  • Telegram Bot Builder

    aiskillstore/marketplace

    Expert in building Telegram bots that solve real problems - from simple automation to complex AI-powered bots.

    433 GitHub starsUsed in 3 repos~2.2k tokens
    Productivity & AutomationAuto-check: notes

More from serejaris/personal-corp-os

All 36 skills in this repo
  • Weekly Planning

    serejaris/personal-corp-os

    A skill your agent uses when the user is transitioning from a completed retro into a weekly plan, choosing weekly outcomes, scheduling a full ISO week, or asking for "план на неделю", "weekly…

    229 GitHub stars~2.4k tokensUpdated 2 days ago
    Auto-check passed
  • Gh Issues

    serejaris/personal-corp-os

    A skill your agent uses when creating, searching, updating, or managing GitHub issues via CLI.

    229 GitHub stars~1.8k tokensUpdated 2 days ago
    Auto-check passed
  • Product Data Audit

    serejaris/personal-corp-os

    A skill your agent uses when auditing a product, business, or project ecosystem — analyzing data sources, decision loops, bottlenecks, and implementation contours.

    229 GitHub stars~1.3k tokensUpdated 2 days ago
    Auto-check passed
  • Audit Agent Rules

    serejaris/personal-corp-os

    Audits the agent rules in the current folder (AGENTS.md, nested AGENTS.md files) and the skill descriptions the agent sees at start, then reports what to cut, move or rewrite and edits only after…

    229 GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check passed
  • Make Landing

    serejaris/personal-corp-os

    Создаёт несколько вариантов дизайна 2D-поверхности (лендинг, герой, обложка, слайды): свой визуальный референс и автор на вариант, полный design.md с UTC/SHA-256 до кода, проверка в браузере…

    229 GitHub stars~2.1k tokensUpdated 2 days ago
    Auto-check passed
  • Safe Public Release

    serejaris/personal-corp-os

    A skill your agent uses when publishing, open-sourcing, exporting, sanitizing, or moving code, agent skills, prompts, templates, fixtures, datasets, workshop assets, or other artifacts from a…

    229 GitHub stars~3.4k tokensUpdated 2 days ago
    Auto-check: notes

Works with

Questions about Tg Bot Ops

What does Tg Bot Ops do?

A skill your agent uses when operating, debugging, deploying, or monitoring a Telegram bot or Telegram-to-agent gateway. Tg Bot Ops is an agent skill from serejaris/personal-corp-os. Use when operating, debugging, deploying, or monitoring a Telegram bot or Telegram-to-agent gateway.

When should I use Tg Bot Ops?

Tg Bot Ops fits situations like: monitoring a Telegram bot; telegram-to-agent gateway; telegram bot down; bot not responding.

How do I install Tg Bot Ops in Claude Code?

Run `npx skills add serejaris/personal-corp-os --skill tg-bot-ops -a claude-code`. Or copy the skill folder (skills/tg-bot-ops in serejaris/personal-corp-os) into .claude/skills/tg-bot-ops in your project. Claude Code loads it when a task matches its description.

How do I install Tg Bot Ops in Codex?

Run `npx skills add serejaris/personal-corp-os --skill tg-bot-ops -a codex`. Or copy the skill folder (skills/tg-bot-ops in serejaris/personal-corp-os) into .agents/skills/tg-bot-ops in your project. Codex loads it when a task matches its description.

Can I use Tg Bot Ops in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add serejaris/personal-corp-os --skill tg-bot-ops -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tg-bot-ops, .gemini/skills/tg-bot-ops, .github/skills/tg-bot-ops and .opencode/skills/tg-bot-ops in your project.

What does Tg Bot Ops need to run?

Going by SKILL.md and its folder, Tg Bot Ops needs credentials named TELEGRAM_BOT_TOKEN. Our summary lists: Python 3; Docker; A credential in TELEGRAM_BOT_TOKEN.

Does Tg Bot Ops access the network?

SKILL.md names 1 domain. In commands or code: api.telegram.org; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Tg Bot Ops safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Tg Bot Ops use?

Tg Bot Ops is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Tg Bot Ops use?

About 1.6k tokens (SKILL.md is roughly 6.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 778 tokens, read only when the agent opens those files.

What are the alternatives to Tg Bot Ops?

Skills that share tags, products or a category with Tg Bot Ops: Whatsapp Telegram (ericrisco/rsc-harness, 180 stars), Telegram Setup (vellum-ai/vellum-assistant, 1.4k stars), Chat SDK (databuddy-analytics/Databuddy, 1.2k stars) and Channel Debug Core (vercel-labs/vercel-openclaw-archived, 117 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tg Bot Ops?

serejaris (a GitHub user) maintains it in serejaris/personal-corp-os, which has 229 GitHub stars. The repository holds 36 skills in this directory. The repository was last updated on October 7, 2026.

Source: serejaris/personal-corp-os on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.