progressive-bug-hunter

Localize and diagnose bugs using tiered grep-to-graph retrieval without editing code.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/Jin9/skillify-foundation --skill progressive-bug-hunter-jin9
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: progressive-bug-hunter
Source: https://github.com/Jin9/skillify-foundation/tree/main/plugins/ticket-to-mr/skills/progressive-bug-hunter
Command: npx skills add https://github.com/Jin9/skillify-foundation --skill progressive-bug-hunter-jin9

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Debugging a large codebase often means dumping entire files into context, which is slow, expensive, and error-prone. This Skill localizes and diagnoses a bug by retrieving only the minimal sufficient code context, escalating from cheap text search to structural graph traversal only when needed. ## Core Features & Use Cases - Tiered retrieval ladder: Start with agentic grep/ripgrep on stack-trace anchors, escalate to symbol/call-graph traversal and AST-aligned spans, then broad iterative search only if the locus stays unknown. - Structured diagnosis report: Produces ranked suspect file:line locations, a root-cause hypothesis with quoted evidence, a P0–P4 severity rating, and a minimal context bundle for a fixer. - Cache-aware ordering: Orders retrieval so the stable prompt prefix stays cacheable, keeping each iteration fast and cheap. - Use Case: Given a failing test or stack trace, trace the root cause across a repository and hand off an auditable diagnosis report — without loading the whole codebase or writing any fix. ## Quick Start Use the progressive-bug-hunter skill to localize the root cause of this failing test from its stack trace and produce a diagnosis report.

Frequently Asked Questions about progressive-bug-hunter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I localize a bug from a stack trace without reading the whole repo?▼

Parse the stack trace into anchors (file:line frames, exception type, identifiers), then run targeted ripgrep searches on those anchors and read only the small spans they point to. Escalate to symbol-graph traversal only if grep finds where but not why.

Is grep better than vector search for bug localization?▼

Agentic grep fails loudly — an empty result is a clean signal — while dense-vector RAG can silently return a plausible-but-wrong neighbor that corrupts reasoning. This skill starts lexical and never builds an embedding index, treating any existing index only as a hint to verify.

Does this skill fix the bug or open a pull request?▼

No. It stops at diagnosis: a report with ranked suspect locations, a root-cause hypothesis with evidence, a P0–P4 severity, and a minimal context bundle. The bundle is handed off to a separate coding skill for the actual fix.

What tools are required to run the bug localization workflow?▼

You need ripgrep or grep, find, file reading, and optionally a definition-listing tool like tree-sitter. An optional stdlib-only Python script parses stack traces into prioritized seed queries. No vector index or network access is required.

How is the P0–P4 severity rating assigned to a diagnosed bug?▼

Severity is read from observable evidence: failure kind, security reachability, blast-radius from graph traversal, and workaround availability. It is kept separate from diagnostic confidence, and if business context is needed to finalize the band, the rating is marked provisional.