Xpersona
D

Deep Debugging

CLAWHUB · Unverified

Evidence-first debugging and incident triage for unclear, recurring, production-like, or high-risk software bugs. Use when the user asks for root cause analy... Skill: Deep Debugging Owner: brasco05 Summary: Evidence-first debugging and incident triage for unclear, recurring, production-like, or high-risk software bugs. Use when the user asks for root cause analy... Tags: latest:2.2.0 Version history: v2.2.0 | 2026-05-15T10:57:51.560Z | user 9.5 polish: shorter core workflow, progressive incident/stack/report references, safe incident_snapshot.sh helper that prints env key n

62
Rank
84
Safety
1.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s177sz08tyrpncx75y5y4em2rn83v35v:deep-debugging
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-brasco05-deep-debugging/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

145,617 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: deep-debugging
description: Evidence-first debugging and incident triage for unclear, recurring, production-like, or high-risk software bugs. Use when the user asks for root cause analysis, says a fix did not work, reports 401/403/500 with context, deploy/runtime failures, broken integrations, or needs investigation before code changes. Do not use for obvious typos, missing installs, or trivial one-line fixes.
version: "2.2.0"
requiredEnv: []
permissions:
  - read:logs
  - read:env-keys
  - run:bash-readonly
security:
  restriction: read-only-by-default
  note: >
    This skill may inspect logs, commit metadata, dependency versions, endpoint status,
    and environment key names. Never print secrets, tokens, cookies, customer data,
    or raw production payloads. Any production write, deploy, rollback, database action,
    or external API change requires explicit user approval.
---

# Deep Debugging

**No guessing. No random fixes. Stabilize incidents first, then prove the root cause.**

## When to use

Use this skill for:
- unclear or recurring bugs
- user-facing/prod-like failures: `500`, broken login, failed deploy, red healthcheck
- auth/session bugs: `401`, `403`, cookie/JWT weirdness
- integrations/webhooks/rate limits/signature failures
- “still broken”, “same error”, “find root cause”, “debug this properly”

Do **not** use it for obvious compiler errors, typos, missing install/setup steps, or cosmetic UI tweaks.

## Operating contract

1. **Observe before editing.** No code/config changes before evidence + hypothesis.
2. **One hypothesis at a time.** If you cannot state the proof, you do not know the cause.
3. **Binary search the chain.** Split request → app → service → DB/API → response.
4. **Minimal reversible fix.** No drive-by refactors.
5. **Verify and prevent.** Test the exact failure path and document recurrence prevention.

## Workflow

```text
0. Incident Gate   → user/prod impact? stabilize first
1. Quick Triage    → obvious setup/runtime misses
2. Evidence        → exact error, repro, affected path, last change
3. Hypothesis      → one testable cause + one test
4. Narrow          → binary-search the failure chain
5. Fix             → smallest reversible change
6. Verify          → exact repro/test/build/log evidence
7. Prevent         → regression/monitoring/learning when recurring or prod-like
```

## Phase 0 — Incident Gate

If users, production, money flows, auth, data integrity, or external integrations are affected, switch to incident mode before debugging.

Output first:

```text
INCIDENT SNAPSHOT
Impact:     [who/what is affected]
Severity:   [low/medium/high/critical + why]
Started:    [time/commit/deploy if known]
Evidence:   [logs/status/metrics; redacted]
Stabilize:  [rollback, feature flag, pause job, monitor, or no-op]
Next step:  [one concrete diagnostic action]
```

Rules:
- High/critical production incidents: check rollback/feature flag before hotfix.
- Preserve evidence before redeploy/restart when po

README.md

# 🕵️ Deep Debugging

**Stop blind fixes. Stabilize incidents first. Prove root cause before changing code.**

Deep Debugging is an evidence-first protocol for AI coding agents and developers. It prevents random patch loops by forcing a clear sequence: impact → evidence → hypothesis → binary search → minimal fix → verification → prevention.

## v2.2.0 — 9.5 polish

- Shorter core `SKILL.md` for lower context cost.
- Progressive references for incident, stack-specific, and report templates.
- Safe `scripts/incident_snapshot.sh` helper that prints metadata and env **key names only**, never secrets.
- More stack-neutral workflow while keeping optional NestJS/Next.js/Prisma/Auth/Webhook checklists.
- Explicit `Next optimization:` rule so remaining improvement potential is not hidden.

## Use it for

- unclear or recurring bugs
- failed deploys, red healthchecks, production-like failures
- `401`, `403`, `500`, broken login/session flows
- external API/webhook failures
- bugs where previous fixes did not hold

## Do not use it for

- obvious typos/compiler-pointed syntax errors
- missing install/setup steps
- trivial one-line route/config fixes
- cosmetic UI tweaks

## Core workflow

```text
Incident Gate → Quick Triage → Evidence → Hypothesis → Binary Search → Minimal Fix → Verification → Prevention
```

**Rule:** if you cannot state the proof, you do not know the cause yet. Never copy real tokens, cookies, credentials, customer data, or production secrets into reports.

---

*by brasco05 · evidence-first debugging for OpenClaw/ClawHub agents*

_meta.json

{
  "ownerId": "kn7707zn5z1t2d8sjtmhhkwcan83vs6a",
  "slug": "deep-debugging",
  "version": "2.2.0",
  "publishedAt": 1778842671560
}

references/incident-first.md

# Incident-First Debugging Reference

Use this when the failure is production-like, user-facing, money/auth/data related, or caused by a deploy/config/provider change.

## Severity guide

| Severity | Use when | Default posture |
|---|---|---|
| low | local/staging, easy workaround | debug normally |
| medium | limited users/flow affected | minimal fix, monitor |
| high | major user flow broken, auth broken, repeated 500s | stabilize first, approval for risky actions |
| critical | data loss/security/payment outage/broad outage | rollback/disable first, preserve evidence |

## 5-minute incident triage

```text
□ Environment: prod, staging, local?
□ Impact: users, tenants, money, auth, data, integrations?
□ Start: exact time, commit, deploy, config, migration, provider event?
□ Current state: error rate, healthcheck, logs, queue backlog?
□ Safety: data loss, auth leak, credential exposure, duplicate side effects?
□ Rollback path: last known good version/config? feature flag? pause job?
□ Evidence preserved: request ID, deploy ID, commit SHA, redacted log snippet?
```

## Stabilization choices

Prefer the least risky action that reduces harm:

1. **No-op + monitor** — if impact is low and evidence collection matters more.
2. **Feature flag / disable job** — when one feature/job causes damage.
3. **Rollback** — when a recent deploy/config is strongly correlated.
4. **Hotfix** — only when root cause is proven or rollback is worse.
5. **Manual repair** — database/data fixes require explicit approval and backup plan.

## Deploy/runtime failure checklist

```text
□ Build passed but runtime crashes? inspect start logs.
□ Healthcheck path/port/protocol changed?
□ Required env key missing or renamed? print key names only.
□ Runtime version changed? Node/Python/package manager mismatch?
□ Migration required before code? migration backward-compatible?
□ Container/host lacks file, permission, binary, or native dependency?
□ Recent dependency update changed behavior?
□ Last green deploy exists and can be restored?
```

## Live HTTP 500 checklist

```text
□ Exact endpoint/job/component and request ID captured?
□ Does stack trace point to app code, DB, network, or provider?
□ All users or specific role/input/tenant?
□ Any correlation with last deploy/config/migration/provider event?
□ Is the error deterministic with safe test data?
□ Are retries causing duplicate writes or queue explosions?
□ Is there a safe fallback/disable path?
```

## Auth/session outage checklist

```text
□ 401 vs 403 separated?
□ Login creates token/session/cookie? Do not print token.
□ Follow-up request sends token/cookie? inspect presence/header names only.
□ Signing/validation config uses same key source? never print values.
□ Cookie SameSite/Secure/domain/path changed?
□ CORS/credentials mode changed?
□ Clock skew/token expiry changed?
□ Role/tenant guard changed independently from auth?
```

## Webhook/API integration checklist

```text
□ Provider status page checked?
□ Rate limit/quo

references/output-templates.md

# Output Templates

## Standard debug report

```text
DEBUG REPORT
Failure:      [exact issue]
Root cause:   [specific cause]
Proof:        [test/log/code evidence]
Fix:          [minimal change]
Verified:     [command/test/repro result]
Prevention:   [test/monitoring/doc/learning, or "not needed" + why]
Remaining:    [risk/blocker, or "none known"]
Next optimization: [optional meaningful improvement potential]
```

## Incident snapshot

```text
INCIDENT SNAPSHOT
Impact:       [who/what is affected]
Severity:     [low/medium/high/critical + why]
Started:      [time/commit/deploy if known]
Evidence:     [logs/status/metrics; redacted]
Hypothesis:   [testable cause]
Stabilize:    [rollback, feature flag, hotfix, monitor, no-op]
Next action:  [one concrete diagnostic action]
```

## Hypothesis update

```text
HYPOTHESIS
Current:      [specific suspected cause]
Test:         [how to prove/disprove]
Result:       [passed/failed + evidence]
Decision:     [narrow further / fix / new hypothesis]
```

## After 3 failed fixes

```text
ESCALATION REPORT
What failed:      [3 attempted fixes]
Why insufficient: [evidence each did not address root cause]
Known facts:      [confirmed evidence]
Unknowns:         [missing data]
Recommended next: [one safer diagnostic path]
```

## User-facing concise summary

```text
Gefunden: [root cause in one sentence]
Gefixt: [minimal change]
Beweis: [test/log result]
Offen: [remaining risk or none]
```

Sponsored

Ads related to Deep Debugging and adjacent AI workflows.