Turn Past Incidents into Checks for Your AI Reviewer

    by Claude Workflow Lab

    1

    Every incident on critical code becomes a failure class in your review agent's memory plus a replayable eval case. A runner grades the reviewer with a judge model after prompt or model changes.

    $6

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    What it does

    • Turns each incident on critical code into a failure class in your review agent's memory
    • Adds a replayable eval case from the commit before the fix
    • Grades your reviewer with a judge model after every prompt or model change

    Turn Past Incidents into Checks for Your AI Reviewer

    Example session with this skill installed

    We just fixed a bug where a retry re-sent a non-idempotent payment request. Add it as a failure class and an eval case, then run the reviewer's eval set.

    • Read your context and instructions
    • Compiled the turn past incidents
    • Generated the document

    Example output on a fictional setup (illustrative).

    Incident understood first: the retry wrapper re-sent the charge request after a timeout, and the first request had succeeded. Evidence: log line showing two charge calls with one idempotency key missing, and the commit before the fix.

    Memory updated (one line merged into an existing class): "retry path re-sends a non-idempotent request; seen once in a charge call".

    Case written to cases/retry-charge/case.json:

    • id: retry-charge
    • base: the commit before the fix
    • focus: payment client and its retry wrapper (no hint of the bug)
    • expect: the review must say the retry can duplicate a charge because no idempotency key is sent

    Run: python3 scripts/run_evals.py --agent critical-reviewer.md --cases evals/cases
    Result: 5 cases, 4 PASS, 1 FAIL (retry-charge: report praised the retry logic, missed the duplicate). Ran the failing case twice more: 1 of 3 passes, so the prompt does not catch it alone.

    Next: strengthen the reviewer prompt with a line on idempotency, re-run each case three times before trusting any difference.

    turn-past-incidents-into-checks-for-your.pdf

    PDF · document

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Make your review subagent get better after every incident instead of repeating its blind spots.

    What is inside:

    • SKILL.md: the workflow. After a postmortem, understand the incident from a log line or reproduction, add one line to the reviewer's memory with the failure class (not the names or amounts), and add an eval case when the bug can be reproduced from code. It explains how to write a case with a focus that names only where to look, how to reconcile against the bugfix records of a memory plugin to find classes you missed, and how to avoid claiming something is fixed because a session talked about it.
    • scripts/run_evals.py: exports each case's base commit into a temp repo, applies the optional patch, runs your reviewer through claude -p, and has a small judge model grade the report PASS or FAIL against what you expected. It reviews without the memory file on purpose, so it measures what the prompt and model catch on their own. Options for model, effort and judge model.

    It is for developers who use Claude Code to review changes in code where mistakes are costly: payments, authentication, data deletion, migrations. It needs Claude Code, git and Python 3; each case is one full review session, so mind your quota.

    This skill is also part of the Claude Code Weekly Setup Review + Incident Checks pack at a lower per-skill price.

    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

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 1 day ago

    Accounts
    Terminal login for claude -p runs
    Software
    Claude CodePython 3 (standard library only) and gitGit

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed1 day ago

    What's inside

    Frequently Asked Questions

    Every incident on critical code becomes a failure class in your review agent's memory plus a replayable eval case. A runner grades the reviewer with a judge model after prompt or model changes.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Turn Past Incidents into Checks for Your AI Reviewer on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in Code Quality & Review

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.