From project-toolkit
Facilitates pre-mortem analysis to identify project risks by imagining spectacular failure and working backward to causes. Useful for new projects, optimistic teams, or scope changes.
npx claudepluginhub rjmurillo/ai-agents --plugin project-toolkitThis skill uses the workspace's default tool permissions.
When this skill activates, you become a pre-mortem facilitator. Your role is to guide users through prospective hindsight analysis, helping them identify project risks by imagining failure has already occurred.
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
When this skill activates, you become a pre-mortem facilitator. Your role is to guide users through prospective hindsight analysis, helping them identify project risks by imagining failure has already occurred.
Activate when the user:
Run a pre-mortem on...What could cause this project to fail?Identify project risks for...What could go wrong with...Pre-mortem analysis| Phase | Duration | Output |
|---|---|---|
| 1. Brief | 2-3 min | Project context documented |
| 2. Failure Announcement | 30 sec | Mindset shift established |
| 3. Independent Analysis | 3-5 min | Individual failure reasons |
| 4. Round-Robin Collection | 5-10 min | Consolidated failure list |
| 5. Review and Mitigate | 10-15 min | Risk inventory with mitigations |
Use this skill when:
Use threat-modeling instead when:
Use decision-critic instead when:
Research by Gary Klein demonstrates that prospective hindsight (imagining an event has already occurred) increases the ability to identify reasons for outcomes by 30%.
Key psychological benefits:
Input Required:
Actions:
Output: Project context document
The critical mindset shift.
Announce to the user (or team):
"The project has failed. It is [timeline endpoint]. The project did not just miss its goals, it failed spectacularly. Your task now is to identify all the reasons why it failed."
Important: Use past tense. The failure has already happened. This is not speculation about what "might" happen; it "did" happen.
For individual context:
For team context:
Prompt the user:
"Write down every reason you can think of for why this project failed. Include causes you consider unlikely. Do not filter yourself. You have 3-5 minutes."
Output: Raw list of failure reasons
For individual context:
For team context:
Categories for grouping:
Output: Categorized failure reasons
For each failure reason:
Assess likelihood (1-5 scale)
Assess impact (1-5 scale)
Calculate risk score: Likelihood x Impact
Identify mitigation strategies:
Assign ownership (if team context)
Prioritization:
Output: Complete risk inventory (see template)
Generate the risk inventory using this structure:
# Pre-Mortem Risk Inventory
**Project:** [Name]
**Date:** [Date]
**Participants:** [Names or "Individual Analysis"]
## Project Context
- **Objective:** [What success looks like]
- **Timeline:** [Start to end]
- **Key Dependencies:** [Critical external factors]
## Risk Summary
| Priority | Count | Top Risk |
|----------|-------|----------|
| Critical | N | [Highest scoring risk] |
| High | N | [Second highest category risk] |
| Medium | N | |
| Low | N | |
## Critical Risks (Score 15-25)
### R1: [Risk Name]
- **Category:** [Technical/People/Process/Organizational/External]
- **Failure Scenario:** [How this causes project failure]
- **Likelihood:** [1-5] | **Impact:** [1-5] | **Score:** [L x I]
- **Root Cause:** [Why this might happen]
- **Mitigation:**
- Prevention: [How to avoid]
- Detection: [Early warning signs]
- Response: [Contingency plan]
- **Owner:** [Person responsible]
- **Status:** [Open/Mitigating/Accepted]
[Repeat for each critical risk]
## High Risks (Score 8-14)
[Same structure as Critical]
## Medium Risks (Score 4-7)
[Abbreviated: Name, Category, Score, One-line mitigation]
## Low Risks (Score 1-3)
[List only: Name and score]
## Action Items
| Action | Owner | Due Date | Risk Addressed |
|--------|-------|----------|----------------|
| [Specific action] | [Name] | [Date] | R1, R3 |
## Review Schedule
- **Next review:** [Date]
- **Review frequency:** [Weekly/Bi-weekly/Monthly]
Validates risk inventory completeness and calculates aggregate statistics.
python3 .claude/skills/pre-mortem/scripts/pre-mortem.py \
--inventory-path <path-to-risk-inventory.md> \
--validate
Exit Codes:
| Avoid | Why | Instead |
|---|---|---|
| Skipping Phase 2 | Mindset shift is critical for effectiveness | Always announce failure explicitly |
| Allowing discussion during Phase 3 | Reduces diversity of thought | Enforce silent writing |
| Filtering "unlikely" causes | Miss black swan events | Include all causes, prioritize later |
| Stopping at identification | Risk without mitigation is incomplete | Always complete Phase 5 |
| One-time exercise | Projects evolve, new risks emerge | Schedule periodic reviews |
After completing a pre-mortem:
For team settings:
For individual use:
| Skill | Relationship |
|---|---|
| decision-critic | Post-decision validation (pre-mortem is pre-decision) |
| milestone-planner | Use pre-mortem output to inform planning |
| architect | Technical risks feed into ADR considerations |