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

Debugging And Error Recovery

skill-hsienw-ai-agent-engineering-playbook-debugging-and-error-recovery · by HsienW

Guide systematic root-cause debugging. Use when tests fail, builds break, runtime behavior is unexpected, logs show errors, or repeated fixes are not resolving the same issue.

No reviews yet
0 installs
0 views
view→install

Install

$ agentstack add skill-hsienw-ai-agent-engineering-playbook-debugging-and-error-recovery

✓ 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-hsienw-ai-agent-engineering-playbook-debugging-and-error-recovery)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
16d 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 And Error Recovery? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Debugging and Error Recovery

Skill Interface

  • Name: debugging-and-error-recovery.
  • Description: Guide systematic root-cause debugging when tests fail, builds break, runtime behavior is unexpected, logs show errors, or repeated fixes do not resolve the same issue.
  • Parameters: Exact symptom, failing command or workflow, inputs, outputs, logs, timestamps, environment details, recent diffs, and available reproduction or verification commands.
  • Instructions: Use this skill before changing code for an unclear failure. Reproduce the issue, identify the failing layer, test one hypothesis at a time, preserve evidence, and re-run the original reproduction after the fix.

Prove the failure before changing code. Keep the investigation narrow until the failure layer is known.

Triage

  1. Capture the exact symptom, command, input, output, timestamp, and environment.
  2. Reproduce with the smallest reliable case.
  3. Identify the failing layer: UI rendering, state management, transport,

validation, domain logic, persistence, provider, tool execution, synthesis, or infrastructure.

  1. Compare expected and actual structured data.
  2. Form one hypothesis and test it.
  3. Fix the root cause.
  4. Re-run the original reproduction and adjacent regression checks.

Stop Rules

Stop local patching and re-evaluate when:

  • Two fixes fail to resolve the same symptom.
  • A fix for one case breaks another case.
  • The failure appears to move between layers.
  • Passing requires more special cases or prompt examples.
  • Mocks pass but real runtime behavior still fails.

Evidence to Preserve

  • Failing test output.
  • Minimal input and actual output.
  • Relevant logs or traces.
  • Diff between previous and current structured data.
  • The command used to verify the fix.

Recovery Rules

  • Do not delete failing tests to get green output.
  • Do not weaken assertions without explaining why the old expectation was wrong.
  • Do not ignore caught errors unless the behavior is intentional and tested.
  • Do not mask race conditions with fixed sleeps.
  • Do not claim a live integration is fixed when only a mock was tested.

Final Check

Report what failed, what changed, what evidence proves the fix, and what remains unverified.

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.