metrics-design

metrics-design is a skill for Claude Code, Codex from orlando-japan/claude-code-setting. It costs 27 tokens per session (983 once invoked), scanned A, original, MIT.

A guide for choosing useful service metrics, such as request rate, errors, response time, and resource saturation.

In plain words
What is it for?
Designing or reviewing metrics for services and resources when adding monitoring or investigating observability.
Why use it?
It helps teams detect failures and diagnose causes without filling dashboards with irrelevant measurements.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Designing or reviewing metrics for services and resources when adding monitoring or investigating observability.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/orlando-japan/claude-code-setting/metrics-design
Install

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.

Any agent
npx skills add orlando-japan/claude-code-setting --skill metrics-design
Clone the repo
git clone --depth 1 https://github.com/orlando-japan/claude-code-setting

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 metrics-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/orlando-japan/claude-code-setting/metrics-design/github.svg)](https://agentmods.dev/skills/orlando-japan/claude-code-setting/metrics-design)
Your own site
<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.

agentmods 80×15 button for metrics-design

Your own site · 80×15
<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>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 983 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.00027 $0.00983
Opus 5 $0.00014 $0.00491
Sonnet 5 $0.00005 $0.00197
Haiku 4.5 $0.00003 $0.00098

Measured 9d ago against content hash 588bdfa9044a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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.

templates/extra/skills/metrics-design/SKILL.md · 88 lines

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, not timer_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).

Read the full file on GitHub · 88 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. 9d ago First seen · 88 lines · 27 tokens per session scan A 588bdfa9044a

Subscribe to this mod's changes

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.

Related

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.

bobmatnyc/mcp-skillset · 42 tokens

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.

yonatangross/orchestkit · 69 tokens

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.

personamanagmentlayer/pcl · 63 tokens

datadog

Full-stack observability with Datadog APM, logs, metrics, synthetics, and RUM. Use when implementing monitoring, tracing, alerting, or cost optimization for production systems.

bobmatnyc/claude-mpm-skills · 43 tokens

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.

personamanagmentlayer/pcl · 70 tokens

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.

personamanagmentlayer/pcl · 65 tokens