prod-debug

prod-debug is a skill for Claude Code from josephfung/trimkit. It costs 48 tokens per session (1,914 once invoked), scanned A, original, MIT.

A project-specific production debugging guide that loads database, container, and production-environment details from files in the project.

In plain words
What is it for?
Use it to load the project’s schema, services, and production environment, then investigate database queries, logs, or other production issues.
Why use it?
It prevents repeated searching for essential system context when investigating a live problem. It also points out missing setup files before debugging begins.

Skill for Claude Code

Written for Claude Code: PostToolUse hook event.

Good fit Use it to load the project’s schema, services, and production environment, then investigate database queries, logs, or other production issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/josephfung/trimkit/prod-debug
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 josephfung/trimkit --skill prod-debug
Clone the repo
git clone --depth 1 https://github.com/josephfung/trimkit

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 prod-debug

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/josephfung/trimkit/prod-debug"><img src="https://agentmods.dev/badge/skills/josephfung/trimkit/prod-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,914 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00048 $0.01914
Opus 5.5 $0.00019 $0.00766
Sonnet 5.5 $0.00010 $0.00383
Haiku 4.5 $0.00005 $0.00191

Measured 1mo ago against content hash d964d3b81484, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

prod-debug scanned grade A with 1 finding 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Health check: curl https://<domain>/api/health
skills/prod-debug/SKILL.md · 202 lines

How it starts

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

prod-debug

Invocation

Two modes:

  • /prod-debug — load context and enter debugging mode
  • /prod-debug bootstrap — (re)build schema.md and containers.md from source files

On /prod-debug

Step 1: Find project root

Determine the project root — use the current working directory, or if inside a git repo, use git rev-parse --show-toplevel.

Step 2: Check for data directory

Check whether .claude/prod-debug/config.json exists at the project root.

  • If missing: tell the user that prod-debug is not set up for this project yet, and suggest running /prod-debug bootstrap after creating .claude/prod-debug/config.json.
  • If present: continue to Step 3.

Step 3: Load context files

Read all three data files using the Read tool:

  1. {project_root}/.claude/prod-debug/schema.md
  2. {project_root}/.claude/prod-debug/containers.md
  3. {project_root}/.claude/prod-debug/prod-env.md

If any file is missing, note it and proceed with what's available.

Step 4: Check schema staleness

Run:

~/.trimkit/bin/trimkit-prod-debug-staleness {project_root}

It compares the newest migration matching migrations.glob against the prod-debug:last-migration marker in schema.md. It prints nothing (exit 0) when schema.md is current, and a one-line warning (exit 1) when it is stale or has no marker, e.g.:

[prod-debug] schema.md is stale (068_foo.sql vs 085_bar.sql) — run /prod-debug bootstrap.

If it prints a warning, include it verbatim at the top of the Step 5 announcement. If it exits 2 (or any other code), report its stderr verbatim instead: config.json or schema.md is unreadable, and the auto-sync hook is also disabled until that's fixed.

The check reads the local checkout the glob points at. Migrations merged by others don't show up until that checkout is pulled. Don't bootstrap automatically; offer to. If the script is not installed, do the same comparison by hand: newest matching migration filename vs the marker.

Read the full file on GitHub · 202 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. 1mo ago Changed · +23 lines d964d3b81484
  2. 1mo ago First seen · 179 lines · 48 tokens per session scan A b10a89aef1a3

Subscribe to this mod's changes

prod-debug is a skill published in the GitHub repository josephfung/trimkit (3 stars, last pushed 1mo ago), licensed MIT. It adds 48 tokens to every session and 1,914 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). 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

skeptical-triage

Reusable 3-round self-challenge + arbiter pattern for filtering false positives from findings/verdicts. Use when the cost of a false-positive gate block exceeds the cost of 4 extra LLM turns.

avelikiy/great_cto · 49 tokens

anti-patterns

Catalogue of known SDLC anti-patterns that greatcto agents must actively reject when reviewing architecture, plans, code, or post-mortems. Used by architect (pre-impl), pm (planning), senior-dev (impl), l3-support (post-incident).

avelikiy/great_cto · 59 tokens

observability-baseline

Scaffold-time observability so a shipped product is not blind in prod from day one — error capture (Sentry), request-id structured logging, and /healthz + /readyz endpoints. stack-baseline pins Sentry but nothing wires it; this is the wiring. Loaded by app-scaffolder (bake into the scaffold), infra-provisioner (prod…

avelikiy/great_cto · 100 tokens

dynamic-workflow-patterns

Pattern taxonomy, agent role combinations, model routing, unit-of-work sizing, review-findings settling, and resilience discipline for Claude Code dynamic workflows. ALWAYS load this skill before authoring or running any Workflow tool script, and ALWAYS load it when the user mentions "workflow" or "ultracode" in any…

alex-feel/claude-code-artifacts-public · 160 tokens

fix

Meta-skill workflow orchestrator for bug investigation and resolution. Routes to debug, implement, test, and commit based on scope.

parcadei/Continuous-Claude-v3 · 28 tokens

debug

Debug issues by investigating logs, database state, and git history.

parcadei/Continuous-Claude-v3 · 14 tokens