telegram-claude-codex: Skill for Claude Code

.agents/skills/observability/SKILL.md

observability is a skill for Claude Code, Codex from Mark-Life/telegram-claude-codex. It costs 114 tokens per session (5,403 once invoked), scanned A, original, MIT.

A guide for adding observability to TypeScript services. Observability means recording logs, traces, and measurements that help explain what happened during a request or background job.

In plain words
What is it for?
It helps design wide event records, tracing spans, metrics, OpenTelemetry export, and sampling for requests or jobs.
Why use it?
It provides a consistent way to capture outcomes and useful context, making production failures and performance issues easier to investigate.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; installed under .agents/ (shared by several agents).

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/observability/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 observability

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mark-life/telegram-claude-codex/observability"><img src="https://agentmods.dev/badge/skills/mark-life/telegram-claude-codex/observability.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,403 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.00114 $0.05403
Opus 5.5 $0.00046 $0.02161
Sonnet 5.5 $0.00023 $0.01081
Haiku 4.5 $0.00011 $0.00540

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

Security

Grade A, and why

observability 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.agents/skills/observability/SKILL.md · 492 lines

How it starts

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

Observability

Record what happened to this request, not what the code is doing. One canonical record per unit of work, carrying every dimension you would want to group by later. Run each section's Check before calling the instrumentation done.

One wide event per unit of work

A request, job, or run emits exactly one rich record — a wide event, or canonical log line. Capture the immutable facts before the work starts, accumulate the outcome into a mutable record as it runs, emit where every path converges. In imperative code that is finally, over an accumulator declared beside the frozen context (telegram-claude, src/bot.ts):

// Wide-event context captured up front so every return path emits once.
const meta: RunEventMeta = { runId: crypto.randomUUID(), userId, provider,
  project, promptChars: prompt.length, queueDepth: state.queue.length };
const rec: RunRecord = { outcome: "done", costUsd: null, turns: null,
  totalTokens: null, durationMs: null, sessionId: sessionId ?? null };

try {
  /* … the work, folding results into `rec` … */
} catch (e) {
  rec.outcome = "errored";
  rec.errorClass =
    (e as { _tag?: string })?._tag ?? (e as Error)?.name ?? "ProviderCrashed";
  rec.errorMessage = clipError(String((e as Error)?.message ?? e));
} finally {
  await emitRunEvent(rec, meta);
}

In Effect, Effect.onExit is the equivalent and covers interrupts too, reading the accumulated Refs so a SIGINT still emits a complete row (factory, packages/orchestrator/src/orchestrator.ts, restyled from nested flatMap):

Effect.onExit((exit) =>
  Effect.gen(function* () {
    yield* recordRun({
      ctx,
      result: yield* Ref.get(outcomeRef),
      parked: yield* Ref.get(parkedRef),
      interrupted: Exit.hasInterrupts(exit),
    });
  })
)

Stamp a marker so sinks, tests, and log tooling can select the event among everything else the process prints — event: "factory.run", event: "telegram.run" — one exported constant, the single filter key.

Read the full file on GitHub · 492 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 492 lines · 114 tokens per session scan A dab08eb23fc0

Subscribe to this mod's changes

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

observability compared with skills from other repositories

observability next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
observabilityMark-Life/telegram-claude-codexSkill125d agoMITA114Claude Code, Codex
groq-inferencesynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A77Claude Code, Codex
accessyaniv-golan/cc-telegram-plusSkill18mo agoMITA43Claude Code
configureyaniv-golan/cc-telegram-plusSkill18mo agoMITA56Claude Code
cookie-debuggingasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A71Claude Code, Codex
tmuxHKUDS/nanobotSkill50kyesterdayMITA20Claude Code, Codex
kpi-reportingasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A54Claude Code, Codex