error-logging-instrumentation

error-logging-instrumentation is a skill for Codex from jimtin/production-ai. It costs 74 tokens per session (1,097 once invoked), scanned A, original, MIT.

A review and repair workflow for error logging in web applications, with attention to safely diagnosing failures in production.

In plain words
What is it for?
Use it to audit or improve logs, error handling, production debugging, runtime observability, and provider-specific logging in existing web apps.
Why use it?
It helps reveal missing error capture, runtime context, correlation details, alerts, or error boundaries without exposing secrets or personal data.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: $skill-name invocation.

Good fit Use it to audit or improve logs, error handling, production debugging, runtime observability, and provider-specific logging in existing web apps.

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

Made for: 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 error-logging-instrumentation

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jimtin/production-ai/error-logging-instrumentation"><img src="https://agentmods.dev/badge/skills/jimtin/production-ai/error-logging-instrumentation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,097 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.00074 $0.01097
Opus 5 $0.00037 $0.00549
Sonnet 5 $0.00015 $0.00219
Haiku 4.5 $0.00007 $0.00110

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

Security

Grade A, and why

error-logging-instrumentation 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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/logging_inventory.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/error-logging-instrumentation/SKILL.md · 64 lines

How it starts

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

Error Logging Instrumentation

Purpose

Use this skill to decide whether an existing web app has enough error logging to debug production failures safely, then patch gaps when the user asks for remediation. The default stance is Vercel-first and provider-aware: prefer the app's existing logging/error provider and Vercel runtime patterns before proposing a new vendor.

Operating Rules

  • Start from repo truth: instructions, package scripts, routes, API handlers, server actions, jobs, auth, upload/parsing surfaces, deployment config, tests, and existing logging code.
  • Use $full-app-review for broad non-mutating app audits. Use this skill for the deeper observability/error-logging workstream or for remediation.
  • Use Vercel observability patterns first when the repo is Vercel/Next.js based. Use vercel:observability for Vercel-specific logs, drains, OpenTelemetry, dashboards, and production log checks when available.
  • Do not add Sentry, Datadog, Axiom, Logtail, Honeycomb, or another provider unless the repo already uses it or the user explicitly approves.
  • Do not log secrets, PII, raw document/file contents, raw prompts, tokens, cookies, session IDs, payment details, or full provider payloads.
  • For code changes, add targeted unit, integration, and browser/E2E coverage for each changed failure path. Run $test-readiness-preflight before expensive gates.
  • Before push-readiness, run $security-threat-model for logging/privacy surfaces, dependency audit, and a repo-root scoped gitleaks scan.

Workflow

  1. Baseline the app.

    • Read repo instructions and canonical local/container gates.
    • Identify framework, deployment target, route tree, API/server actions, background jobs, auth, storage, uploads, external providers, admin paths, and tests.
    • Run scripts/logging_inventory.py <repo> --format markdown when useful for a static first pass. Treat it as evidence collection only, not a sufficiency decision.
  2. Map critical failure surfaces.

    • Use references/coverage-matrix.md.
    • Include client routes, API handlers, server actions, webhooks, cron/jobs, admin mutations, uploads/parsers, payments, auth callbacks, database migrations, provider calls, and deployment/runtime failures.
    • For each surface, record the failure, user impact, operator question, current logging/capture evidence, and missing proof.

Read the full file on GitHub · 64 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 9d ago First seen · 64 lines · 74 tokens per session scan A 11ecc5b9aa36

Subscribe to this mod's changes

error-logging-instrumentation is a skill published in the GitHub repository jimtin/production-ai (1 stars, last pushed 2mo ago), licensed MIT. It adds 74 tokens to every session and 1,097 once invoked, about $0.0004 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-08-31.

Related

Other skills, from other repositories