AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Debugging

skill-stuartshields-claude-setup-debugging · by stuartshields

Structured debugging protocol. Use when investigating a bug, failing test, regression, unexpected behavior, or any scenario where code is not doing what it should. Trigger phrases include "broken", "not working", "bug", "error", "it worked before", "still broken", "why is this failing", "trace", or "/trace".

No reviews yet
0 installs
10 views
0.0% view→install

Install

$ agentstack add skill-stuartshields-claude-setup-debugging

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-stuartshields-claude-setup-debugging)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Debugging? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Debugging & Investigation

4-Step Framework: Reproduce → Isolate → Fix → Validate

  • Never skip to Fix. Most wrong fixes come from jumping straight to code changes.
  • Reproduce: Run the faulty scenario. Note the exact error and conditions.
  • Isolate: Narrow down the failing component. 80% of bugs live in recently modified code — start there. Compare against working code. Find similar functionality that works and diff against the broken code.
  • Validate: Run the full test suite. Confirm the error is gone AND no regressions introduced.

Validate Before Fixing

  • Confirm root cause before proposing code changes. One hypothesis at a time — test the most likely first.
  • Explain root cause in writing (file path, line number, actual vs expected behavior) before proposing code changes.
  • Test means run code, not reason in your head. Execute a command, write a failing test, or check real output.
  • Read the user's evidence first. Study screenshots/errors before forming hypotheses. The answer is usually visible.
  • Add console.error to trace actual behavior when reasoning about what code "should" do isn't working. Reading code is not observing behavior.
  • Red flag phrases. Catch yourself saying "This should work", "Let me just try...", or "Quick fix for now" — stop and re-evaluate. You're guessing.

Anti-Loop Protocol

  • Each attempt MUST use a different diagnosis. If attempt 1 failed, don't vary the fix — vary the diagnosis. Two attempts targeting the same component with the same assumption count as one diagnosis, even if the code changes differ.
  • After 2 failed fix attempts, STOP. State what you tried, what each ruled out, and ask the user for context. If the user says "still broken" twice, you've failed twice.
  • Clear polluted context. After hitting the limit, recommend /clear — failed attempts in context actively degrade subsequent reasoning.
  • Watch for oscillation. Fixing A breaks B and vice versa = contradictory constraints. Stop and surface the conflict.
  • Revert as escape hatch. When debugging spirals, revert to last known good commit rather than stacking fixes on failed attempts.

Regression Shortcut

  • "It worked before" → git bisect first. Don't read code to find regressions — bisect to the breaking commit, then read that diff.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.