# WHAT-IF — anchored premortem for your code

> Your code works on your machine. WHAT-IF shows you the week it stops working — N branches of your project's near future, each anchored to a line it actually re-read, each ending in one concrete fix.

WHAT-IF — anchored premortem for your code is a free AI agent skill on Agensi by Muhammaddiyor Lutfullaev, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Muhammaddiyor Lutfullaev](https://www.agensi.io/creators/muhammaddiyor-lutfullaev)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Uses: 2
- Version: 0.2.2
- Last updated: 2026-10-26
- Security: scan passed (2026-10-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/what-if-anchored-premortem-for-your-code
- Tags: code-review, claude-code, risk-assessment, planning

## About this skill

WHAT-IF does what an experienced engineer does silently and a new developer can't yet: run the plan forward and notice what breaks.

Point it at a plan (before any code) or at code that already runs. It collects real anchors — a file and line it re-read, a plan item, a dependency version, a search that came back empty — and walks a fixed set of deviation operators (NONE, MORE, LESS, AS WELL AS, PART OF, REVERSE, OTHER THAN, EARLY/LATE) across them through up to 10 distinct lenses: error paths, omissions, volume, human behavior, external deps, money, time, concurrency, access, drift.

Each surviving branch is written as something that already happened:

```
### The same order was charged twice
Anchor            checkout.ts:88 — <button onClick={submit}> with no disabled state
Lens / Deviation  Human behavior / AS WELL AS
How               Two requests left before the first response returned…
Cost              Customer's money, a manual refund, a support conversation.
Early signal      Pairs of near-identical orders — but nothing watches that table.
Window            Cheap while the button is one component.
Action            Disable the button until the response lands; send an idempotency key.
```

What makes it different:
- **No anchor, no branch.** Unanchored "the database might not scale" futures are deleted, not reworded.
- **Honest count.** Ask for 5, get "Requested 5, found 2" rather than padding.
- **No fake probabilities.** Branches are ordered by irreversibility: lost data → money → time → annoyance.
- **Read-only.** It never edits your code; the only file it writes is its own `.what-if.md` log, so dismissed risks don't come back next run — unless the condition you dismissed them under has changed.
- **Built on measured results**, not intuition: structured hazard questioning vs. brainstorming (Kobo-Greenhut 2019), method overlap of only 32–37% (Potts 2014), 92% of catastrophic failures from mishandled errors (Yuan, OSDI '14), omissions outnumbering commissions 2:1 (Bass, SEI 2006). Full references with DOIs in the GitHub README.

Not prediction: it widens coverage of concrete failure causes and nudges you toward reversible designs.

Usage: `/what-if` (3 branches) or `/what-if 5`. Source and plugin install: https://github.com/K0m04ek/what-if (MIT).

## Requires

- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the WHAT-IF — anchored premortem for your code skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does WHAT-IF — anchored premortem for your code do?

Your code works on your machine. WHAT-IF shows you the week it stops working — N branches of your project's near future, each anchored to a line it actually re-read, each ending in one concrete fix.

### Which AI agents support WHAT-IF — anchored premortem for your code?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use WHAT-IF — anchored premortem for your code?

Connect your AI agent to Agensi through MCP, then ask it to use WHAT-IF — anchored premortem for your code on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
