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 skills add KhaledSaeed18/dotclaude --skill logging-and-observabilitygit clone --depth 1 https://github.com/KhaledSaeed18/dotclaudeWrote 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/khaledsaeed18/dotclaude/logging-and-observability)<a href="https://agentmods.dev/skills/khaledsaeed18/dotclaude/logging-and-observability"><img src="https://agentmods.dev/badge/skills/khaledsaeed18/dotclaude/logging-and-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.
<a href="https://agentmods.dev/skills/khaledsaeed18/dotclaude/logging-and-observability"><img src="https://agentmods.dev/badge/skills/khaledsaeed18/dotclaude/logging-and-observability.svg" alt="Reviewed on agentmods" width="80" 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.00113 | $0.01405 |
| Opus 5.5 | $0.00045 | $0.00562 |
| Sonnet 5.5 | $0.00023 | $0.00281 |
| Haiku 4.5 | $0.00011 | $0.00140 |
Grade A, and why
logging-and-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 4d 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 — 68 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Observability is the ability to ask a new question about the system's behaviour without shipping new code. Logs, metrics, and traces each answer different questions; a service needs all three, wired so that one request can be followed across them.
Logs
- Structured (JSON, one object per line) to stdout; the platform ships them. Never format strings for humans in production logs; dashboards and queries need fields.
- Standard fields on every line:
timestamp(ISO 8601 UTC),level,message,service,version,env,request_idortrace_id, and the domain ids in play (user_id,order_id). A logger bound with context (logger.child({ requestId })) so handlers do not repeat them. - Levels:
errorfor failures needing attention (paged or triaged),warnfor degraded but handled,infofor business events and request summaries (one line per request with method, path, status, duration),debugoff in production. A log aterrorthat nobody would act on is noise that hides the one that matters. - One request summary line at the boundary rather than a line per step; steps at
debug. - Never log: secrets, tokens, passwords, full card numbers, full request bodies, personal data beyond the ids needed. Redaction in the logger config (pino
redact, structlog processors), not by remembering. - Sampling for high-volume
infoand fordebugin production when needed; errors are never sampled. - Retention and cost: logs cost by volume; a noisy dependency at
infocan be the largest line item. Budget per service and review monthly.
Libraries: pino (Node), structlog or logging with a JSON formatter (Python), slog (Go), tracing (Rust).
Correlation
- A
request_idaccepted from the inbound header (X-Request-Id, or the W3Ctraceparent) or generated at the edge, put on the logger context and the response header, and forwarded on every outbound call and every enqueued job. A job carries the id of the request that created it. - With tracing enabled, the trace id serves as the correlation id; log it on every line.
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.
- 4d ago Changed · +1 lines 10a28c374db9
- 2mo ago First seen · 67 lines · 113 tokens per session scan A 88e043d4c30a
logging-and-observability is a skill published in the GitHub repository KhaledSaeed18/dotclaude (8 stars, last pushed today), licensed MIT. It adds 113 tokens to every session and 1,405 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-09-22.
logging-and-observability compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| logging-and-observabilityKhaledSaeed18/dotclaude | Skill | 8 | today | MIT | A | 113 | Claude Code |
| beweis-und-aktenanalyse-bearbeitenKlotzkette/claude-fuer-deutsches-recht | Skill | 2.0k | today | Apache-2.0 | A | 54 | Claude Code |
| gaeb-angebote-pruefenKlotzkette/claude-fuer-deutsches-recht | Skill | 2.0k | today | Apache-2.0 | A | 58 | Claude Code |
| lcx-report-bugcode-yeongyu/oh-my-openagent | Skill | 71k | today | none | A | 85 | Codex |
| ast-grepcode-yeongyu/oh-my-openagent | Skill | 71k | today | none | A | 61 | Claude Code, Codex |
| debuggingcode-yeongyu/oh-my-openagent | Skill | 71k | today | none | A | 53 | Claude Code, Codex |
| lcx-doctorcode-yeongyu/oh-my-openagent | Skill | 71k | today | none | A | 93 | Codex |