jimtin/production-ai/error-logging-instrumentation
Claude Code and agent skill by jimtin/production-ai
- community
Checking that the SKILL.md file is still in the repository.
Vercel-first, provider-aware review and remediation workflow for web app error logging. Use when a user asks to audit, add, fix, harden, or verify logging, error capture, runtime observability, error boundaries, structured logs, correlation IDs, alerting evidence, or production debuggability in an existing web app.
Install
npx vskill@latest install jimtin/production-ai/error-logging-instrumentationSKILL.md
The same SKILL.md was published earlier as jimtin/production-ai/error-logging-instrumentation.
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-reviewfor 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:observabilityfor 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-preflightbefore expensive gates. - Before push-readiness, run
$security-threat-modelfor logging/privacy surfaces, dependency audit, and a repo-root scoped gitleaks scan.
Workflow
- 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 markdownwhen useful for a static first pass. Treat it as evidence collection only, not a sufficiency decision.
- 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.
- Evaluate sufficiency.
Logging is sufficient only when an operator can identify what failed, where it failed, why it likely failed, affected category/scope, retry/dead-letter status where relevant, and the next action without exposing sensitive data.
- Structured logs or provider events include safe context such as route/action, operation name, coarse role/tenant category, request/correlation ID where available, provider name, status code, duration, retry count, and sanitized error class/message.
- Users receive safe fallback states or sanitized errors.
- Critical failures are surfaced outside local logs through Vercel logs/drains, an existing error provider, alerting, dashboards, or documented manual log queries.
- Tests prove both the failure behavior and the expected logging/capture call where practical.
- Remediate gaps.
- Prefer existing logger/error-reporting wrappers. If none exist, add a small local wrapper instead of scattering ad hoc
console.*. - Keep logging close to the boundary that knows the useful context: route/action/job/webhook/provider adapter.
- Add redaction/normalization before logs leave the process.
- Preserve stack traces for server-side operators only; never expose internals to users.
- Add retries, timeouts, dead-letter capture, or alert routing only when the current failure mode needs it.
- Read
references/remediation-patterns.mdandreferences/privacy-redaction.mdbefore editing.
- Verify and report.
- Read
references/verification-checklist.md. - Run focused tests for changed failure paths before the full local/container gate.
- Report current instrumentation found, surfaces covered/not covered, privacy risks, alerting/monitoring evidence, commands run, coverage status, residual gaps, and any provider access limits.
Output Expectations
For audits, lead with findings ordered by severity and include evidence paths. For remediation, completion reports must include changed logging surfaces, tests added, focused test results, full local/container gate status, $security-threat-model status when push-readiness is in scope, gitleaks status, dependency audit status, and any remaining production-only validation gaps.
References
references/coverage-matrix.md: failure-surface checklist.references/privacy-redaction.md: safe and unsafe log payload rules.references/remediation-patterns.md: Vercel/Next.js-first and provider-neutral implementation patterns.references/verification-checklist.md: proof requirements.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/error-logging-instrumentation/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/jimtin/production-ai/error-logging-instrumentation)