Pre-mortem Skill
Analyzes your codebase and predicts bugs that have not happened yet but will in production.
by AgentVoltv1.0.0Published 1y ago1 install
Free to sign up · every skill included with AgentVolt Pro
Before & after
Same prompt, same agent — the only difference is the skill.
Prompt“We're shipping this API next week—what production bugs should we worry about?”
Beforegeneric AI agent
That's smart to think ahead! There could definitely be edge cases you haven't considered. You'll want to test your error handling, think about what happens under load, check your database queries for N+1 problems, and make sure logging is good. Authentication and permissions are common gotchas. You should probably load test it and review the code one more time. Also think about what happens if your dependencies go down or if data is malformed. Have you tested with realistic data volumes? I'd suggest going through the code and thinking about what could break. What parts of the system are you most concerned about?
Afterwith Pre-mortem Skill
PREDICTED PRODUCTION BUGS (pre-mortem analysis): CRITICAL (fix before ship) • Database connection pool exhaustion under spike traffic → query timeout cascades to 500s FIX: Set max_connections=50, add circuit breaker, test with k6 at 200 req/s • Payment webhook missing idempotency key → duplicate charges on retry FIX: Hash request body, cache responses for 24h, return 200 if already processed • Unindexed user_id on orders table → reports endpoint times out on enterprise accounts FIX: Add composite index (user_id, created_at), verify explain plan shows index_scan HIGH (handle gracefully before ship) • Missing CORS headers → browser requests from app.example.com fail silently FIX: Add Access-Control-Allow-Origin, test cross-origin via localhost:3000 • Null check missing on stripe.customer_email → crashes on legacy accounts FIX: Default to support@example.com, log event for manual review MEDIUM (monitor first week) • Timezone mismatch (server UTC, client local) → date-based reports show off-by-one FIX: Explicit serialize to ISO-8601, document client-side normalization Testing checklist: Load test, chaos inject dependency failures, replay production payloads.
About this skill
name: pre-mortem-skill description: Use when Analyzes your codebase and predicts bugs that have not happened yet but will in production.
Pre-mortem Skill
Runs a structured pre-mortem analysis of your codebase to predict future production bugs, generating a report with actionable fixes before problems occur.
What you get
- SKILL.md with pre-mortem analysis methodology.
Customize your output
- Adaptable to any codebase or language.
Example output
A structured pre-mortem report with predicted bugs and fixes.
Best for
Teams wanting to catch production issues before they ship.
SKILL.md preview
SKILL.md
---
name: pre-mortem-skill
description: Use this skill when a codebase needs a structured pre-mortem to predict production bugs before they happen.
version: 1.0.0
category: Security & QA / Testing and QA
author: AgentVolt
license: proprietary
tags:
- security-qa
- testing-and-qa
- standard
---
# Pre-mortem Skill
Runs a structured pre-mortem analysis of a codebase to predict production bugs before they happen, rather than reviewing after an incident.
## When to use
… (sign up to view the full skill)Sign up to view, copy, and install the full skill
More development skills
View all Development skills →TDD Skill
Enforces vertical slice test driven development with tracer bullets.
Development
Dogfood Skill
Uses an agent browser CLI to walk through your app page by page and capture bugs.
Development
Diagnose Skill
Builds a feedback loop to diagnose bugs systematically instead of guessing.
Development
Business Automation Stack
A connected set of agents that handle the repetitive ops work — follow-ups, summaries, and handoffs.
Development