A zero-cost cognitive enhancement that enables AI agents to predict and prevent failures through adversarial pre-execution reasoning.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install premortem
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install premortem using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Premortem acts as a cognitive immune system for AI agents, integrating a sophisticated reasoning pattern directly into the agent's workflow. Instead of simply executing tasks, the agent uses this skill to imagine potential failure scenarios, identify root causes, and apply fixes before a single line of code is written or a command is run. By leveraging this addition to your Openclaw Skills collection, you ensure higher reliability, better code quality, and safer system interactions without adding API overhead or latency.
This is not a tool or an external API; it is a thinking pattern that triggers a cognitive reflex. It forces the agent to move beyond positive confirmation bias and adopt an adversarial perspective, identifying risks like hallucinated facts, off-by-one errors, or unintended side effects in shared systems before they manifest.
Since Premortem is a cognitive protocol with zero dependencies, it is easily integrated into your agent's system prompt or configuration. To activate it within your Openclaw Skills environment, ensure the skill definition is loaded into the agent's active memory. No external libraries or API keys are required.
# Example of referencing the skill in an agent environment
openclaw install premortem
Premortem utilizes a structured internal metadata taxonomy to process reasoning. While primarily internal, the logic follows this organizational schema:
| Component | Description |
|---|---|
| INTENT | A one-sentence summary of what the agent is trying to achieve. |
| FAILURE MODES | A prioritized list of risks categorized by Correctness, Security, or Side Effects. |
| PATCHES | Technical or logical fixes applied to prevent the identified failures. |
| STAKES LEVEL | Calibration data ranging from Low to Critical that dictates reasoning depth and time budget. |
Loading
Phantom Limb is a cognitive diagnostic tool that detects ghost references and silent dependencies that no longer exist in your live environment.

A situational awareness skill that monitors upstream dependencies and downstream consumers for changes that could break your current work.

A structural analysis tool that identifies duplicated, inconsistent, and dead code patterns to guide intelligent refactoring.

Parallax is a multi-perspective reasoning framework that evaluates technical decisions through five distinct stakeholder lenses to eliminate blind spots.

A self-spatial awareness system that gives AI agents a real-time sixth sense of their goal alignment, confidence boundaries, and output quality.

A zero-cost cognitive immune system that runs automatic pre-response checks to eliminate AI hallucinations and contradictions.








































