ring:using-lib-observability

ring:using-lib-observability is a skill for Claude Code, Codex from LerianStudio/ring. It costs 102 tokens per session (6,594 once invoked), scanned A, original, Apache-2.0.

A guide to lib-observability, a shared Go foundation for logs, measurements, request traces, and removal of sensitive values from telemetry.

In plain words
What is it for?
Use it to configure logging, create counters or other measurements, standardize OpenTelemetry fields, and identify data that should be masked.
Why use it?
It helps replace inconsistent logging and monitoring code with common names, setup, and privacy rules across services.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to configure logging, create counters or other measurements, standardize OpenTelemetry fields, and identify data that should be masked.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lerianstudio/ring/using-lib-observability
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 LerianStudio/ring --skill using-lib-observability
Clone the repo
git clone --depth 1 https://github.com/LerianStudio/ring

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 ring:using-lib-observability

README.md
[![agentmods](https://agentmods.dev/badge/skills/lerianstudio/ring/using-lib-observability.svg)](https://agentmods.dev/skills/lerianstudio/ring/using-lib-observability)
Your own site
<a href="https://agentmods.dev/skills/lerianstudio/ring/using-lib-observability"><img src="https://agentmods.dev/badge/skills/lerianstudio/ring/using-lib-observability.svg" alt="Measured on agentmods" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,594 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 64
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
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.00102 $0.06594
Opus 5 $0.00051 $0.03297
Sonnet 5 $0.00020 $0.01319
Haiku 4.5 $0.00010 $0.00659

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

Security

Grade A, and why

ring:using-lib-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.

dev-team/skills/using-lib-observability/SKILL.md · 632 lines

How it starts

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

ring:using-lib-observability

When to use

Sweep mode:

  • "Sweep the codebase for lib-observability opportunities"
  • "Find where we use raw zap / slog instead of lib-observability/log"
  • "Audit OTel metric collectors and replace with MetricsFactory"
  • "Find hand-rolled redaction or hard-coded OTel attribute strings"

Reference mode:

  • "What does lib-observability provide for X?"
  • "How do I initialize the logger for production vs local?"
  • "What's the right way to create a counter / gauge / histogram?"
  • "Which constants ship for OTel attributes/metric names/event names?"
  • "How does redaction.IsSensitiveField decide what to mask?"

Skip when

  • Working on non-Go services
  • Working on frontend code
  • Target codebase is Ring itself (no lib-observability dependency)
  • Target package is assert/, runtime/, or tracing/ (see Related)

Similar: ring:using-assert, ring:using-runtime, ring:using-tracing, ring:using-lib-commons

assert/ is owned by [[using-assert]] (production assertions). runtime/ is owned by [[using-runtime]] (panic recovery telemetry). tracing/ is owned by [[using-tracing]] (OTel trace SDK + processor).

This skill covers the foundation layer only: log, metrics, zap, redaction, constants.


Mode Selection

Request Shape Mode
"Sweep / audit / find DIY observability" Sweep
"Replace our zap.New / slog setup with lib-observability" Sweep
"What logger interface do we use?" Reference
"How do I build a Counter with attributes?" Reference
"What constants exist for db.system etc?" Reference

SWEEP MODE

Orchestrate a 3-phase sweep. Each phase has a hard gate — do not proceed until the current phase produces its artifact.

Phase 1: Version Reconnaissance  → version-report.json
Phase 2: Multi-Angle DIY Sweep   → 5 × libobs-sweep-{N}-{angle}.json
Phase 3: Consolidated Report     → libobs-sweep-report.md + tasks.json

Phase 1: Version Reconnaissance

Read the full file on GitHub · 632 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. 4d ago First seen · 632 lines · 102 tokens per session scan A c627bdb79a18

Subscribe to this mod's changes

ring:using-lib-observability is a skill published in the GitHub repository LerianStudio/ring (211 stars, last pushed 18d ago), licensed Apache-2.0. It adds 102 tokens to every session and 6,594 once invoked, about $0.0005 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-09-03.