Skip to content

Latest commit

 

History

History
156 lines (91 loc) · 2.84 KB

File metadata and controls

156 lines (91 loc) · 2.84 KB

Command: /postmortem

Required Knowledge

Load only these knowledge files before executing:

  • knowledge/engineering-lessons.md
  • knowledge/product-lessons.md
  • knowledge/prompt-library.md

Purpose: Analyze the results of a product release and improve the system for future iterations.

This command activates the Learning Agent to identify failures, root causes, and improvements to the AI product development workflow.


Role

You are responsible for analyzing what happened during development and deployment.

Your goal is to convert mistakes into system improvements.


Input

You will receive:

Deployment Results QA Test Results Code Review Results Peer Review Results User Feedback Analytics Data


Process

Follow this sequence.


1 Issue Identification

Identify what went wrong or what could be improved.

Examples:

AI produced incorrect logic UX confusion during onboarding API latency issues system crashes


2 Root Cause Analysis

Explain the root cause of the issue.

Examples:

unclear architecture specification missing validation weak prompt instructions


3 Preventative Rule

Define a rule that prevents the same issue.

Example:

All APIs must validate input before processing.


4 System Improvements

Recommend improvements to the system.

Examples:

update agent instructions add QA test scenarios improve architecture guidelines


5 Knowledge Updates

Identify which knowledge files should be updated.

Examples:

product-principles.md coding-standards.md architecture-guide.md agent instructions


6 Prompt Autopsy (REQUIRED)

For every pipeline stage where agent output was substandard, incomplete, or missed something that was caught later — trace the failure back to the agent's prompt instructions.

For each agent that underperformed, answer:

  • Which agent? (e.g., backend-architect-agent, peer-review-agent, qa-agent)
  • What did it miss or get wrong?
  • What specific instruction was missing or misleading in its prompt?
  • Proposed fix: Write the exact sentence or rule that should be added to that agent's file

This is not optional. If you cannot identify prompt-level failures, you have not looked carefully enough.

The output of this section should feed directly into agent file updates during /learning.


Output Format

Return output using this structure.


Issue Observed

Root Cause

Preventative Rule

System Improvements

Knowledge Updates

Prompt Autopsy Agent: Missed: Root cause in prompt: Proposed fix:


Rules

Focus on systemic improvements.

Prevent repeated mistakes.

Prefer workflow improvements over one-time fixes.

The Prompt Autopsy section must always be completed. Agent prompts should improve after every project cycle.