Counterfactual Premortem Oracle — AI skill for Claude Code
Pre-execution AI agent skill for counterfactual failure simulation, epistemic provenance auditing, rollback symmetry checks, and intent-drift detection.
How to install Counterfactual Premortem Oracle
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open Emincanozen/counterfactual-premortem-oracle and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Counterfactual Premortem Oracle does
Pre-execution AI agent skill for counterfactual failure simulation, epistemic provenance auditing, rollback symmetry checks, and intent-drift detection.
Alternatives in AI
- Mex — Persistent project memory for AI coding agents 672 ★
- Claudekit — by Carl Rannaberg - Impressive CLI toolkit providing auto-save checkpointing, code quality hooks, specificatio 633 ★
- Mirofish CLI — Multi-agent AI prediction engine - digital sandbox for scenario simulation (fork of 666ghj/MiroFish) 307 ★
README
Counterfactual Pre-Mortem Oracle
[](LICENSE) [](https://www.python.org/downloads/) [](https://github.com/Emincanozen/counterfactual-premortem-oracle) [](https://github.com/Emincanozen/counterfactual-premortem-oracle/actions/workflows/ci.yml)
**Counterfactual Pre-Mortem Oracle** is a zero-dot whitespace agent skill that performs pre-execution epistemic safety audits, Pearl-style counterfactual failure simulation, rollback symmetry verification, and intent drift forensics before state mutation occurs.
Screenshots
Pre-Mortem Audit & Intent Drift Alignment

Automated Test Verification Suite

The Zero-Dot Void in Autonomous AI Skills
Over 95% of public agent skills focus exclusively on *how to generate code, invoke APIs, or orchestrate tools*. Almost none evaluate the **epistemic safety** of an agent's reasoning before mutating state on disk, in databases, or across remote networks.
In multi-turn autonomous loops (Turn 4+), agents regularly fall into **Local Optimization Traps** and develop **Epistemic Drift**:
- Speculative assumptions are recorded as working notes.
- In subsequent turns, the agent mistakes its own speculative notes for ground truth.
- Irreversible mutations (
rm -rf, force pushes, unbacked deletions, unparameterized queries) execute with zero rollback vectors. - Silent error-swallowing (
except: pass) reports success (exit code 0) while corrupting data.
The **Counterfactual Pre-Mortem Oracle** closes this saf
Related Skills
Review Production ML
Pre-deployment and in-production ML review — training/serving skew, drift, delayed labels, versioning of model
Counterfactual Statistics
Statistics for counterfactual and paired-branch ML experiments - the independent unit, paired tests against a
Multi Account Tool
Switch between multiple AI CLI accounts (Claude Code, Codex, Gemini/Antigravity) from one TUI — Keychain-backe
Mechkit
Agentic tooling for mechanical design: an AI agent derives parts from your intent and constraints, checks them
Whiteboard Defense
Know what your AI agent built, and where it just used its defaults. A skill + plugin for Claude Code, Codex an
Project Oracle
Scanner and auditor for AI agent context files - generates AGENTS.md/CLAUDE.md, detects drift in CI, scores ex
Related Agents
Crypto Attacker
Cryptography and TLS security specialist. Handles TLS configuration auditing, JWT algorithm confusion, padding
Systemores Auditor
Specialist in AI agent behavioral evaluation, prompt stress testing, MCP 2026 tool schema auditing, alignment
Diff Premortem
Blind pre-mortem review of a diff. Use when verifying a change and an unbiased risk read is needed — pass ONLY