Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/mark-life/agent-skills/observabilitynpx skills add Mark-Life/agent-skills --skill observabilitygit clone --depth 1 https://github.com/Mark-Life/agent-skillsWrote 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.
[](https://agentmods.dev/skills/mark-life/agent-skills/observability)<a href="https://agentmods.dev/skills/mark-life/agent-skills/observability"><img src="https://agentmods.dev/badge/skills/mark-life/agent-skills/observability.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00114 | $0.05406 |
| Opus 5 | $0.00057 | $0.02703 |
| Sonnet 5 | $0.00023 | $0.01081 |
| Haiku 4.5 | $0.00011 | $0.00541 |
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 5d 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.
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.
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.
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.
- 5d ago First seen · 492 lines · 114 tokens per session scan A 3152f13520c9
observability is a skill published in the GitHub repository Mark-Life/agent-skills (2 stars, last pushed 21d ago), licensed MIT. It adds 114 tokens to every session and 5,406 once invoked, about $0.0006 per session on Opus 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-08-31.
Other skills, from other repositories
ralplan
Consensus planning entrypoint that auto-gates vague ralph/autopilot/team requests before execution.
remember
Review reusable project knowledge and decide what belongs in project memory, notepad, or durable docs.
embedding-strategies
Select and optimize embedding models for semantic search and RAG applications. Use when choosing embedding models, implementing chunking strategies, or optimizing embedding quality for specific domains.
docx-comment-reply
Reply to comments (批注) in Word .docx/.doc files: extract comment context, draft replies, write threaded replies back, and validate OOXML.
explaining-machine-learning-models
Explain trained machine learning models through feature attribution, local explanations, and behavior summaries. Use as an explicit/manual helper once a model already exists, not for training ownership, leakage auditing, or general ML strategy selection.
nw-ddd-eventsourcing
Event Sourcing and CQRS as DDD implementation patterns — when to use, aggregate event streams, projections, snapshots, sagas, upcasting, conflict resolution.