MCPInstall

thinking-inversion

When planning work where optimism may be hiding risks, ask "how would I guarantee this fails?" — enumerate failure paths, then turn the top ones into explicit requirements to avoid.

Installs
134
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/tjboudreaux/cc-thinking-skills --skill thinking-inversion
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads thinking-inversion automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Inversion Thinking

Redirect: For most risk-anticipation work, prefer thinking-pre-mortem — it produces a narrative prospective-hindsight pass that surfaces richer, more specific failure causes than a generic checklist. Use inversion only as a quick failure-mode enumeration on a scoped feature/design; for full plans, launches, or strategic decisions, pre-mortem is the stronger tool.

Trigger Card

When planning a scoped feature or design where optimism may be hiding risks:

  1. State the goal clearly.
  2. Ask: "How would I guarantee this fails?" — list 10+ concrete failure paths.
  3. Convert the top 3-5 into explicit avoidance requirements. (e.g., "No plaintext passwords" → "Use bcrypt with work factor ≥ 12")
  4. Verify the plan addresses each.

Skip if the task is small/reversible or if failure modes are already well-covered by existing checks. For full plans or launches, use thinking-pre-mortem instead.

Overview

Inversion thinking, championed by Charlie Munger and rooted in mathematician Carl Jacobi's principle "Invert, always invert," approaches problems by considering their opposite. Instead of asking "How do I succeed?", ask "How would I guarantee failure?" then avoid those paths.

Core Principle: "All I want to know is where I'm going to die, so I'll never go there." — Charlie Munger

When to Use

  • Planning a new project, feature, or initiative
  • Evaluating a decision before committing
  • Identifying risks that optimistic thinking obscures
  • Stuck on how to achieve a positive outcome
  • Need to challenge assumptions in a plan
  • Writing requirements or acceptance criteria

Decision flow:

Have a goal? → yes → Can you list ways to achieve it? → maybe → INVERT FIRST
                                                      ↘ no → Definitely invert
           ↘ no → Define goal, then invert

When NOT to Use

  • You're planning a full launch, project, or strategic decision. Use thinking-pre-mortem instead — it produces a narrative prospective-hindsight pass that surfaces richer, more specific failure causes than a checklist enumeration. Inversion is the lighter, faster tool; pre-mortem is the deeper one.
  • The task is small/reversible and failure is cheap — just do it and fix forward.
  • You'd only produce generic boilerplate failure modes ("no tests", "poor naming") that don't apply here; skip if nothing specific surfaces.
  • The failure modes are already well-covered by existing checks (CI, lint, type system); don't re-enumerate what's enforced.

The Process

Step 1: Define the Goal Clearly

State what success looks like:

Goal: "Ship a reliable authentication system by Q2"
Goal: "Build a high-performing engineering team"
Goal: "Launch product with strong user retention"

Step 2: Invert — Ask "How Would I Fail?"

List all ways to guarantee failure, ruin, or the opposite of your goal:

Goal: Ship reliable auth system
Inversions (How to guarantee failure):
- Skip security review and pen testing
- No rate limiting or brute force protection  
- Store passwords in plaintext
- No monitoring or alerting
- Skip edge cases in testing
- No documentation for on-call
- Single point of failure, no redundancy
- Ignore compliance requirements
- No rollback plan
- Deploy on Friday before vacation

Step 3: Categorize the Failure Modes

Group by type and severity:

CategoryFailure ModeSeverity
SecurityPlaintext passwordsCritical
SecurityNo rate limitingHigh
OperationsNo monitoringHigh
OperationsNo rollback planHigh
ProcessSkip security reviewCritical
ProcessNo documentationMedium
ReliabilitySingle point of failureHigh

Step 4: Convert to Avoidance Checklist

Transform each failure mode into a requirement:

Anti-goal: Store passwords in plaintext
→ Requirement: Use bcrypt/argon2 with appropriate work factor

Anti-goal: No rate limiting
→ Requirement: Implement rate limiting with exponential backoff

Anti-goal: Deploy Friday before vacation
→ Requirement: No deploys within 48h of team unavailability

Step 5: Prioritize by Impact

Focus on avoiding the failures that would be:

  • Most damaging if they occurred
  • Most likely to occur without explicit prevention
  • Hardest to recover from

Application Patterns

For Technical Design

Goal: Build scalable API
Invert: How to make it fail under load?
- No caching → Add caching layer
- Synchronous everything → Add async where appropriate  
- No connection pooling → Implement pooling
- N+1 queries → Eager loading, query optimization
- No circuit breakers → Add circuit breakers

For Code Review

Goal: Merge high-quality code
Invert: What would make this PR problematic?
- Introduces security vulnerability
- Breaks existing functionality
- No tests for new behavior
- Unclear intent/poor naming
- Performance regression
- Missing error handling

For Career/Team Building

Goal: Build successful engineering career
Invert (Munger's list of what to avoid):
- Be unreliable
- Learn only from your own mistakes (ignore others')
- Give up after first failure
- Be resentful and envious
- Stay within comfort zone
- Avoid difficult conversations
- Don't learn continuously

For Project Planning

Goal: Successful product launch
Invert: How to guarantee launch failure?
- No user research → Validate with users
- No load testing → Load test before launch
- No rollback capability → Build rollback
- No success metrics defined → Define metrics upfront
- Team burnout → Sustainable pace
- No communication plan → Prepare stakeholder comms

Combining with Pre-Mortem

Inversion + Pre-Mortem creates powerful risk identification:

  1. Inversion: List ways the project could fail (theoretical)
  2. Pre-Mortem: Imagine it DID fail, explain why (narrative)
  3. Synthesize: Combine both lists, prioritize, mitigate

Common Inversions for Software

DomainGoalKey Inversions to Avoid
SecuritySecure systemTrusting user input, weak auth, exposed secrets
PerformanceFast systemNo caching, blocking calls, no indexes
ReliabilityStable systemNo monitoring, no redundancy, no graceful degradation
MaintainabilityClean codeNo tests, cryptic names, tight coupling
TeamHigh performancePoor communication, no psychological safety, unclear goals

Verification Checklist

  • Goal clearly defined
  • Listed 10+ ways to fail/achieve opposite
  • Categorized failures by type and severity
  • Converted top failures to explicit requirements
  • Verified plan addresses the most critical inversions
  • Re-checked the top inversions against the actual design for blind spots

Key Questions

  • "What would guarantee failure here?"
  • "What mistakes do others commonly make?"
  • "What am I most likely to overlook?"
  • "If this fails spectacularly, what will the postmortem say?"
  • "What would I tell someone else to avoid?"
  • "What would the opposite of success look like, specifically?"

Munger's Warning

"It is remarkable how much long-term advantage people like us have gotten by trying to be consistently not stupid, instead of trying to be very intelligent."

The power of inversion is in avoiding obvious errors that optimism blinds us to. Simple avoidance often beats clever optimization.

FAQ

What does the thinking-inversion skill do?

When planning work where optimism may be hiding risks, ask "how would I guarantee this fails?" — enumerate failure paths, then turn the top ones into explicit requirements to avoid.

How do I install thinking-inversion?

Run npx skills add https://github.com/tjboudreaux/cc-thinking-skills --skill thinking-inversion in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/thinking-inversion/ (personal) or .claude/skills/thinking-inversion/ (project).

Which AI agents can use thinking-inversion?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is thinking-inversion safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains thinking-inversion?

It is published by tjboudreaux in tjboudreaux/cc-thinking-skills. It has 134 recorded installs.

More from tjboudreaux/cc-thinking-skills

View all →

thinking-first-principles

tjboudreaux/cc-thinking-skills

When a constraint is treated as fixed, separate physics from convention, keep only independently supported primitives, and rebuild the simplest solution that satisfies real constraints.

thinking-red-team

tjboudreaux/cc-thinking-skills

For authorized security review of code, auth, or APIs you control, model the attacker, map the attack surface, and report only findings with a reproducible exploit path and verified mitigation.

Backend & APIs674 installs

thinking-pre-mortem

tjboudreaux/cc-thinking-skills

Before committing to a plan or launch, assume it already failed and reason backward through concrete causes — convert failure paths into mitigations, gates, and stop checks.

thinking-theory-of-constraints

tjboudreaux/cc-thinking-skills

When throughput or latency is pipeline-limited, identify the single binding constraint and exploit, subordinate, elevate, then recheck—ignore non-constraints.

649 installs

thinking-socratic

tjboudreaux/cc-thinking-skills

When a request is vague, assumption-laden, or "obvious," ask the few load-bearing questions that expose hidden requirements before building or committing.

631 installs

thinking-opportunity-cost

tjboudreaux/cc-thinking-skills

Before committing scarce time, people, or money, name the best forgone use of those resources and the value delta of the chosen path versus that alternative.

616 installs

Popular code quality & workflow skills

View category →

grill-me

mattpocock/skills

A relentless interview to sharpen a plan or design.

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

handoff

mattpocock/skills

Compact the current conversation into a handoff document for another agent to pick up.

domain-modeling

mattpocock/skills

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

codebase-design

mattpocock/skills

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

diagnosing-bugs

mattpocock/skills

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.