monorepo: Skill for Codex

.agents/skills/diagnosing-bugs/SKILL.md

diagnosing-bugs is a skill for Codex from lootlog/monorepo. It costs 40 tokens per session (1,921 once invoked), scanned A, a copy of diagnosing-bugs, MIT.

A structured process for finding the cause of difficult bugs and performance problems. It starts by creating a clear check that reliably passes or fails for the reported problem, then tests possible causes against the code.

In plain words
What is it for?
Use it for broken, failing, throwing, or slow behavior, using tests, HTTP scripts, command-line checks, browser automation, or replayed traces where appropriate.
Why use it?
Without a repeatable way to reproduce a problem, debugging becomes guesswork. A tight feedback loop makes it easier to isolate the cause and confirm the fix.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is lootlog/monorepo's own configuration. It tells Codex how to work on monorepo itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything monorepo configures →

Reuse

Borrowing it

Nothing to install: this file belongs to lootlog/monorepo. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/lootlog/monorepo/main/.agents/skills/diagnosing-bugs/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/lootlog/monorepo

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 diagnosing-bugs

README.md
[![agentmods](https://agentmods.dev/badge/skills/lootlog/monorepo/diagnosing-bugs.svg)](https://agentmods.dev/skills/lootlog/monorepo/diagnosing-bugs)
Your own site
<a href="https://agentmods.dev/skills/lootlog/monorepo/diagnosing-bugs"><img src="https://agentmods.dev/badge/skills/lootlog/monorepo/diagnosing-bugs.svg" alt="Measured on agentmods" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,921 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 95% copy Near-identical to another mod 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.00040 $0.01921
Opus 5 $0.00020 $0.00960
Sonnet 5 $0.00008 $0.00384
Haiku 4.5 $0.00004 $0.00192

Measured yesterday against content hash 0fe88126ee6e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

diagnosing-bugs 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 yesterday.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/hitl-loop.template.sh), 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.

Makes network callslowCapability

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

When a loop is practical, establish that it is **tight** and **red-capable**: you can name **one command** — a script path, a test invocation, a curl — that you have **already run at least once** (paste the invocation an
Origin

This is a copy

95% identical to diagnosing-bugs — 82 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/diagnosing-bugs/SKILL.md · 131 lines

How it starts

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

Diagnosing Bugs

A discipline for hard bugs. Scale the investigation to the defect and explain when a phase is impractical or unnecessary. Follow AGENTS.md for permissions, running applications, and required verification.

When exploring the codebase, read CONTEXT.md (if it exists) to get a clear mental model of the relevant modules, and check ADRs in the area you're touching.

Phase 1 — Build a feedback loop

Prefer a focused pass/fail signal that catches the reported bug. Use code inspection to locate the relevant path and build the cheapest useful reproduction; scale setup effort to the defect and available environment.

Ways to construct one — try them in roughly this order

  1. Failing test at whatever seam reaches the bug — unit, integration, e2e.
  2. Curl / HTTP script against a running dev server.
  3. CLI invocation with a fixture input, diffing stdout against a known-good snapshot.
  4. Headless browser script (Playwright / Puppeteer) — drives the UI, asserts on DOM/console/network.
  5. Replay a captured trace. Save a real network request / payload / event log to disk; replay it through the code path in isolation.
  6. Throwaway harness. Exercise the relevant code in isolation when a small harness suffices. Respect the repository rule against starting applications and keep fakes at genuine external boundaries.
  7. Property / fuzz loop. If the bug is "sometimes wrong output", run 1000 random inputs and look for the failure mode.
  8. Bisection harness. If the bug appeared between two known states (commit, dataset, version), automate "boot at state X, check, repeat" so you can git bisect run it.
  9. Differential loop. Run the same input through old-version vs new-version (or two configs) and diff outputs.
  10. HITL bash script. Last resort. If a human must click, drive them with scripts/hitl-loop.template.sh so the loop is still structured. Captured output feeds back to you.

Use the loop to distinguish causes and verify the eventual fix.

Read the full file on GitHub · 131 lines

Files

What ships with it

2 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. yesterday Changed · -4 lines 0fe88126ee6e
  2. 7d ago First seen · 135 lines · 40 tokens per session scan A c9c99f2eb6df

Subscribe to this mod's changes

diagnosing-bugs is a skill published in the GitHub repository lootlog/monorepo (10 stars, last pushed yesterday), licensed MIT. It adds 40 tokens to every session and 1,921 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 95% identical to diagnosing-bugs, differing in 82 lines, and is treated as a copy.

Related

Other skills, from other repositories

copilotkit-debug

Use when diagnosing CopilotKit issues -- runtime connectivity failures, agent not responding, streaming errors, tool execution problems, transcription failures, version mismatches, and AG-UI event tracing.

CopilotKit/CopilotKit · 42 tokens

material-ui-nextjs

Integrates Material UI with Next.js App and Pages routers using @mui/material-nextjs, Emotion cache providers, next/font, CSS layers with Tailwind/CSS Modules, Link component prop patterns, CSS theme variables SSR notes, and App Router useSearchParams + Suspense. Use when setting up or debugging MUI in a Next.js app.

mui/material-ui · 76 tokens

migrate-oxlint

Guide for migrating a project from ESLint to Oxlint. Use when asked to migrate, convert, or switch a JavaScript/TypeScript project's linter from ESLint to Oxlint.

oxc-project/oxc · 44 tokens

inspector-workbench

Runs Inspector UI work on the standalone Threads state lab so the agent can see the overlay. Use when a CopilotKit employee asks an agent to fix, polish, add, or debug Inspector UI, chrome, panes, overlay actions, launcher, Home, Threads, Playground, Memory, or any visual behavior in @copilotkit/web-inspector. Don't…

CopilotKit/CopilotKit · 112 tokens

react-doctor

Use when finishing a feature, fixing a bug, before committing React code, or when the user types /doctor, asks to scan, triage, or clean up React diagnostics. Covers lint, accessibility, bundle size, architecture. Includes a regression check and a full local-triage workflow that fetches the canonical playbook.

compozy/compozy · 70 tokens

react-doctor

Diagnose and fix React codebase health issues. Use when reviewing React code, fixing performance problems, auditing security, or improving code quality.

PostHog/posthog-foss · 32 tokens