fold: Skill for Claude Code

.claude/skills/observability/SKILL.md

observability is a skill for Claude Code from fold-run/fold. It costs 76 tokens per session (1,388 once invoked), scanned A, original, Apache-2.0.

A development guide for changing observability data such as metrics, trace details, and audit-event fields, while keeping the related dashboard, alerts, and documentation aligned.

In plain words
What is it for?
Use it when editing gateway metrics, OpenTelemetry tracing, audit events, Grafana dashboards, Prometheus alert rules, or the documentation that defines these names.
Why use it?
It prevents dashboards from showing empty panels or alerts that can never fire because they refer to renamed or missing metrics. It also ensures new metrics are deliberately included in the monitoring setup.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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

Reuse

Borrowing it

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

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 observability

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

agentmods 80×15 button for observability

Your own site · 80×15
<a href="https://agentmods.dev/skills/fold-run/fold/observability"><img src="https://agentmods.dev/badge/skills/fold-run/fold/observability.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,388 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.00076 $0.01388
Opus 5.5 $0.00030 $0.00555
Sonnet 5.5 $0.00015 $0.00278
Haiku 4.5 $0.00008 $0.00139

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

Security

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 2mo 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/observability/SKILL.md · 117 lines

How it starts

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

Changing what fold reports about itself

Three surfaces, one rule each, and only one of them has a test.

Surface Declared in Held in lockstep by
Prometheus metrics gateway/metrics.go gateway/observability_pack_test.go, both directions
Trace attributes gateway/otel.go nothing — docs/operations.md "Tracing" is the record
Audit event fields audit/audit.go nothing — docs/operations.md "Audit events" is the record

Metrics: the pack is checked both ways

observability_pack_test.go compares the names in metrics.go against the three files that query them:

  • deploy/helm/fold/dashboards/fold-overview.json
  • deploy/helm/fold/templates/prometheusrule.yaml (prometheus-operator)
  • deploy/observability/alerts.yml (plain Prometheus, the compose stack)

Forward: every fold_* the pack references must be declared. A query naming a metric that does not exist draws an empty panel and arms an alert that can never fire — the two failure modes that look exactly like health.

Backward: every declared metric must appear somewhere in the pack, so a new one forces the question "does this belong on the dashboard" instead of shipping unobserved. metricNamesUnexercised is the escape hatch and is currently empty; adding to it should cost a reason in the diff.

And TestBothRuleFilesCarryTheSameAlerts — the two rule files are the same alerts for two deployment shapes. Change one, change the other.

Two traps in how the check reads the code

  • It extracts quoted string literals matching "fold_[a-z_]+" from metrics.go only. A name built by concatenation, or declared in another file, is invisible to the test — it will pass while shipping a metric nothing watches.
  • Histogram series are matched after stripping _bucket / _sum / _count, so query fold_request_duration_seconds_bucket freely; the base name is what must be declared.

It reads the source rather than scraping a live registry on purpose: a CounterVec with no observations exposes nothing, so a scrape would under-report exactly the metrics that have never fired.

Read the full file on GitHub · 117 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. 2mo ago First seen · 117 lines · 76 tokens per session scan A f3cb97686807

Subscribe to this mod's changes

observability is a skill published in the GitHub repository fold-run/fold (1 stars, last pushed 12d ago), licensed Apache-2.0. It adds 76 tokens to every session and 1,388 once invoked, about $0.0003 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-08-31.

Related

observability compared with skills from other repositories

observability next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
observabilityfold-run/foldSkill112d agoApache-2.0A76Claude Code
migrate-goldmark-extension-v1-to-v2yuin/goldmarkSkill5.1k4d agoMITA26Claude Code
migrate-goldmark-app-v1-to-v2yuin/goldmarkSkill5.1k4d agoMITA25Claude Code
use-modern-goJetBrains/go-modern-guidelinesSkill3.9k22d agoApache-2.0A32Claude Code
jwx-guide-v4lestrrat-go/jwxSkill2.4k3d agoMITA61Claude Code
goericrisco/rsc-harnessSkill5032d agoMITA86Claude Code, Codex
gographozgurcd/gographSkill231yesterdayMITA69Claude Code