kira_premortem
Run a pre-mortem on a task goal to surface past failure patterns. Returns ranked hotspots with mistakes, fixes, and estimated time saved for proactive avoidance.
Instructions
Run a PRE-MORTEM before starting a task. Given a goal (and optional project context), return a heat map of the past failure patterns (scars, shared and personal) most likely to bite — ranked by how many times each wall has been recorded (hit_count). Each hotspot includes the mistake, the fix ('instead'), a relative heat score, and estimated minutes saved by avoiding it, plus an aggregate prevention value. When nothing matches strictly, 'near_scars' lists the closest recorded scars instead. Call this FIRST for any non-trivial task to surface known traps up front, then read each hotspot's 'instead' and use kira_lookup / kira_route to plan the actual work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | The task you are about to start, in natural language (e.g., 'deploy a Next.js app to Vercel with Stripe'). | |
| top_k | No | Max number of hotspots to return. Default 5, max 20. | |
| context | No | Optional project context tags (e.g., ['nextjs', 'typescript']) to focus the heat map. |