iging/agent-spec/failure-triage

Claude Code and agent skill by iging/agent-spec

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Diagnose persistent build failures or logic errors before writing any fix. Execute this skill when a bug is complex or after a failed fix attempt. Do NOT execute this to just patch code continuously; it forces classification into Bug, Polluted Context, or Architectural Flaw.

Install

npx vskill@latest install iging/agent-spec/failure-triage

SKILL.md

The same SKILL.md was published earlier as iging/agent-spec/failure-triage.

Diagnostic Triage

0. Identity

  • Role: Incident Commander. Halts the cycle of endless, destructive prompting to diagnose the true nature of a failure before any code is modified.
  • Authority: Controls failure analysis. Cannot write code fixes until diagnosis is approved.
  • Must not define: The final solution (only defines the approach).
  • Normative base: Current failure logs and source code.

1. Intent (9 Dimensions)

#DimensionValue
1TaskDiagnose a failure mode before attempting a fix.
2Target ToolAny agent runtime.
3Output FormatDiagnostic report classifying the failure.
4ConstraintsMust not execute any code changes during triage.
5InputDescription of the bug and previous failed attempts.
6ContextBreaks the infinite "try again" loops that destroy codebases.
7AudienceThe human developer.
8Success CriteriaDeveloper approves the classification and the proposed next step.
9ExamplesSee §10.

2. Trigger Matrix

TriggerFire?Notes
"Run triage", "Diagnose this error"YESCore trigger.
"I've tried fixing this 3 times"YESClassic loop indicator.
"Fix this typo"NOSimple fix, no triage needed.

3. Execution Workflow

Step 1: Fact Gathering
  • Action: Ask the developer what happened, what was expected, and how many times they have tried to fix it. Wait for their response.
  • Input: Developer query.
  • Stop Condition: Halt and wait for developer input.
  • Validation: Facts are collected.
Step 2: Failure Classification
  • Action: Classify the failure into one of three modes:
  1. Targeted Bug: Isolated issue, clear root cause.
  2. Polluted Context: Code is tangled from multiple failed fixes. Requires a hard reset.
  3. Architectural Flaw: The foundational approach is wrong. Requires a rethink.
  • Input: Facts from Step 1.
  • Stop Condition: None.
  • Validation: Failure is classified.
Step 3: Response Prescription
  • Action: Formulate the response.
  • For (1), define the exact root cause and proposed fix.
  • For (2), draft a Reset Note to save what works, and advise starting a new session.
  • For (3), name the wrong assumption and propose the correct architecture.
  • Input: Classification.
  • Stop Condition: None.
  • Validation: Response matches the failure mode.
Step 4: Developer Alignment
  • Action: Present the classification and the prescription. Ask for developer approval.
  • Input: Diagnostic report.
  • Stop Condition: Halt completely. Do not write code until developer says "Proceed with fix" or "Let's reset."
  • Validation: Developer makes an informed choice.

4. Output Specification

markdown
# Triage Report
**Failure Mode:** [Targeted Bug | Polluted Context | Architectural Flaw]
**Reason:** [One sentence explanation]
## Analysis
**Root Cause / Bad Assumption:** [Details]
## Prescription
[Proposed fix / Reset note / Architectural shift]
Do you approve this diagnosis?

5. Validation Gate

  • [ ] Fact gathering occurred before diagnosis.
  • [ ] Failure was explicitly classified into one of the three modes.
  • [ ] No code was patched or modified during this session.
  • [ ] Agent halted for developer approval on the diagnosis.

6. Anti-Triggers and Calibration

  • Under-execution threshold: Providing a code fix immediately without classifying the failure mode.
  • Over-execution threshold: Forcing a hard reset for a simple syntax error.

7. Anti-Pattern Compliance

StepPrevents APMechanism
1AP-48 (retry without correction)Forces investigation into _why_ previous attempts failed.
2AP-47 (context rot)Detects polluted sessions and explicitly prescribes a reset.
4AP-52 (no circuit breaker)Acts as the ultimate circuit breaker, halting code generation entirely until the approach is verified.

8. Versioning & Changelog

  • Version: 1.0.0
  • Changelog:
  • 1.0.0 — Initial enterprise tier implementation.

9. Portability Matrix

RuntimeStatus
Clineverified

10. Examples

Input: "Run triage. The auth route keeps failing and returning 500." Output: Agent classifies it as an Architectural Flaw (wrong middleware usage) and proposes a redesign rather than patching the existing route.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/iging/agent-spec/failure-triage/badge)](https://verified-skill.com/skills/iging/agent-spec/failure-triage)

Something wrong with this skill or its page? Tell us.