project-debug

Diagnose bugs through a five-phase observe-hypothesize-narrow-fix-verify debugging protocol.

Updated Apr 17, 2026
One-click install
npx skills add https://github.com/hpark0011/mirror --skill project-debug-hpark0011
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: project-debug
Source: https://github.com/hpark0011/mirror/tree/main/.agents/skills/project-debug
Command: npx skills add https://github.com/hpark0011/mirror --skill project-debug-hpark0011

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Debugging often devolves into speculative code changes, timing hacks, and shotgun fixes that mask symptoms instead of resolving root causes. This Skill enforces a disciplined, hypothesis-first workflow that prevents code changes until the root cause is confirmed. ## Core Features & Use Cases - Phased Protocol: Enforces a strict observe, hypothesize, narrow, fix, verify cycle with read-only phases before any code modification. - Visual Bug Support: Integrates Chrome MCP screenshots, DOM inspection, and computed style analysis for CSS, layout, and rendering issues. - Anti-Pattern Guardrails: Explicitly blocks setTimeout workarounds, multi-change shotgunning, and scope creep during fixes. - Use Case: A developer reports a UI flicker after a view transition. The Skill screenshots the current state, ranks hypotheses, inspects view-transition-name conflicts via Chrome MCP, confirms the root cause, and proposes a minimal CSS-only fix for approval. ## Quick Start Invoke the debugging protocol by typing /project-debug followed by a description of the bug or unexpected behavior you are investigating.

Frequently Asked Questions about project-debug

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

FAQPage Schema
How do I debug a bug systematically instead of guessing?▼

Follow a phased protocol: observe evidence read-only, rank 2-5 hypotheses by likelihood, run single-variable experiments to confirm one root cause, then implement a minimal approved fix and verify it. This prevents speculative changes that mask symptoms.

How to debug visual CSS and rendering bugs with Chrome MCP?▼

Screenshot the current state via Chrome MCP, then inspect computed styles, DOM structure, and transition states to narrow the cause. Check for view-transition-name conflicts, z-index stacking, and lazy-load re-renders, and prefer CSS-only fixes over JavaScript workarounds.

Why are setTimeout fixes considered bad debugging practice?▼

setTimeout delays execution to avoid a problem rather than solving it, making it a bandaid that hides the real render lifecycle or timing issue. The protocol requires finding the actual root cause and flags any workaround explicitly if a proper fix is not feasible.

When should code changes be made during debugging?▼

Code changes are only allowed in the fix phase, after the root cause is confirmed with high confidence through read-only observation and narrowing experiments. The developer must approve the proposed minimal change before implementation.

What happens if a debugging fix fails verification?▼

If verification fails, the protocol returns to the narrowing phase instead of iterating blindly on the same fix. Retrying the same approach is an anti-pattern; one revert means stepping back to re-investigate the hypothesis ranking.