Socratic design

From fmflurry/settings-opencode · View interactive version

Socratic design is an AI agent skill from the GitHub repository fmflurry/settings-opencode. Use when a planning, design, architecture, or refactor decision is still open. Spike a question a prototype under 30 minutes can settle, restate an L-sized goal in your own words before planning, otherwise ask exactly one dependency-safe question.

How to use this skill

Skill file

Socratic Design Skill

why-not-tooled: whether a prototype under 30 minutes can settle a question, and whether a task is L-sized, is a judgment no linter can make.

When to Activate

Use this skill before any planning, design, architecture, or refactor work when critical decisions are not yet closed.

Resolve those decisions with evidence before producing a plan or implementation.

Spike before asking

Any question a spike under 30 minutes can settle is prototyped first. Present the result. Do not ask that question.

A spike is a throwaway prototype, script, or measurement. Keep it reversible. Do not start one that will not finish within 30 minutes. Past that bound, ask. Delete the prototype once the result is recorded. Do not commit it with the plan.

Order for a decision: the repo, then a spike, then one question. A spiked decision is resolved. The evidence is the spike result.

Example: a question replaced by a spike result

Not asked: should the cache key include the tenant id.

Spike: a throwaway script writes one entity id for two tenants and reads it back. With no tenant id in the key, tenant B receives tenant A's payload. The run finishes in under 30 minutes.

Presented instead of the question:

In your own words (L-sized)

An L-sized task is one whose plan crosses modules and changes a contract, a migration, or other public behavior. S and M tasks skip this step.

Before planning an L-sized task, and before spiking or asking a design question about it:

  1. Restate the goal in your own words. Do not quote the request back.
  2. Restate the constraints in your own words.
  3. Get confirmation of that restatement.

That confirmation is the one question of the turn. Do not plan until it is confirmed. A spike cannot close it: only the requester knows the goal.

Non-Negotiables

Order (strict)

On an L-sized task, the in-your-own-words confirmation comes before this list.

  1. Outcome
  2. Scope
  3. Constraints
  4. Facts
  5. Invariants
  6. Options
  7. Tradeoffs
  8. Decision
  9. Validation
  10. Exec Gate

Q Gate

Each Q must be:

Turn Shape

Spike (the question is replaced by the result):

Ask (only when a spike cannot settle it):

Internal Log

Track: id | status(open/resolved/assumed) | deps | answer | confidence | evidence.

A spike sets resolved. Its evidence is the spike result. Rule: no child Q if parent open.

Stop

Stop questions only when:

Then output:

  1. Shared understanding (for an L-sized task, the confirmed restatement)
  2. Resolved decision tree
  3. Open risks + owner
  4. Plan skeleton

Safety

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.