pn-systematic-debugging

pn-systematic-debugging is a skill for Cursor from perniemann/pnCore. It costs 63 tokens per session (1,303 once invoked), scanned A, original, MIT.

A structured method for finding the root cause of a software failure instead of guessing at fixes. It investigates the code, tests, and recent changes before confirming a solution.

In plain words
What is it for?
Use it to investigate unclear failures, trace affected code, form and test hypotheses, and produce a fix plan using TDD, or test-driven development.
Why use it?
It reduces repeated guess-and-check fixes for bugs, failed builds, broken tests, and intermittent problems.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the pn-core plugin — 133 skills, 19 commands, 9 agents, 1 MCP server shipped together

Good fit Use it to investigate unclear failures, trace affected code, form and test hypotheses, and produce a fix plan using TDD, or test-driven development.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/perniemann/pncore/pn-systematic-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 perniemann/pnCore --skill pn-systematic-debugging
Clone the repo
git clone --depth 1 https://github.com/perniemann/pnCore

Made for: Cursor.

Or install pn-core, the plugin that ships this one along with the rest of its 133 skills, 19 commands, 9 agents, 1 MCP server.

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 pn-systematic-debugging

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/perniemann/pncore/pn-systematic-debugging"><img src="https://agentmods.dev/badge/skills/perniemann/pncore/pn-systematic-debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,303 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.00063 $0.01303
Opus 5.5 $0.00025 $0.00521
Sonnet 5.5 $0.00013 $0.00261
Haiku 4.5 $0.00006 $0.00130

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

Security

Grade A, and why

pn-systematic-debugging 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.

2. **Scripted HTTP** (`curl` / small script) against a dev server for API regressions.
packages/pn-core-mcp/content/skills/discipline/pn-systematic-debugging/SKILL.md · 98 lines

How it starts

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

Systematic debugging

When to use

  • A test, build, or runtime failure with unclear cause
  • User reports "this is broken" or "why does this fail?"
  • Intermittent or hard-to-reproduce bugs

Triage mode (default when bug is reported)

When the user reports a bug or failure, enter triage mode:

  1. One question maximum. Ask ONE question at most to clarify the problem, then immediately investigate the codebase. Do not ask follow-up questions — explore first.
  2. Investigate deeply before asking anything else:
    • Trace the relevant code path using Octocode lspCallHierarchy, lspGotoDefinition, and lspFindReferences when available.
    • Look at related source files, existing tests, and recent changes (git log on relevant files).
    • Find where the bug manifests, what code path is involved, and why it fails (root cause, not symptom).
  3. Identify the fix approach based on investigation: minimal change, modules affected, behaviors to verify.
  4. Output structured root cause analysis — see Output section below.

Phase 0 — Feedback loop (before hypotheses)

Spend disproportionate effort here. Without a fast pass/fail signal, bisection and hypothesis testing cannot land.

Construct one deterministic feedback loop before Phase 1 (Reproduce), trying roughly this order until one works:

  1. Failing automated test at the seam that reaches the bug (unit or integration).
  2. Scripted HTTP (curl / small script) against a dev server for API regressions.
  3. CLI invocation with fixture input; diff stdout/stderr against a snapshot.
  4. Replay artifact — captured request, payload, or event log replayed through the code path.
  5. Throwaway harness — minimal subset of the system exercising one path with one call.
  6. Property or fuzz loop when output is nondeterministic — narrow until failure mode appears.
  7. git bisect run when regression window is bounded by known-good and known-bad commits.

Iterate on the loop until it is fast (seconds, not minutes) and sharp (asserts the symptom, not “did not crash”). For flaky bugs, raise reproduction rate before debugging logic.

Read the full file on GitHub · 98 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 First seen · 98 lines · 63 tokens per session scan A 2437c5b387cf

Subscribe to this mod's changes

pn-systematic-debugging is a skill published in the GitHub repository perniemann/pnCore (0 stars, last pushed 2d ago), licensed MIT. It adds 63 tokens to every session and 1,303 once invoked, about $0.0003 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-09-03.