Agent skill

remediate-failures

Correct failures, rule violations, and acceptance criteria gaps detected during QA review. Activate when qa-review returns FAIL. Fixes without redefining scope — loops until all quality gates pass.

Stars 123
Forks 27

Install this agent skill to your Project

npx add-skill https://github.com/Fr-e-d/GAAI-framework/tree/main/.gaai/core/skills/delivery/remediate-failures

Metadata

Additional technical details for this skill

id
SKILL-REMEDIATE-FAILURES-001
track
delivery
author
gaai-framework
status
stable
version
1.0
category
delivery
updated at
1769472000

SKILL.md

Remediate Failures

Purpose / When to Activate

Activate when:

  • QA review returns FAIL
  • Acceptance criteria are unmet
  • Rules are violated
  • Regressions are detected
  • Implementation deviates from governed artefacts

Process

  1. Identify all failures precisely from the QA report
  2. Map each failure to: acceptance criteria / rule violated / implementation section
  3. Determine minimal corrective changes
  4. Apply fixes without expanding scope
  5. Re-validate against Story criteria and rules
  6. Prepare updated inputs for QA re-run

Loop: Detect → Correct → Re-validate → repeat until PASS.

Convergence / Escalation: If re-validation does not pass after 3 attempts, or if a fix requires changing acceptance criteria or product intent, STOP. Mark the story as failed and escalate to Discovery with a remediation report listing: what was attempted, what failed, and why convergence was not possible.


Remediation Principles

  • Fix the cause, not the symptom
  • Minimal change preferred
  • Never broaden scope
  • Never reinterpret requirements
  • Respect architecture constraints
  • Preserve maintainability

Output

  • Corrected implementation
  • Remediation notes:
    • What failed
    • What was fixed
    • Why it now passes
  • Updated inputs for QA re-validation

Quality Checks

  • All acceptance criteria satisfied
  • No rule violations remain
  • QA review will pass
  • Scope unchanged
  • Code remains clean

Non-Goals

This skill must NOT:

  • Add new features
  • Reinterpret product intent
  • Weaken rules
  • Bypass quality gates
  • Silently ignore failures

If a fix requires changing product intent or scope: STOP. Escalate back to Discovery. Remediation is correction — not redesign.

Expand your agent's capabilities with these related and highly-rated skills.

Fr-e-d/GAAI-framework

ci-watch-and-fix

Watch GitHub Actions CI after PR creation, detect failures, extract logs, apply minimal fixes, and re-push — keeping the delivery session alive until CI resolves or escalating after 3 cycles. Activate immediately after gh pr create and before marking the story done.

123 27
Explore
Fr-e-d/GAAI-framework

qa-review

Validate that implemented code fully satisfies Story acceptance criteria, respects rules, and introduces no regressions. This is the hard quality gate — no pass means no delivery. Activate after implementation is complete.

123 27
Explore
Fr-e-d/GAAI-framework

compose-team

Assemble the context bundles for each sub-agent based on evaluate-story output. Produces spawn-ready packages for Planning, Implementation, QA, or MicroDelivery sub-agents. Activate after evaluate-story, before spawning any sub-agent.

123 27
Explore
Fr-e-d/GAAI-framework

coordinate-handoffs

Validate sub-agent handoff artefacts, sequence phase transitions, and manage retry and escalation logic. Activate after each sub-agent terminates to determine next action.

123 27
Explore
Fr-e-d/GAAI-framework

implement

Generate correct, minimal, maintainable code that satisfies a validated Story's acceptance criteria against an execution plan. Activate when a Story is validated, a plan exists, and all prerequisites are unambiguous.

123 27
Explore
Fr-e-d/GAAI-framework

delivery-high-level-plan

Transform validated Stories into a clear, minimal, governed execution plan. Used by the Planning Sub-Agent as the first planning pass before prepare-execution-plan for Tier 2/3, or as the sole planning output for simple Stories.

123 27
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results