Install
openclaw skills install inversion-protocolMeta-cognitive reasoning skill that makes any AI agent dramatically better at decision-making by thinking backwards before acting forward. Applies Munger's I...
openclaw skills install inversion-protocol"All I want to know is where I'm going to die, so I'll never go there." — Charlie Munger
The Inversion Protocol is a meta-cognitive reasoning layer that improves the quality of every decision an AI agent makes. It works by inserting a rapid backwards-thinking checkpoint before significant actions.
Most skills give bots new capabilities. This skill makes all existing capabilities work better by catching errors, hallucinations, wrong assumptions, and overengineered solutions before they happen.
This skill has zero dependencies and zero runtime cost. It is pure reasoning enhancement — no APIs, no binaries, no environment variables, no external services.
Apply the Inversion Protocol before any action where being wrong matters:
Do NOT apply to trivial actions like reading files, listing directories, or responding to greetings. The protocol is for moments of consequence.
When the protocol activates, apply these three lenses in order. Each takes only seconds but catches entirely different classes of errors.
Ask: "How would I deliberately CREATE this problem?"
Instead of asking "how do I fix this?", ask "how would I break this on purpose?" The answers reveal root causes that forward-thinking misses entirely.
Mechanics:
Example — Debugging slow code:
Example — Writing an API endpoint:
Ask: "It's tomorrow and this completely failed. What went wrong?"
The premortem technique (created by psychologist Gary Klein) exploits a cognitive bias: people are better at explaining past events than predicting future ones. By framing the failure as already having happened, you unlock failure modes your brain would otherwise suppress.
Mechanics:
Example — Refactoring a function:
Example — Answering a technical question:
Ask: "What is the ONE thing I absolutely must NOT do here?"
Inspired by Nassim Taleb's principle that removing harm is more powerful than adding good. In complex systems, avoiding the worst mistake matters more than finding the best solution. This lens prevents catastrophic errors.
Mechanics:
Example — Database migration:
users.email column is referenced
by the auth serviceExample — Responding to a frustrated user:
For architectural choices, multi-file refactors, debugging sessions where you're stuck, or high-stakes operations:
[INVERSION PROTOCOL — FULL]
Goal: {one-sentence description of what I'm about to do}
INVERT: How would I cause this problem?
1. {failure pattern 1}
2. {failure pattern 2}
3. {failure pattern 3}
Present in current situation? {yes/no + details}
PREMORTEM: It failed. Why?
1. {most likely cause}
2. {second most likely}
3. {third most likely}
Verifiable before acting? {verification steps}
VIA NEGATIVA: The ONE thing I must NOT do?
→ {the catastrophic mistake to avoid}
Am I about to do it? {yes/no}
DECISION: {proceed / adjust approach / stop and rethink}
For writing functions, running commands, or standard responses — a 5-second mental check:
[INVERSION — QUICK]
Inverse: {one way I'd cause this to fail}
Premortem: {one reason this could go wrong}
Razor: {the one thing NOT to do}
→ {proceed / adjust}
When the agent has tried multiple approaches and none work, or the user has corrected the same type of mistake more than once:
[INVERSION PROTOCOL — STUCK MODE]
I've been trying to: {description}
My approaches so far: {list what's been tried}
FULL INVERSION: How would I guarantee this NEVER works?
1. {anti-approach 1}
2. {anti-approach 2}
3. {anti-approach 3}
Am I accidentally doing any of these? {analysis}
REFRAME: What if the problem isn't {what I think it is}
but actually {inverted framing}?
Confirmation bias countermeasure: Humans and LLMs naturally seek evidence that confirms their first instinct. Inversion forces consideration of disconfirming evidence.
Prospective hindsight: Klein's research showed that premortems increase the ability to identify failure reasons by 30% compared to standard "what could go wrong?" thinking.
Subtraction over addition: Taleb's Via Negativa recognizes that in complex systems, avoiding the worst outcome (robustness) is more valuable than optimizing for the best outcome.
Second-order thinking: The protocol naturally produces second-order consequences that first-pass reasoning misses.
The Inversion Protocol enhances every other skill in the ecosystem:
It is a force multiplier, not a replacement for any existing capability.