what-if-analysis
Skill1 starsChanged 42 days agoApache-2.0View on GitHub
Use when planning/gating — «ماذا لو» What-If anticipation.
In this repository18 other files it gives its agents.
- agent-repo-handoff-loopSkill
- device-screen-verificationSkill
- flutter-android-build-systemSkill
- flutter-design-anti-patternsSkill
- flutter-ios-build-systemSkill
- flutter-isar-clean-arch-setupSkill
- flutter-isar-testingSkill
- flutter-lessons-patternsSkill
- flutter-patternsSkill
- flutter-sdk-changelogSkill
- flutter-soul-stewardshipSkill
- github-project-auditSkill
- mcp-bridge-patternsSkill
- repo-front-doorSkill
- skill-ecosystem-syncSkill
- specification-writingSkill
- supabase-fullstackSkill
- translation-fidelitySkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Use it when planning a project, committing to a big decision, closing a stage gate, or when the user asks about «ماذا لو» / pre-mortem / …
- Distinctive: line 36
Before starting an EPIC / major commitment / Stage 0 → full 60-min session
- Distinctive: line 39
After any real incident → Qass Al-Haq (root cause) THEN "what if it recurs?"
- Distinctive: line 40
After unexpected big success → "what if it doubles — what breaks?" (SWIFT covers POSITIVE outcomes.
- Distinctive: line 75
No personal defense — challenge the plan, not the planner.
- Distinctive: line 98
Before any new commitment: "if this fails within 3 months — first 3 reasons?"
- Distinctive: line 99
Before any technical decision: "if the main assumption falls — how do I detect it early?"
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
What-If Analysis — anticipatory skepticism as a working protocol
Turn «ماذا لو» / "what if" from a talent into a protocol: assume the failure (or event) HAS ALREADY HAPPENED, explain how it happened via backward chains, extract early-warning indicators, assign owners. 75+ years of independent practice across 8 fields (HAZOP 1963 · FMEA 1949 · Shell scenario planning · CIA tradecraft · PreMortem · chaos engineering · counterfactual psychology · Popper), distilled into ONE session protocol.
Use it when planning a project, committing to a big decision, closing a stage
gate, or when the user asks about «ماذا لو» / pre-mortem / anticipatory thinking.
The full Arabic methodology guide (8 schools, timeline, sources, templates,
anti-patterns) ships at references/what-if-guide.ar.md — read it when
teaching or when the user asks for the deep study version.
Core mechanics — why it works
- Past tense beats future tense. "The project already failed — why?" (prospective hindsight) raises correct reason-identification by ~30% (Mitchell/Russo/Pennington 1989; Klein HBR 2007 — the PreMortem).
- Ask how, not whether. "How could it happen?" (CIA 2009) suspends the probability debate and moves straight to preparation.
- No indicator → anxiety; no owner → a promise. A scenario with no early-warning signal or owner does not enter the output table.
When to use (triggers)
- Before starting an EPIC / major commitment / Stage 0 → full 60-min session
- At every stage gate → 15-min quick pass on the NEW critical assumptions
- Weekly during execution → indicator review, 15 min
- After any real incident → Qass Al-Haq (root cause) THEN "what if it recurs?"
- After unexpected big success → "what if it doubles — what breaks?" (SWIFT covers POSITIVE outcomes; the protocol is not only fear-mongering)
The 60-minute session protocol
| Minutes | Step | Detail |
| 0–5 | Fix the scope | What system/decision? Write it — don't discuss from memory |
| 5–15 | PreMortem | "It failed disastrously in 3 months — write the reasons" (individual write 5m → share 5m) |
| 15–35 | Focused What-If | On 3–5 CRITICAL assumptions only: "assume it fell — how?" (backward chain) |
| 35–50 | Guide-word sweep | Over 5–8 main nodes × the relevant words (not all 7 per node) |
| 50–60 | Rank & output | Sort by (likelihood × impact) top-10; each item gets indicator + response + owner |
Guide words — the 7 (from HAZOP, adapted universal)
| Word | Meaning | Software example | Ops/finance example |
| لا (No) | nothing happens | service silent | supply stops |
| أكثر (More) | quantity up | larger load | over-pressure |
| أقل (Less) | quantity down | missing columns | under-pressure |
| جزء من (Part of) | only half | half-page read | half shipment |
| بالإضافة إلى (As well as) | unexpected extra | new column appears | contaminant |
| عكس (Reverse) | inverted | pages reversed / sign flipped | reverse flow |
| غير ذلك (Other than) | entirely different | different bank/format | different material |
Output table (copy-ready)
| # | What-if…? | Word | Impact | Likelihood | Early-warning indicator | Response | Owner |
Impact/likelihood: low / medium / high. No fake numbers — relative ranking.
Session rules (5)
- Defer filtering — generate freely first, critique later.
- No personal defense — challenge the plan, not the planner.
- Indicator or nothing — a scenario with no early-warning signal = anxiety.
- Owner per item — no owner = floating promise.
- Cadence review — a session without follow-up is theater (10–15 min weekly).
Anti-patterns
- «ماذا لو» without indicators → chronic anxiety consuming the team
- Opening every possibility without ranking → decision paralysis (top items act; the rest watch)
- Forgetting the positive face (what if it succeeds beyond plans?)
- Mixing anticipatory sessions with retrospective RCA — different meetings
- Skepticism aimed at people instead of ideas
- Over-documenting — one table per session is enough
Integration with existing protocols
- Red Team Attack = adversarial EXECUTION of this method; Qass Al-Haq = its retrospective mirror; What-If = the ANTICIPATION layer before both.
- Drops into stage gates (3.5/4) and pairs with
specification-writing/architecture-critique; every EPIC gets a PreMortem before kickoff.
Solo mode (30 min)
- Before any new commitment: "if this fails within 3 months — first 3 reasons?"
- Before any technical decision: "if the main assumption falls — how do I detect it early?"
- Weekly: "which indicator moved since last session?"
- On big success: "if this doubles — what breaks?"
Sources (compact)
Klein, Performing a Project Premortem (HBR 2007) · Mitchell/Russo/Pennington 1989 · CIA Tradecraft Primer (2009) · OSHA PSM accepted PHA methods (What-If, HAZOP, FMEA, FTA) · HAZOP/IEC 61882 · SWIFT/ASEMS · Army Red Team Handbook · FMEA/MIL-P-1629 · principlesofchaos.org · Roese counterfactual theory · Popper falsifiability. Full citations in the Arabic guide.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

