Fuzzy AI Prompts? A 4-Phase Protocol to Clarify Them

Vague prompt in, wrong code out? This open protocol teaches AI agents to decompose assumptions, score decisions, ask at most 3 questions — and default the rest.

Every developer using an AI coding assistant has lived through both failure modes. You type "build me a user system" and the agent either guesses blindly — picks a stack, a database, an auth scheme you never asked for, and you spend the next hour undoing it — or it interrogates you to death with twelve questions before writing a single line. Both waste your time; they just waste it differently.

fuzzy-intent-clarifier is an open-source, MIT-licensed skill that gives AI agents a disciplined middle path. It's a four-phase protocol — decompose, score, prune, confirm — that works across Claude Code, Codex, Cursor, and Antigravity. Here's how it works and how to install it.

Phase 1: Decompose intent across 5 dimensions

Before writing anything, the agent scans the fuzzy prompt for hidden assumptions along five axes:

This turns "build me a user system" from one vague blob into a concrete list of, say, 10–15 decision points.

Phase 2: Score leverage — irreversibility × 0.6 + divergence × 0.4

Not all decisions deserve your attention. Each decision point gets a leverage score from 0–10:

LeverageScore = 0.6 × Irreversibility + 0.4 × Divergence

The weighting is the key insight: being wrong about something hard to undo hurts far more than being wrong about something opinionated. A decision can be controversial yet cheap to change — that one doesn't need to interrupt you.

Phase 3: Pareto pruning — ask the top 20%, at most 3

Here's the discipline that makes the whole thing work:

1. Rank every decision by leverage score, take the top 20%. 2. Hard cap: 1–3 questions per round. Never more — that's the anti-fatigue rule. 3. Floor: if nothing scores above 5.0, there are no dangerous disagreements — ask zero questions and just execute with defaults.

The remaining 80% of decisions don't vanish; they move to the next phase.

Phase 4: Low-friction questions + transparent defaults

The top questions go to you as multiple-choice options with a marked recommendation — on platforms with native UI (like Antigravity's ask_question) as interactive cards, elsewhere as clean A/B/C blocks in Markdown with a "reply 'confirm' to proceed" shortcut.

Crucially, the agent also publishes the 80% it decided itself as a transparent defaults list. You see exactly what was assumed, so nothing is silently baked in. The output is an execution blueprint: confirmed architecture + declared defaults + a ready-to-start task.

Worked example: "build me a user system"

Raw prompt in. Phase 1 decomposes it into decisions like: framework (Express vs Fastify vs NestJS), database (Postgres vs SQLite), auth (JWT vs sessions), password hashing (bcrypt vs argon2), API style, validation library, test coverage, Docker setup…

Phase 2 scores them. Database choice and auth scheme score high (irreversible, divergent). Test coverage and Docker setup score low (easy to add later, low disagreement).

Phase 3 prunes: the agent asks you 2 questions — "Postgres or SQLite? (Recommended: Postgres)" and "JWT or session cookies? (Recommended: JWT)". Everything else — bcrypt for hashing, Zod for validation, no Docker yet — goes into the transparent defaults list.

You answer in seconds, the agent starts with a blueprint you actually signed off on. No rework, no interrogation.

Installing it on your agent

The skill is platform-neutral. Pick your harness:

Claude Code — append the protocol rules to your project's CLAUDE.md, or drop the skill folder into your skills directory and reference skills/fuzzy-intent-clarifier/SKILL.md.

Codex / AGENTS.md agents — add the disambiguation block to the repo's AGENTS.md so it applies to every agent run in that repository.

Cursor — add the rules to .cursorrules or .cursor/rules/*.mdc so they're auto-mounted as context.

Antigravity — register it under skills/ plus GEMINI.md; the skill will use the native ask_question tool for the multiple-choice cards.

The repo includes the scoring rubric, the cross-platform wiring guide, output templates, and real walkthrough cases: github.com/LiHuan02/Skill-Dev.

FAQ

Does this slow down simple tasks?

No — that's what the 5.0 floor is for. "Change line 12's timeout to 5 seconds" scores nothing above the threshold, so the agent asks zero questions and just does it. The protocol only activates on genuinely ambiguous, multi-branch tasks.

Why max 3 questions? Why not ask everything important?

Because attention is the bottleneck. Each question costs you context-switching; beyond three, most people start answering carelessly, which is worse than a good default. The 80% defaults are published transparently, so you can still override any of them.

Can I tune the 20% ratio or the 0.6/0.4 weights?

Yes — they're defaults, not laws. The scoring rubric in the repo documents the full scale, so you can tighten the question budget (e.g. top 10%) for teams that prefer speed, or loosen it where correctness matters more than velocity.