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 orlando-japan/claude-code-setting --skill metrics-designgit clone --depth 1 https://github.com/orlando-japan/claude-code-settingWrote 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/orlando-japan/claude-code-setting/metrics-design)<a href="https://agentmods.dev/skills/orlando-japan/claude-code-setting/metrics-design"><img src="https://agentmods.dev/badge/skills/orlando-japan/claude-code-setting/metrics-design/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/orlando-japan/claude-code-setting/metrics-design"><img src="https://agentmods.dev/badge/skills/orlando-japan/claude-code-setting/metrics-design.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.00027 | $0.00983 |
| Opus 5 | $0.00014 | $0.00491 |
| Sonnet 5 | $0.00005 | $0.00197 |
| Haiku 4.5 | $0.00003 | $0.00098 |
Grade A, and why
metrics-design 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 9d 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 — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Metrics design
Metrics should answer two questions: "is it working?" and "if not, what's wrong?" Most teams emit 100 metrics and can't answer either.
Start with a framework
RED — for request-driven services
For every service endpoint / request type:
- Rate — requests per second.
- Errors — fraction of requests that failed.
- Duration — latency distribution (p50, p95, p99).
Three numbers. Covers 80% of "is the API working?"
USE — for resources
For every resource (CPU, disk, memory, thread pool, connection pool):
- Utilization — fraction of time busy.
- Saturation — queue depth / waiting work.
- Errors — errors encountered.
Answers "is something maxing out?"
The four golden signals (Google SRE)
- Latency — how long does a request take (success vs error separately).
- Traffic — how many requests.
- Errors — how many fail.
- Saturation — how full the system is.
Pick one framework per service and stick with it. Mixing creates dashboard chaos.
What a single metric needs
- A name — dot-separated or slash-separated, stable, meaningful.
api.request.duration_ms, nottimer_47. - A unit — put it in the name (
_ms,_bytes,_count). Avoids "is this seconds or milliseconds?" confusion. - Labels / tags — for slicing.
status,method,route,service. Be careful: each combination is a separate time series. - A type — counter (monotonic), gauge (snapshot), histogram (distribution). Don't use a gauge where you need percentiles.
Label cardinality
This is the biggest metrics mistake. Each unique combination of label values creates a time series. Some labels are fine; some explode your storage.
- Fine:
status(small enum),method(small),route(bounded list of endpoints). - Dangerous:
user_id,request_id,ip,session_id, full URL with query strings.
Rule of thumb: a label's cardinality should be bounded by a small constant (≤~100) or by the cluster topology (not by user count).
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.
- 9d ago First seen · 88 lines · 27 tokens per session scan A 588bdfa9044a
metrics-design is a skill published in the GitHub repository orlando-japan/claude-code-setting (2 stars, last pushed 3mo ago), licensed MIT. It adds 27 tokens to every session and 983 once invoked, about $0.0001 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
Observability with Prometheus & Grafana
Production-grade observability stack with Prometheus metrics, Grafana dashboards, PromQL query language, alerting rules, and AI-powered anomaly detection for modern cloud-native applications.
monitoring-observability
Monitoring and observability patterns for Prometheus metrics, Grafana dashboards, Langfuse v4 LLM tracing (astype, scorecurrentspan, shouldexportspan, LangfuseMedia), and drift detection. Use when adding logging, metrics, distributed tracing, LLM cost tracking, or quality drift monitoring.
sre-expert
Expert-level site reliability engineering, SLOs, incident management, and operational excellence. Use when the user mentions reliability, monitoring, incident management, SLOs, or observability, or when the task involves SRE Fundamentals, Reliability Practices, SRE Principles, or On-Call.
datadog
Full-stack observability with Datadog APM, logs, metrics, synthetics, and RUM. Use when implementing monitoring, tracing, alerting, or cost optimization for production systems.
monitoring-expert
Expert-level monitoring and observability with Prometheus, Grafana, logging, and alerting. Use when the user mentions observability, Prometheus, Grafana, logging, metrics, or alerting, or when the task involves The Three Pillars of Observability, Monitoring Fundamentals, Prometheus Configuration, or Alert Rules.
prometheus-expert
Expert-level Prometheus monitoring, metrics collection, PromQL queries, alerting, and production operations. Use when the user mentions monitoring, metrics, observability, alerting, or PromQL, or when the task involves Prometheus Architecture, Installation on Kubernetes, ServiceMonitor, or PromQL Queries.