Root-Cause Triage

    by Hemanth

    1

    Enforces Zero Speculative Edits: blocks touching production code until an isolated failing reproduction test proves the exact root cause.

    Free

    3 usesSecurity scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+23 more

    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 appliedCoupon in recalculateCart() and recomputed discountAmount atomically.
    • 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files
    Listed5 days ago

    What's inside

    Frequently Asked Questions

    Unlike generic AI prompts that guess at fixes, this skill uses a "test-first" protocol. It refuses to modify your source code until it has written a deterministic test that reproduces the bug, ensuring the root cause is actually fixed rather than just masked.

    This skill is language-agnostic and integrates with any environment where you can run automated tests, including popular frameworks like Jest, Pytest, Vitest, and Playwright. It works best in projects with an existing testing suite it can build upon.

    The skill is designed to run within your existing CI/CD or local dev environment; it requires access to your test runner to execute the reproduction cases it generates. Once it has access to the codebase and the error logs, it handles the isolation and patching process automatically.

    No, this skill is specifically optimized for surgical bug fixes and deterministic logic errors. It is not intended for broad architectural refactors, UI/UX styling, or greenfield feature development where a failing test case cannot yet be defined.

    By enforcing a "no reproduction, no fix" rule, the skill ensures that every bug fix is accompanied by a permanent regression test. This prevents the "whack-a-mole" effect where fixing one bug introduces another, significantly hardening your codebase over time.

    You receive the full skill configuration compatible with major AI agent platforms, a set of integration templates for various test runners, and access to all future version updates that refine the diagnostic logic.

    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.

    Free