mdvs: Skill for Claude Code

.claude/skills/telemetry/SKILL.md

telemetry is a skill for Claude Code from edochi/mdvs. It costs 24 tokens per session (688 once invoked), scanned A, original, MIT.

A set of conventions for adding logs, traces, metrics, and other operational signals to Rust code. These signals help show what a running program is doing and where it fails or slows down.

In plain words
What is it for?
Use it when adding observability to servers, handlers, state machines, libraries, or performance-sensitive code.
Why use it?
It prevents inconsistent or overly noisy instrumentation and sets different logging expectations for errors, normal events, and internal details.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is edochi/mdvs's own configuration. It tells Claude Code how to work on mdvs 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 mdvs configures →

Reuse

Borrowing it

Nothing to install: this file belongs to edochi/mdvs. 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/edochi/mdvs/main/.claude/skills/telemetry/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/edochi/mdvs

Made for: Claude Code.

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 telemetry

README.md
[![agentmods](https://agentmods.dev/badge/skills/edochi/mdvs/telemetry/github.svg)](https://agentmods.dev/skills/edochi/mdvs/telemetry)
Your own site
<a href="https://agentmods.dev/skills/edochi/mdvs/telemetry"><img src="https://agentmods.dev/badge/skills/edochi/mdvs/telemetry/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 telemetry

Your own site · 80×15
<a href="https://agentmods.dev/skills/edochi/mdvs/telemetry"><img src="https://agentmods.dev/badge/skills/edochi/mdvs/telemetry.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 688 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.00024 $0.00688
Opus 5.5 $0.00010 $0.00275
Sonnet 5.5 $0.00005 $0.00138
Haiku 4.5 $0.00002 $0.00069

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

Security

Grade A, and why

telemetry 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 10d 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.

.claude/skills/telemetry/SKILL.md · 78 lines

How it starts

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

Telemetry & Observability Conventions

If the project has a dedicated telemetry/observability spec or conventions document, read it first — it takes precedence over the generic guidance below.

Log Levels

Level When to Use Example
error! Unrecoverable failures requiring operator attention External service call failed permanently
warn! Recoverable issues, degraded operation Retry triggered, fallback activated
info! Lifecycle events, operational milestones Server started, connection established
debug! Internal state useful during development State machine transition details
trace! Per-frame, hot-path data (high volume) Frame encoded, bytes serialized

Instrumentation Depth

Not all code deserves the same instrumentation level. Choose based on the crate's role:

  • Hot-path code (serialization, framing, tight loops): trace! only, no spans. Spans add overhead that matters here.
  • Type definition crates (pure data types, no logic): trace! only if anything at all.
  • Core business logic (servers, handlers, state machines): Full instrumentation — #[instrument] + spans.
  • Client-facing code (SDKs, CLI flows): Full instrumentation for debuggability.

#[instrument] Rules

  • Use on async functions that represent logical operations or flow steps
  • Skip on hot-path synchronous functions (serialization, encoding, tight loops)
  • Always skip sensitive fields: tokens, keys, passwords, raw payloads
  • Include identifying fields that aid correlation (IDs, resource names)
  • Set appropriate level — default is INFO, use level = "debug" or level = "trace" for noisy functions

Structured Logging

Always use named fields, never string interpolation:

Read the full file on GitHub · 78 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. 10d ago First seen · 78 lines · 24 tokens per session scan A 1cf808e9e3b6

Subscribe to this mod's changes

telemetry is a skill published in the GitHub repository edochi/mdvs (27 stars, last pushed 11d ago), licensed MIT. It adds 24 tokens to every session and 688 once invoked, about $0.0001 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-10-05.

Related

Other skills, from other repositories

rust-check

Run cargo check on the current Rust project to find compile errors.

Hmbown/CodeWhale · 15 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens

rust-crate-ci

Load before editing any Rust crate in this repo (currently runners/swarm-sandbox-runner). Covers the mandatory local validation gate, common rustfmt/clippy pitfalls, and Windows-specific Rust correctness patterns that CI enforces but are hard to catch locally without a Windows toolchain.

ZaxbyHub/opencode-swarm · 60 tokens

Agent Browser Automation

Fast Rust-based headless browser automation CLI with Node.js fallback for AI agents, featuring navigation, clicking, typing, snapshots, and structured commands optimized for agent workflows.

PramodDutta/qaskills · 37 tokens

pixiv-cli-native

Change or validate pixiv-cli Rust ugoira, cgo/FFI, committed static libraries, vendored dependencies, Linux ABI, and native runner evidence. Use when native sources, library hashes, target toolchains, or encoder behavior change; not for routine Go-only or documentation edits.

FlanChanXwO/pixiv-cli · 64 tokens

codemark

Manage structural code bookmarks that survive refactoring. Use when the user says "remember this", "bookmark this", "save this location", "load my bookmarks", "what do I have bookmarked", "mark this code", "codemark", or when starting a new session and needing to reload context from a previous session. Also use…

DanielCardonaRojas/codemark · 97 tokens