vc-debug

Diagnose bugs and system failures through root-cause investigation before applying fixes.

2|Updated Sep 15, 2025
One-click install
npx skills add https://github.com/marsley01/Marsley-Portfolio-Web --skill vc-debug-marsley01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vc-debug
Source: https://github.com/marsley01/Marsley-Portfolio-Web/tree/main/.agents/skills/vc-debug
Command: npx skills add https://github.com/marsley01/Marsley-Portfolio-Web --skill vc-debug-marsley01

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Random guess-and-check fixes waste hours and introduce new bugs. This Skill enforces a systematic debugging discipline: investigate the root cause first, fix at the source, validate at every layer, and verify with fresh evidence before claiming anything is done. ## Core Features & Use Cases - Four-Phase Systematic Debugging: Root cause investigation, pattern analysis, hypothesis testing, and implementation, with explicit red flags that stop premature fixes. - System-Level Investigation: Five-step methodology for server incidents, CI/CD pipeline failures (via gh CLI log analysis), database issues, and performance degradation. - Defense-in-Depth & Verification: Add validation at entry, business logic, environment, and instrumentation layers, plus an iron law requiring fresh command output before any completion claim. - Use Case: A test suite creates a stray .git directory in your source tree. Use the root-cause tracing technique and the included find-polluter.sh bisection script to identify the exact polluting test, then fix the empty-path bug at its source. ## Quick Start Ask the AI to debug a failing test or investigate a CI failure using systematic root-cause analysis instead of guessing at fixes.

Frequently Asked Questions about vc-debug

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

FAQPage Schema
How do I debug a failing test systematically instead of guessing?

Follow the four-phase framework: investigate the root cause by reading errors and reproducing consistently, analyze patterns against working code, test one hypothesis with a minimal change, then implement a single fix with a failing test case. Never apply fixes before completing root-cause investigation.

How to find which test is polluting shared state or creating files?

Use the included find-polluter.sh bisection script with the polluted path and a test file pattern. It runs each test individually and stops at the first one that creates the unwanted file or directory, identifying the exact polluter.

How do I analyze GitHub Actions CI/CD pipeline failures?

Use the gh CLI to list recent runs, view failed job logs with gh run view --log-failed, and match errors against common patterns like environment differences, flaky tests, timeouts, or secret misconfiguration. Correlate failures with recent commits and config changes.

Does this debugging approach work for performance issues and slow queries?

Yes, it includes a performance diagnostics reference covering bottleneck identification across network, application, database, and filesystem layers. It provides PostgreSQL queries for pg_stat_statements, EXPLAIN ANALYZE usage, and a prioritized optimization strategy.

When should I not claim a bug is fixed?

Never claim completion without fresh verification evidence. The verification protocol requires running the actual test or build command, reading the full output and exit code, and only then stating the result with that evidence attached.