telegram-claude-codex: Skill for Claude Code

.agents/skills/upstream-sync/SKILL.md

upstream-sync is a skill for Claude Code, Codex from Mark-Life/telegram-claude-codex. It costs 83 tokens per session (1,741 once invoked), scanned A, original, MIT.

A procedure for bringing changes from a shared Git repository into a fork. A fork is a separate copy of a project, and the procedure includes checks before merging changes and steps for handling conflicts and dependency files.

In plain words
What is it for?
Use it when the owner asks to update from upstream, inspect available upstream changes, merge them, resolve conflicts, and run the required checks.
Why use it?
It reduces the risk of merging unreviewed changes or leaving the running bot unable to restart after an update.

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/upstream-sync/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 upstream-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/mark-life/telegram-claude-codex/upstream-sync/github.svg)](https://agentmods.dev/skills/mark-life/telegram-claude-codex/upstream-sync)
Your own site
<a href="https://agentmods.dev/skills/mark-life/telegram-claude-codex/upstream-sync"><img src="https://agentmods.dev/badge/skills/mark-life/telegram-claude-codex/upstream-sync/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 upstream-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/mark-life/telegram-claude-codex/upstream-sync"><img src="https://agentmods.dev/badge/skills/mark-life/telegram-claude-codex/upstream-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,741 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.00083 $0.01741
Opus 5.5 $0.00033 $0.00696
Sonnet 5.5 $0.00017 $0.00348
Haiku 4.5 $0.00008 $0.00174

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

Security

Grade A, and why

upstream-sync 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/upstream-sync/SKILL.md · 183 lines

How it starts

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

Merging upstream into the bot you are running inside

This bot is a fork. The shared version lives on the upstream remote; your own branch is @{u}, the branch git push sends to. Run this only when the owner asks for it. The order below is mandatory for the same reason as in self-update: the service restarts from what is committed and pushed, and a bad merge that restarts can leave the owner with a bot that does not come back.

Every command runs from the repo root at the path your prompt names. Read AGENTS.md there first.

Before you start

All three must hold. If one does not, change nothing, tell the owner in one sentence what is wrong, and stop.

git status --porcelain          # must print nothing
git fetch
git log @{u}..HEAD --oneline    # must print nothing: no unpushed commits
git remote get-url upstream     # must succeed

A missing upstream remote is set up by the admin, not by you. Do not add it.

The loop

  1. Fetch and look at what is coming:

    git fetch upstream
    git log --oneline HEAD..upstream/main
    git rev-parse HEAD              # the pre-merge commit: keep it for rollback
    

    An empty git log means there is nothing to merge. Say so in one sentence and stop: no commit, no restart.

  2. Merge. Never rebase: your branch is pushed and a rebase rewrites it.

    git merge --no-edit upstream/main
    

    On a conflict:

    • Keep the fork's side of every conflict in code the fork changed on purpose. Read both sides; keep upstream's new lines when they do not clash with the fork's edit.
    • bun.lock: take upstream's version (git checkout --theirs bun.lock); step 5 rebuilds it.
    • A migration file this fork also has under the same name: keep upstream's and delete the fork's copy.
    • A conflict you cannot resolve with confidence: git merge --abort, report which files, and stop.
  3. Clean packages/db/src/migrations/local.ts, on a clean merge too, not only after a conflict. Drop from it every migration whose name packages/db/src/migrations/index.ts now lists, with its import. That migration came back from upstream under the same name; it is already applied and does not run again. A name in both lists fails the boot. Never edit index.ts or a migration upstream sent.

  4. Follow the upgrade guides this merge brings, in name order (YYYYMMDD-NN-slug: date, then sequence). Each is written for you, for a change that needs a step on the fork's side:

Read the full file on GitHub · 183 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 · 183 lines · 83 tokens per session scan A 7c44fe60c560

Subscribe to this mod's changes

upstream-sync is a skill published in the GitHub repository Mark-Life/telegram-claude-codex (12 stars, last pushed 5d ago), licensed MIT. It adds 83 tokens to every session and 1,741 once invoked, about $0.0003 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

upstream-sync compared with skills from other repositories

upstream-sync next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
upstream-syncMark-Life/telegram-claude-codexSkill125d agoMITA83Claude 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