telegram-claude-codex: Skill for Claude Code

.agents/skills/self-update/SKILL.md

self-update is a skill for Claude Code, Codex from Mark-Life/telegram-claude-codex. It costs 61 tokens per session (1,392 once invoked), scanned A, original, MIT.

A procedure for changing the bot's own code and behavior, including its commands, replies, access rules, and translations. It requires checks, commits, and pushing changes before restarting the running process.

In plain words
What is it for?
Use it when the owner asks the bot to update itself, change how it replies, add a command, or roll back a change.
Why use it?
It reduces the risk that a self-update will be lost or leave the bot unavailable after an unsafe restart.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is Mark-Life/telegram-claude-codex's own configuration. It tells Claude Code and Codex how to work on telegram-claude-codex itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything telegram-claude-codex configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Mark-Life/telegram-claude-codex. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Mark-Life/telegram-claude-codex/main/.agents/skills/self-update/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Mark-Life/telegram-claude-codex

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for self-update

README.md
[![agentmods](https://agentmods.dev/badge/skills/mark-life/telegram-claude-codex/self-update/github.svg)](https://agentmods.dev/skills/mark-life/telegram-claude-codex/self-update)
Your own site
<a href="https://agentmods.dev/skills/mark-life/telegram-claude-codex/self-update"><img src="https://agentmods.dev/badge/skills/mark-life/telegram-claude-codex/self-update/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for self-update

Your own site · 80×15
<a href="https://agentmods.dev/skills/mark-life/telegram-claude-codex/self-update"><img src="https://agentmods.dev/badge/skills/mark-life/telegram-claude-codex/self-update.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,392 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.01392
Opus 5.5 $0.00024 $0.00557
Sonnet 5.5 $0.00012 $0.00278
Haiku 4.5 $0.00006 $0.00139

Measured 7d ago against content hash c58d84b18205, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

self-update scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/self-update/SKILL.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Updating the bot you are running inside

You are editing the process that is streaming your output. A restart asks the bot to stop polling and drain accepted work before it exits, but the order below is still mandatory: an edit that restarts before it commits and pushes can leave the owner with a bot that does not come back. The VPS is the only machine holding your work until you push: a commit that never reached your upstream branch (@{u}, the branch git push sends to) dies with the box.

Where things are

The bot repo is the checkout at the path your prompt names (the user's own files live at $WORK_DIR itself, beside it). Every command below runs from that repo root. Read AGENTS.md there first, then the notes in .docs/architecture/ for each area you change: they hold the rules that are easy to break.

The parts a behaviour change usually touches:

  • apps/telegram/src/handlers/ — one module per command or feature. Chat copy lives in apps/telegram/src/i18n/: ru/ holds every key, en/ must match it, so a new string goes into both.
  • apps/telegram/src/telegram/ — how a reply is rendered and streamed.
  • apps/telegram/src/access/ — who may do what. Never widen this on request without the owner saying so in the same message.
  • packages/agent/ — how a run is scheduled and how the provider is driven.

Before you write code

Prefer the cheapest place a change can live, in this order:

  1. The user's workspace: a standing rule in $WORK_DIR/AGENTS.md, or a workflow in $WORK_DIR/.agents/skills/<slug>/SKILL.md. No restart, nothing to merge.
  2. A setting the bot already reads.
  3. Code in this repo, only when neither of the above can do it.

Some paths belong to the shared upstream of this bot, and an edit there collides with every later update. Never touch them:

  • a migration you did not write in this repo, and packages/db/src/migrations/index.ts
  • apps/telegram/src/access/*
  • deploy/*
  • packages/env

If a change needs one of them, do not make it: tell the owner in one sentence that it has to come from the shared version, and stop.

Read the full file on GitHub · 130 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 130 lines · 61 tokens per session scan A c58d84b18205

Subscribe to this mod's changes

self-update is a skill published in the GitHub repository Mark-Life/telegram-claude-codex (12 stars, last pushed 5d ago), licensed MIT. It adds 61 tokens to every session and 1,392 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-23.

Related

self-update compared with skills from other repositories

self-update next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
self-updateMark-Life/telegram-claude-codexSkill125d agoMITA61Claude Code, Codex
batchasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A30Claude Code
gitasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A163Claude Code
githubHKUDS/nanobotSkill50kyesterdayMITA19Claude Code, Codex
groq-inferencesynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A77Claude Code, Codex
githubthe-open-agent/openagentSkill5.8k24d agoApache-2.0A30Claude Code, Codex
releasedevoxx/DevoxxGenieIDEAPluginSkill6962d agoMITA121Claude Code