vigil-instrument

vigil-instrument is a skill for Claude Code from tonone-ai/tonone. It costs 61 tokens per session (2,721 once invoked), scanned A, original, MIT.

Service instrumentation that adds OpenTelemetry metrics, structured logs, distributed traces, and health checks. OpenTelemetry is a common way to collect information about how software is running.

In plain words
What is it for?
Use it to add monitoring code and configuration to a service, including request-rate, error-rate, duration, logs, traces, and health endpoints.
Why use it?
It makes failures, slow requests, and unhealthy services easier to see and diagnose instead of relying on guesswork.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the TodoWrite tool; mentions Claude Code.

Part of the engineering-team plugin — 80 skills shipped together

Good fit Use it to add monitoring code and configuration to a service, including request-rate, error-rate, duration, logs, traces, and health endpoints.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tonone-ai/tonone/vigil-instrument
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 tonone-ai/tonone --skill vigil-instrument
Clone the repo
git clone --depth 1 https://github.com/tonone-ai/tonone

Made for: Claude Code.

Or install engineering-team, the plugin that ships this one along with the rest of its 80 skills.

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 vigil-instrument

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tonone-ai/tonone/vigil-instrument"><img src="https://agentmods.dev/badge/skills/tonone-ai/tonone/vigil-instrument.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,721 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.00061 $0.02721
Opus 5.5 $0.00024 $0.01088
Sonnet 5.5 $0.00012 $0.00544
Haiku 4.5 $0.00006 $0.00272

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

Security

Grade A, and why

vigil-instrument 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 17d 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.

bundle/engineering-team/skills/vigil-instrument/SKILL.md · 325 lines

How it starts

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

Instrument a Service

You are Vigil — the observability and reliability engineer from the Engineering Team.

You write the instrumentation. You don't advise on it. Given a service, you output working code and config by the end of this skill.

Step 0: Detect Stack and Existing Coverage

Read the repo before writing a single line. Check:

  • Language and framework: package.json, go.mod, requirements.txt, pyproject.toml, Cargo.toml, Gemfile
  • Existing logging: winston, pino, logrus, structlog, slog, log4j, serilog
  • Existing metrics: prometheus, @opentelemetry, opentelemetry-sdk, statsd, datadog
  • Existing tracing: OTel configs (otel, tracing, OTEL_), jaeger, honeycomb, zipkin
  • Existing health endpoints: /health, /healthz, /readiness, /liveness
  • Deployment platform: fly.toml, Dockerfile, Kubernetes manifests, render.yaml, vercel.json
  • Entrypoint file — where the app starts, so you know where to initialize OTel

Output a one-paragraph gap summary before proceeding: what exists, what's missing, what you'll add.

Step 1: Minimum Viable Instrumentation First

Before any custom spans or dashboards, establish the floor:

What goes in on day 1:

  1. OTel SDK initialized at app startup, before any other imports
  2. Auto-instrumentation for the framework (covers HTTP in/out, DB queries — don't reinstrument these manually)
  3. Structured JSON logging with trace_id, span_id, request_id, service, level, timestamp
  4. /healthz endpoint with dependency checks
  5. OTLP export configured (or stdout in dev)

This is done before any custom instrumentation. It gets you RED metrics and traces with zero manual spans.

OTel initialization order matters. If OTel is initialized after framework libraries load, those libraries get no-op tracers. Always initialize first.

Language-specific bootstrap patterns

Node.js (Express/Fastify/Hapi):

// tracing.js — must be required FIRST via node -r ./tracing.js server.js
const { NodeSDK } = require("@opentelemetry/sdk-node");
const {
  getNodeAutoInstrumentations,
} = require("@opentelemetry/auto-instrumentations-node");
const {
  OTLPTraceExporter,
} = require("@opentelemetry/exporter-trace-otlp-http");
const {
  OTLPMetricExporter,
} = require("@opentelemetry/exporter-metrics-otlp-http");
const { PeriodicExportingMetricReader } = require("@opentelemetry/sdk-metrics");

const sdk = new NodeSDK({
  serviceName: process.env.OTEL_SERVICE_NAME || "my-service",
  traceExporter: new OTLPTraceExporter({
    url: process.env.OTEL_EXPORTER_OTLP_ENDPOINT,
  }),
  metricReader: new PeriodicExportingMetricReader({
    exporter: new OTLPMetricExporter({
      url: process.env.OTEL_EXPORTER_OTLP_ENDPOINT,
    }),
    exportIntervalMillis: 30000,
  }),
  instrumentations: [getNodeAutoInstrumentations()],
});
sdk.start();

Read the full file on GitHub · 325 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. 17d ago First seen · 325 lines · 61 tokens per session scan A 4ec43499a882

Subscribe to this mod's changes

vigil-instrument is a skill published in the GitHub repository tonone-ai/tonone (76 stars, last pushed 9d ago), licensed MIT. It adds 61 tokens to every session and 2,721 once invoked, about $0.0002 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-09-27.

Related

Other skills, from other repositories

Logging and Observability Guard

Ensure code changes keep logs/metrics/traces useful for debugging failures and regressions.

s977043/river-review · 23 tokens

Failure Modes & Observability in Design

Ensure designs specify failure modes, timeouts, error contracts, and observability for critical flows.

s977043/river-review · 27 tokens

sd-debug

The disciplined debug/fix loop the generic agent runs when a sd-verify / sd-test run FAILS (/foundry:sd-debug, software-delivery debug step, step 9). A PROCEDURE — reproduce → isolate → root-cause → minimal-fix → re-verify, ONE hypothesis per iteration (NOT shotgun edits), BOUNDED so it converges (the failure is fixed…

lukasrepublic/agentic-foundry · 117 tokens

g-doctor

Read-only health diagnostics for G-Forge projects — 25 checks including hook registration, installed-copy drift, Check 23 plugin-version-lag, Check 24 CLAUDE.md injection-rule compliance, and Check 25 integration-tier guard. Recommends /plugins or /g-update by direction. Never writes.

onlygian/G-Forge · 69 tokens

g-optimize

Full-codebase or targeted performance audit. Detects algorithmic complexity problems, N+1 queries, re-render waste, resource leaks, and caching opportunities. Targeted scope produces an inline report. Whole-codebase scope produces a prioritised roadmap milestone.

onlygian/G-Forge · 54 tokens

git-advanced-workflows

Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.

wshobson/agents · 54 tokens