Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/clade-observability

@0d57af8
Run it yourself

Monitor Claude API calls — log tokens, latency, costs, errors, and Use when working with observability patterns. set up alerts for production Claude integrations. Trigger with "anthropic monitoring", "claude observability", "track claude usage", "anthropic logging".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/clade-observability

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesone-pager.md

≈475 tokens on demand. Your agent reads this file only when SKILL.md points to it.

clade-observability — One-Pager

Monitor every Claude API call with structured logging for tokens, latency, costs, and errors.

The Problem

Anthropic does not provide detailed API-level logging or per-request cost tracking. Without instrumentation, teams cannot answer basic operational questions: what is our p95 latency, how much are we spending per feature, which requests are failing, and are we approaching rate limits? Problems surface as surprise bills or user-facing outages instead of early alerts.

The Solution

This skill provides a drop-in logging wrapper (trackedCreate) that captures tokens, latency, cost estimates, and errors for every Claude API call. It includes a cost estimation function with per-model pricing (Haiku/Sonnet/Opus), a metrics table with alert thresholds for error rate, p95 latency, daily cost, and 429/529 rates, plus guidance on using the Anthropic console for spending limits.

Who / What / When

Aspect Details
Who Teams running Claude in production who need operational visibility
What Instruments every messages.create() call with structured logs covering tokens, latency, cost, model, and errors
When Before going to production, or when debugging cost/latency/error issues in an existing deployment

Key Features

  1. trackedCreate Wrapper — Drop-in replacement for client.messages.create() that logs timestamp, model, token counts, cache hits, duration, stop reason, and estimated cost
  2. Per-Model Cost Estimation — estimateCost() function with current Opus/Sonnet/Haiku pricing per million tokens for accurate spend tracking
  3. Alert Threshold Table — Six key metrics (error rate, p95 latency, daily cost, 429 rate, 529 rate, token budget) with recommended thresholds for production alerting

Quick Start

See SKILL.md for full instructions.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides a structured logging wrapper for Claude API integrations to track tokens, latency, and costs. No security issues or malicious patterns were detected.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
What it can do
Reads files Edits files
version
1.1.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "saas",
  "anthropic",
  "claude",
  "monitoring",
  "observability"
]
All 3 allowed tools
ReadWriteEdit
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/clade-observability