production-debugging

production-debugging is a skill for Claude Code from Weaverse/.agents. It costs 52 tokens per session (1,345 once invoked), scanned A, original, MIT.

A guide for investigating unclear failures in production servers, edge functions, databases, and web applications. It traces the last proven boundary while avoiding retention of customer data.

In plain words
What is it for?
Use it to investigate opaque failures on Workers, D1, Prisma, Shopify, or React Router, including cases needing safe diagnostic instrumentation or read-only datastore checks.
Why use it?
Empty logs, caught errors, misleading status codes, and unreachable fixes can make a guessed solution look plausible. This guide separates missing evidence from evidence of success or failure.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to investigate opaque failures on Workers, D1, Prisma, Shopify, or React Router, including cases needing safe diagnostic instrumentation or read-only datastore checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/weaverse/.agents/production-debugging
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 Weaverse/.agents --skill production-debugging
Clone the repo
git clone --depth 1 https://github.com/Weaverse/.agents

Made for: Claude Code.

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 production-debugging

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/weaverse/.agents/production-debugging"><img src="https://agentmods.dev/badge/skills/weaverse/.agents/production-debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,345 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.00052 $0.01345
Opus 5.5 $0.00021 $0.00538
Sonnet 5.5 $0.00010 $0.00269
Haiku 4.5 $0.00005 $0.00135

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

Security

Grade A, and why

production-debugging 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 19d 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/production-debugging/SKILL.md · 84 lines

How it starts

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

Opaque production failures

Find the last proven boundary

  • Empty logs prove nothing until a known request appears under the same sampling, status filter and retention. Workers runtime outcome ok can include a caught HTTP 500. An error-only tail can miss it entirely.
  • When external state cannot distinguish the failure branches, ship a narrow diagnostic change through the normal review/release gates rather than a guessed behavioral fix. Do not make logging a reason to bypass review.
  • Compare the reported status with each catch's return value. A branch returning 503 cannot explain an observed 500. Use durable writes/artifacts as checkpoints only after excluding other writers and partial transactions.
  • On Workers, Date.now() does not advance during pure CPU execution. Compare runtime limits and I/O boundaries rather than trusting an in-process stopwatch as independent wall time.
  • A 401 is not permission to switch to a database. Use only an already-authorized read-only datastore path; report an access blocker otherwise. Do not invent diagnostic endpoints or guess private routes.

Datastore and projection evidence

  • Run the real query and binds, not a reconstruction. A returned row proves that query can read it, not that the request used the same authorization, projection or response path. Count .bind() parameters positionally.
  • Inspect effective triggers/views when an error is flattened to 404. On SQLite, read sqlite_master bodies; compare against a locally migrated schema before blaming production drift. Separate trigger aborts from constraints using runtime-produced errors, not hand-written strings that a test invented.
  • prisma db execute is not a row-returning query client. Use the application's actual driver adapter for authorized reads. ORM Unknown field can mean a stale generated client, not missing production DDL.
  • Check D1 database identifiers versus binding aliases and the selected config environment. For a missing UI failure reason, compare the projection's source tables with those the failure writer updates.
  • Sweep all authority layers: application SQL copies, views, triggers and release gates. Fixing one copy of a mirrored predicate can merely move the refusal downstream. Add joins one at a time to localize the rejected arm.
  • A null provider request ID does not prove no provider call or charge occurred; submission can precede ID persistence. Keep the operation unresolved until provider/durable evidence settles it.

Read the full file on GitHub · 84 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. 19d ago First seen · 84 lines · 52 tokens per session scan A 6fafc8508e9c

Subscribe to this mod's changes

production-debugging is a skill published in the GitHub repository Weaverse/.agents (1 stars, last pushed 19d ago), licensed MIT. It adds 52 tokens to every session and 1,345 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-11-11.

Related

production-debugging compared with skills from other repositories

production-debugging next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
production-debuggingWeaverse/.agentsSkill119d agoMITA52Claude Code
qa-checkstuartshields/claude-setupSkill26mo agoMITA41Claude Code
debug-wpstuartshields/claude-setupSkill26mo agoMITA22Claude Code
debug-rulesstuartshields/claude-setupSkill26mo agoMITA28Claude Code
debuggingstuartshields/claude-setupSkill26mo agoMITA71Claude Code, Codex
tool-usagestuartshields/claude-setupSkill26mo agoMITA47Claude Code, Codex
offensive-api-abuseSnailSploit/Claude-RedSkill12k13d agoMITB184Claude Code, Codex