ai-observability-lord

ai-observability-lord is a skill for Claude Code, Codex from m3taz-ahmed/ai-globals. It costs 45 tokens per session (1,351 once invoked), scanned A, original, MIT.

A guide to recording what happens inside AI systems, including model calls, tools, retrieval, guardrails, timing, costs, errors, and data protection. OpenTelemetry and OpenInference are shared standards for collecting this tracing information.

In plain words
What is it for?
It is for adding traces and measurements to AI applications, connecting them to evaluations, detecting drift, and removing personal information from traces.
Why use it?
It helps find where an AI request went wrong and detect quality, cost, latency, or data-leak problems that ordinary application monitoring may miss.

Skill for Claude CodeCodex

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

Good fit It is for adding traces and measurements to AI applications, connecting them to evaluations, detecting drift, and removing personal information from traces.

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

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 ai-observability-lord

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/m3taz-ahmed/ai-globals/ai-observability-lord"><img src="https://agentmods.dev/badge/skills/m3taz-ahmed/ai-globals/ai-observability-lord.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,351 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.00045 $0.01351
Opus 5 $0.00023 $0.00675
Sonnet 5 $0.00009 $0.00270
Haiku 4.5 $0.00005 $0.00135

Measured 6d ago against content hash 27a98ae068b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

ai-observability-lord 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 6d 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.

skills/ai-observability-lord/SKILL.md · 62 lines

How it starts

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

AI Observability Lord

[OBJ] Instrument AI systems with standards-based tracing, evaluation integration, cost/latency/error monitoring, and drift detection — with PII-safe traces and actionable dashboards.

Problem

AI systems are opaque: a request flows through prompt construction, retrieval, LLM call, tool use, guardrails, and response formatting — any of which can degrade silently. Traditional APM (latency + error rate) cannot see inside the LLM call. Without AI-specific observability, quality degrades undetected until users complain, and root cause is untraceable.

Rules

  1. [REQ] OpenTelemetry + OpenInference. Instrument all AI components with OpenTelemetry spans using OpenInference semantic conventions. Span attributes: llm.model_name, llm.token_count.prompt, llm.token_count.completion, llm.tools, retrieval.documents, guardrail.verdict. No custom attribute names that duplicate OpenInference.
  2. [REQ] Span attributes per component. LLM spans: model, tokens, temperature, system prompt hash. Tool spans: tool name, input, output, duration. Retrieval spans: query, documents retrieved, scores. Guardrail spans: verdict (allow/deny/redact), reason, latency. Every component type has a defined attribute set.
  3. [REQ] Tracing tool selection. LangSmith (LangChain ecosystem, managed), Langfuse v4 (open-source, self-hostable, multi-framework), Arize Phoenix (open-source, local-first, LLM + traditional ML), Braintrust (eval + observability), Helicone (proxy-based, OpenAI-focused), Portkey (gateway + observability). Match tool to stack and hosting preference.
  4. [REQ] Eval integration. Traces MUST link to evaluations. Every production trace can be scored by an evaluator (LLM-as-judge, rule-based, human). Eval scores appear as span attributes. Closed-loop: traces → evals → alerts → fixes → re-eval.
  5. [REQ] Cost tracking. Track cost per request: input tokens × price + output tokens × price + tool call costs + retrieval costs. Aggregate per user, per agent, per workflow. Cost anomaly (spike >3σ) triggers alert. Cost dashboard updated in real-time.
  6. [REQ] Latency monitoring. Track latency at each span: LLM call (TTFT + total), retrieval, tool execution, guardrail, end-to-end. P50/P95/P99 percentiles. SLO: P95 < target. Latency regression in CI = block.
  7. [REQ] Error tracking. Track errors by type: LLM error (rate limit, context overflow, content filter), tool error (timeout, auth, invalid input), retrieval error (no results, index down), guardrail error (misclassification). Error rate > threshold = alert with trace link.
  8. [REQ] Drift detection. Monitor for: input drift (prompt distribution shift), output drift (response distribution shift), performance drift (eval score decline). Use statistical tests (KS test, PSI) on rolling windows. Drift detected = alert + trigger eval re-run on recent traces.
  9. [REQ] Data residency. Traces contain user prompts and responses — PII. For EU/regulated deployments, self-host the tracing backend (Langfuse, Phoenix) in-region. No trace data leaves the jurisdiction. Document data residency per deployment.
  10. [REQ] Self-hosting vs cloud. Self-host (Langfuse, Phoenix) for: data residency, cost control at scale, air-gapped environments. Cloud (LangSmith, Braintrust) for: zero ops, fast setup, managed evals. Decision documented per project with rationale.
  11. [REQ] Retention policies. Define trace retention: 30 days for debugging, 90 days for trend analysis, 1 year for audit (sampled). Auto-delete expired traces. PII traces may have shorter retention. No indefinite retention without explicit policy.
  12. [REQ] Sampling strategies. Full tracing at low volume. At high volume: head-based sampling (sample by request attributes — always trace errors, always trace slow requests, sample 10% of normal). Tail-based sampling in OTel Collector. Never sample away all errors.
  13. [REQ] PII redaction in traces. Redact PII before storage: use regex + NER-based redaction on prompt and response text. Store redacted version in trace, original in encrypted vault with separate access control. No raw PII in trace storage.
  14. [REQ] Dashboard design. Dashboards show: request volume, latency percentiles, error rate, cost per request, eval score trend, drift indicators, top failing traces. Role-based: SRE sees ops metrics, ML sees quality metrics, product sees user-facing metrics.
  15. [REQ] Alerting. Alerts on: error rate > threshold, P95 latency > SLO, cost spike >3σ, eval score drop > threshold, drift detected. Alerts include trace link, affected user count, and suggested investigation path. No alert without a runbook.
  16. [PROHIBIT] Shipping an AI system to production without tracing, cost tracking, and PII redaction — untraced AI is unaccountable AI.

Read the full file on GitHub · 62 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. 6d ago First seen · 62 lines · 45 tokens per session scan A 27a98ae068b5

Subscribe to this mod's changes

ai-observability-lord is a skill published in the GitHub repository m3taz-ahmed/ai-globals (5 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 1,351 once invoked, about $0.0002 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-06.

Related

Other skills, from other repositories

agent-platform-rag-engine-management

Manage and query Agent Platform RAG Engine Corpora and retrieve grounded contexts using the Google GenAI SDK. Use when listing RAG corpora or files, inspecting a corpus, retrieving contexts, or generating content grounded in a RAG corpus. Do not use for standard database queries (use SQL/Spanner skills), Google…

google/skills · 85 tokens

agent-platform-model-registry

Agent Platform Model Registry Management. Use when you need to upload, list, describe, update, or delete machine learning models (and their versions) in the Agent Platform Model Registry. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform models.

google/skills · 60 tokens

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens

google-cloud-solution-agentic-analytics-spark-knowledge-catalog

Discovers requirements and generates guidance to design and deploy a governed, secure agentic-analytics solution for data that's distributed across Google Cloud, other cloud providers, or on-premises. Data that's outside Google Cloud (such as data from Databricks, Snowflake, Salesforce, SAP, or Oracle systems) is…

google/skills · 138 tokens

training-check

Interactively monitor training metrics from the current Codex session, periodically checking WandB or fallback logs for NaN, divergence, plateaus, and broken runs.

wanshuiyin/Auto-claude-code-research-in-sleep · 35 tokens

nemo-automodel-launcher-config

Configure NeMo AutoModel job launches for interactive runs, Slurm clusters, and SkyPilot cloud execution.

NVIDIA/skills · 30 tokens