- Home
- Skills
- Testing & Debugging
- Root-Cause Triage
Root-Cause Triage
by Hemanth
Enforces Zero Speculative Edits: blocks touching production code until an isolated failing reproduction test proves the exact root cause.
Free
Works with the AI Agents you already use
Root-Cause Triage
Example session with this skill installed
Users report intermittent checkout totals dropping discount codes when quantity updates twice in a row. Fix the bug.
- Read your context and instructions
- Compiled the root-cause triage
1. Isolated Reproduction (Failing Test First)
Created minimal test checkout.discount.test.ts simulating addItem -> updateQty(2) -> updateQty(1).
Observed failure: expected total 850, received 1000 (discount state cleared on second updateQty call).
2. Root Cause Identified
recalculateCart() reset appliedCoupon whenever qty !== prevQty instead of recomputing discount against updated subtotal.
3. Surgical Patch & Verification
- Preserved
appliedCouponinrecalculateCart()and recomputeddiscountAmountatomically. - Re-ran
checkout.discount.test.ts: PASS (1/1) with zero unrelated files touched.
Connects securely to your tools. The creator never sees your data.
About this skill
Never let your coding agent guess-edit production code.
root-cause-triage enforces a strict 4-step Scientific Debugging Protocol (Reproduce → Isolate → Diagnose → Surgically Patch → Verify) so AI coding agents stop masking symptoms with random if != null checks or shotgun refactors.
Key Guardrails
- Zero Speculative Edits Law: Strictly forbids modifying production code until a minimal, deterministic reproduction test is written and failing.
- Root-Cause Isolation: Extracts initial state, exact triggering event, and broken invariant/boundary before proposing a fix.
- Minimal Surgical Patch: Fixes only the root defect (no unrelated refactors) and keeps the reproduction test permanently as a regression guard.
Compatibility
Works natively with Claude Code, Cursor, Codex CLI, Gemini CLI, VS Code Copilot, and Google Antigravity (SKILL.md open standard).
Part of AHR Autonomous Workflow (MIT).
Requires an environment where automated tests can run. Does not support non-deterministic bugs that cannot be reproduced in isolation.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
3 uses
Times used to date
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 5 days ago
- Free with an Agensi account
Requires
Nothing to install.
Permissions
What's inside
Frequently Asked Questions
New in Testing & Debugging
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.