Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Analyze system verification failures, trace each to its originating design artifact, group related issues into fix batches, and produce an actionable fix plan. Use when asked to triage failures, diagnose integration bugs, analyze why the system broke, trace bugs to root causes, or produce a TRIAGE.md.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 60% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 429% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 447% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 156% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 274% | 0% |
Given a SYSTEM_VERIFICATION.md (or equivalent failure report) documenting integration failures in a composed application, produce a TRIAGE.md that traces every failure to the specific design artifact that, if correct, would have prevented the bug — then groups related issues into ordered fix batches and provides specific artifact update instructions. The output enables a human to update the right documents (architecture, interface contract, specs) so the pipeline can re-run and produce correct implementations.
units/<area>/ folder structure (auto-discovered) — the existing per-area unit catalog. Used to identify gaps where no unit covers a needed capability; missing capabilities become candidates for new triggers (roadmap/<NNN>-<slug>/ROADMAP.md or issues/<NNN>-<slug>/ISSUE.md).Triage proceeds in four phases: failure analysis, artifact tracing, batch grouping, and fix plan generation.
Read the system verification report and build a complete picture of every failure.
For each failure:
| Category | What went wrong | Typical artifact gap | |----------|----------------|---------------------| | Contract mismatch | Client and server disagree on wire format — field names, casing, structure, types | INTERFACES.md missing or incorrect entry; SPEC derived wire format from prose instead of interface contract | | Missing configuration | Env var, migration, library setup, dev script not present | SPEC for infrastructure/scaffold unit incomplete; ARCHITECTURE.md missing config section | | Logic bug | Code does the wrong thing despite correct contracts | SPEC was wrong (spec bug) or IMPLEMENTATION deviated from spec (implementation bug) | | Missing feature | Something needs to exist but was never specified | No unit covers this capability — file a new roadmap/<NNN>-<slug>/ROADMAP.md trigger; ARCHITECTURE.md missing component | | Third-party library | Library requires setup not documented in architecture | ARCHITECTURE.md or SPEC missing library-specific requirements |
For each failure, identify THE specific artifact that is the root cause — the document that, if it had been correct, would have prevented the bug. This is the most important phase. Be precise — "the architecture is incomplete" is not actionable; "ARCHITECTURE.md is missing the response shape for GET /repos/{id}/tree, which caused CLI unit U21 and server unit U15 to independently derive incompatible types" is actionable.
Tracing rules:
roadmap/<NNN>-<slug>/ROADMAP.md trigger and surface the gap.roadmap/<NNN>-<slug>/ROADMAP.md (or issues/<NNN>-<slug>/ISSUE.md for a regression). If the feature isn't mentioned anywhere in the architecture, ARCHITECTURE.md has a gap.For each failure, produce an artifact trace:
Failure: {symptom}
Root artifact: {document path and section}
Gap: {what is missing or wrong in that artifact}
Fix: {what the artifact should say instead}Group related failures into fix batches ordered by dependency. Earlier batches must be fixed before later ones — both because they may block testing and because their fixes may cascade to resolve later issues.
Standard batch ordering:
| Batch | Focus | Why first | |-------|-------|-----------| | Batch 1: Foundation | System glue — env loading, migrations, service startup, database tables | Nothing can be tested if the system cannot start | | Batch 2: Contracts | Wire-format alignment — field names, casing, request/response shapes | Contract fixes affect many features simultaneously; fixing them first prevents re-fixing individual features | | Batch 3: Feature-specific | Individual endpoint, command, or component fixes that are independent of contracts | These are isolated fixes that do not cascade | | Batch 4: Ergonomics | Dev tooling, docker-compose improvements, documentation, developer experience | Non-blocking but improve the development workflow |
Within each batch, group failures that share a root artifact — if five failures all trace to "INTERFACES.md is missing Server API response shapes," they are one fix item, not five.
Produce the fix plan with two distinct sections:
Section A: Artifact Updates (for the human). For each fix item, provide:
Section B: Pipeline Re-entry (informational). After the human updates artifacts:
"Fix the contracts" is not actionable. "Add the response shape for GET /repos/{id}/tree to INTERFACES.md § Server API with fields entries: Array<{path: string, type: "blob" | "tree", sha: string}> and truncated: boolean" is actionable. Every fix instruction must be specific enough to execute without further research.
Every failure has exactly one root artifact. If a contract mismatch exists because the registry is missing AND the spec derived the wrong format, the root cause is the missing registry entry — had it existed, the spec would have referenced it correctly. Trace to the deepest cause in the chain.
Triage identifies which design artifacts to update. It does not write code, modify implementations, or suggest code patches. The pipeline handles code generation — triage feeds corrected inputs back into the pipeline.
The triage report must include a section noting what worked well. If 15 of 20 scenarios passed, that is significant — the pipeline produced largely correct results and the failures are concentrated in identifiable categories.
markdown--- skill: TRIAGE.md date: {YYYY-MM-DD} status: {complete | has_open_questions} failures_analyzed: {N} root_causes_identified: {N} fix_batches: {N} artifacts_to_update: {N} units_to_reprocess: {N} --- # TRIAGE: {project name} ## Summary - **Failures analyzed:** {N} from SYSTEM_VERIFICATION.md - **Root causes identified:** {N} unique artifact gaps - **Fix batches:** {N} ordered batches - **Artifacts requiring updates:** {N} documents - **Units requiring reprocessing:** {N} units after artifact updates ### Failure Distribution | Category | Count | % of total | |----------|-------|------------| | Contract mismatch | {N} | {N}% | | Missing configuration | {N} | {N}% | | Logic bug | {N} | {N}% | | Missing feature | {N} | {N}% | | Third-party library | {N} | {N}% | --- ## What Worked Well {Acknowledge successes. How many scenarios passed? Which component boundaries work correctly? What does this tell us about the pipeline's effectiveness?} --- ## Root Cause Analysis ### Failure {N}: {symptom title} **Scenario:** {which system verification scenario} **Symptom:** {what went wrong — expected vs actual} **Category:** {contract_mismatch / missing_config / logic_bug / missing_feature / third_party_library} **Root artifact:** `{document path}` § {section name} **Gap:** {what is missing or wrong in the artifact} **Fix:** {what the artifact should say — specific and complete} **Related failures:** {list other failure numbers that share this root cause, if any} (Repeat for each failure.) --- ## Fix Batches ### Batch 1: Foundation {Description of what this batch addresses and why it must be done first.} #### Fix 1.1: {title} **Artifact:** `{file path}` § {section} **Change:** {exact description of what to add/modify/remove} **Resolves:** Failure(s) #{N}, #{N} **Rationale:** {why this change prevents the failures} (Repeat for each fix in this batch.) ### Batch 2: Contracts {Description} #### Fix 2.1: {title} **Artifact:** `{file path}` § {section} **Change:** {exact description} **Resolves:** Failure(s) #{N}, #{N} **Rationale:** {why} (Repeat for each fix. Repeat for each batch.) --- ## Pipeline Re-entry Plan After the artifact updates above are applied: ### Units Requiring SPEC Regeneration | Unit | Reason | Affected artifact | |------|--------|-------------------| | {unit ID} | {why the spec needs regeneration — e.g., "INTERFACES entry added for this endpoint"} | {which fix item} | ### Units Requiring Re-implementation | Unit | Reason | Depends on | |------|--------|------------| | {unit ID} | {why — e.g., "SPEC will change to use correct wire-format field names"} | SPEC regen for {unit ID} | ### Re-entry Procedure 1. Apply all artifact updates from the fix batches above. 2. Re-enter the pipeline from Phase 2 (SPEC regeneration) for the units listed above. 3. Run the per-unit pipeline (PLAN → IMPLEMENTATION → CODE_REVIEW → VERIFICATION) for each affected unit. 4. Re-run SYSTEM_VERIFICATION to confirm the fixes. --- ## Open Questions - [ ] {Question} - **Option A:** {description} — {tradeoff} - **Option B:** {description} — {tradeoff} - **Recommendation:** {suggestion} (If none: "All questions resolved.")
roadmap/<NNN>-<slug>/ROADMAP.md or issues/<NNN>-<slug>/ISSUE.md (the orchestrator dispatches /ROADMAP.md or /ISSUE.md to file it)skill, date, status, failures_analyzed, root_causes_identified, fix_batches, artifacts_to_update, units_to_reprocess)Other measured skills in the registry, with their headline benchmark lift.