socratic
Skill1 starsChanged 9 days agoMITView on GitHub
This skill should be used when the user asks to "build", "design", "scaffold", "architect", or "plan" any system, feature, service, app, agent, pipeline, connector, or tool — especially when the request is short, vague, or underspecified. It should also be used when the user asks to "review this architecture", "what am I missing", "ask me the right questions", "poke holes in this", or requests a design review before implementation. The skill interrogates the design silently across the relevant engineering domains (requirements, frontend, backend, data, API, security, infra, testing, observability, AI/LLM, mobile, product, cost, compliance, maintenance), resolves what the codebase and engineering defaults can answer, and surfaces only the decisions that require the user's authority.
19 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- dvy1987/agent-loomtheir own version, first seen Nov 15, 2026
- devjiwonchoi/skillstheir own version, first seen Nov 8, 2026
- shetengteng/skillix-hubtheir own version, first seen Nov 8, 2026
- 0xSagaCity/socratictheir own version, first seen Oct 17, 2026
- oakreader/oakreadertheir own version, first seen Oct 16, 2026
- vansvost-arch/claude-skillstheir own version, first seen Oct 15, 2026
Used with
Projects with it also use explain.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
sunnyclinches44Skillexplain
Explains code using real-world analogies and ASCII diagrams
Also in 4 projects that use this
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- m4vic/socratic★ 117100% same
Wrote their own version · 18
- neurofoo/agent-skills★ 111same name
- oakreader/oakreader★ 46same name
- Hassaan146/claude-skills★ 18same name
- dawn840705/codex-code-studios★ 17same name
- roby2358/skills★ 5same name
- shetengteng/skillix-hub★ 5same name
- VicBa2000/socratiskill★ 5same name
- dvy1987/agent-loom★ 4same name
- jihkyuo/skills★ 3same name
- devjiwonchoi/skills★ 2same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository62 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/skills/humanizer/AGENTS.mdAGENTS.md
- agentshieldSkill
- asd-ste100Skill
- autonomous-agent-engineeringSkill
- awwwardsSkill
- backend-engineeringSkill
- boarduiSkill
- design-systemsSkill
- frontend-engineeringSkill
- interface-designSkill
- jurySkill
- karpathy-guidelinesSkill
- last30daysSkill
- lemo-opuscarSkill
- motionsites-web-builderSkill
- quality-engineeringSkill
- rev-engineerSkill
- scraplingSkill
- security-auditSkill
- skillforgeSkill
- stageshowSkill
- technical-documentationSkill
- agentshieldSkill
- anti-vcodeSkill
- arenaSkill
- asd-ste100Skill
- autonomous-agent-engineeringSkill
- awwwardsSkill
- backend-engineeringSkill
- boarduiSkill
- courtSkill
- designsSkill
- design-systemsSkill
- diagram-designSkill
- frontend-engineeringSkill
- humanizerSkill
- impeccableSkill
- interface-designSkill
- jurySkill
- karpathy-guidelinesSkill
- last30daysSkill
- lemo-opuscarSkill
- logo-designSkill
- model-routerSkill
- motionsites-web-builderSkill
- ponytailSkill
- quality-engineeringSkill
- rev-engineerSkill
- rigorSkill
- sanzo-wada-colorsSkill
- scraplingSkill
- secure-auditSkill
- security-auditSkill
- skillforgeSkill
- stageshowSkill
- stealSkill
- tasteSkill
- technical-documentationSkill
- threeuiSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
40 rules. 0 are common, 27 are distinctive, and 13 are very specific to this project.
0
Common
Most of the 17 edited versions we read keep these.
27
Distinctive
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Use scripts/socratic_engine.py for automated domain scanning, token budgeting, and contract scaffolding:
- Distinctive: line 34
Mode A — Self-interrogation (default): Ask and answer the relevant questions internally, then show the resulting contract once.
- Distinctive: line 36
Mode B — Interactive interview (opt-in): Ask the user one yes/no question at a time.
- Distinctive: line 38
If unsure, use Mode A. Silence is not a request to be interviewed.
- Distinctive: line 62
Do not stop at the first match.
- Distinctive: line 66
Keep the user-facing behavior unchanged while controlling context use:
- Distinctive: line 70
Escalation: If a core answer exposes a serious security, reliability, compliance, scale, or operational risk, replace that core domain with …
- Very specific: line 72
Treat $socratic lite or $socratic quick as an explicit Core request.
- Very specific: line 80
Use a pack when the task clearly maps to a specialized body of tradeoffs, failure modes, or heuristics that the generic domain files do not …
- Distinctive: line 82
Prefer zero to two packs per task.
- Distinctive: line 83
Treat pack content as compact decision support: question, default answer pattern, tradeoffs, anti-patterns, escalation triggers, and …
- Very specific: line 89
Use packs/software-design/core.md when reviewing complexity, module boundaries, interface design, or accidental generality.
- Very specific: line 90
Use packs/domain-modeling/core.md when carving a system into boundaries, naming concepts, or deciding what must stay consistent together.
- Very specific: line 91
Use packs/data-systems/core.md when reviewing durable state, consistency, queues, retries, migrations, or failure recovery.
- Very specific: line 92
Use packs/operations/core.md when the work must survive production — timeouts, retries, load shedding, rollback, or alerting.
- Very specific: line 93
Use packs/threat-modeling/core.md when mapping trust boundaries, attacker paths, abuse cases, mitigations, or security verification.
- Very specific: line 94
Use packs/ai-engineering/core.md when building an LLM product, RAG system, model evaluation, or tool-enabled workflow.
- Very specific: line 95
Use packs/agent-design/core.md when building an agent or subagent, splitting work across agents, setting tool permissions, or deciding how …
- Very specific: line 96
Use packs/legacy-change/core.md when modifying code that already works, has no tests, or is being replaced incrementally.
- Very specific: line 97
Use packs/testing-design/core.md when deciding what to test, what to mock, or why a suite is brittle or untrusted.
- Very specific: line 98
Use packs/product-discovery/core.md when the value of the thing itself is unproven — before the engineering packs, not alongside them.
- Distinctive: line 114
Read first: Use the codebase, configuration, documentation, prior conversation, and repository conventions.
- Distinctive: line 115
Apply the engineering default: When evidence does not decide an engineering choice, take a defensible default and record consequential …
- Distinctive: line 116
Escalate only authority decisions: Ask the user only about business priorities, budget, vendor choice, target market, legal risk tolerance, …
- Distinctive: line 118
Do this silently. The user should see the resulting decisions, not the raw question bank.
- Distinctive: line 126
After each domain or decision cluster, stop expanding the review when all of the following are true:
- Distinctive: line 129
Every material risk has a mitigation, a verification step, an explicit acceptance by the appropriate authority, or a clearly stated …
- Distinctive: line 130
No unresolved contradiction changes the implementation plan.
- Distinctive: line 134
If any condition fails, add the smallest relevant domain, deeper question depth, or pack.
- Distinctive: line 157
When the user explicitly requests an interview:
- Distinctive: line 160
Ask one material decision at a time with a recommended default.
- Distinctive: line 162
Keep the interaction proportional: 0-2 questions for a one-off, 3-6 for a prototype, 8-15 for production, and 15-25 for money, PII, health, …
- Distinctive: line 167
Use these as a sanity check, not a fixed router:
- Distinctive: line 184
Do not ask what project inspection can answer.
- Distinctive: line 185
Do not expose the full question bank to the user by default.
- Distinctive: line 186
Do not escalate engineering decisions merely to avoid responsibility.
- Distinctive: line 187
Do not keep interviewing after the user asks to proceed.
- Distinctive: line 188
Do not claim verification without evidence.
- Distinctive: line 189
Do not present legal conclusions.
- Distinctive: line 190
Do not depend on vendor-specific planning modes, memory systems, tool names, or subagent APIs.
“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Socratic
Question yourself till you're left with only answers.
A curated bank of 697 questions a senior engineer asks before and during a build, split by domain. The default mode is self-interrogation, not interviewing the user. Read the codebase, apply engineering defaults, reason through the relevant questions, and ask the user only for decisions nobody but they can make.
Antigravity CLI Helper
Use scripts/socratic_engine.py for automated domain scanning, token budgeting, and contract scaffolding:
# Scan task text to detect required domains, packs, and token budget:
python3 scripts/socratic_engine.py scan "Build a distributed queue with Redis and Postgres"
# Generate a Socratic Contract scaffold:
python3 scripts/socratic_engine.py contract "Build payment webhook receiver"
# Check readiness gates (MVP, Production, Enterprise):
python3 scripts/socratic_engine.py gate productionTwo modes
Mode A — Self-interrogation (default). Ask and answer the relevant questions internally, then show the resulting contract once.
Mode B — Interactive interview (opt-in). Ask the user one yes/no question at a time. Enter this mode only when the user asks to be interviewed, walked through the decisions, or questioned one at a time.
If unsure, use Mode A. Silence is not a request to be interviewed.
Mode A — Self-interrogation
1. Build the working domain set dynamically
For every build, include Requirements and Testing. Then inspect both the request and the existing project for domain signals:
| Signal in the request or project | Domain file |
| UI, page, component, dashboard, form, frontend | 01-frontend.md |
| service, endpoint, job, queue, backend, business logic | 02-backend.md |
| database, schema, storage, persistence, migration, cache | 03-data.md |
| API, SDK, webhook, connector, integration, OAuth | 04-api.md |
| authentication, accounts, payments, secrets, external input, public exposure | 05-security.md |
| deployment, CI/CD, containers, cloud, scaling | 06-infra.md |
| production, unattended work, cron, monitoring | 08-observability.md |
| AI, LLM, agent, prompt, model, RAG, tool use | 09-ai-llm.md |
| mobile, iOS, Android, offline, PWA | 10-mobile.md |
| human-facing workflow, onboarding, errors, CLI | 11-product-ux.md |
| scale, latency, traffic, token or cloud spend | 12-cost-performance.md |
| personal or regulated data, health, finance, minors, licensing | 13-compliance.md |
| maintained, long-lived, or team-owned work | 14-team-maintenance.md |
Do not stop at the first match. A connector, for example, normally pulls in API, Security, and Testing. If answering one domain reveals another dependency, add that domain and continue until a complete pass reveals no new domains.
2. Load the smallest sufficient base question depth
Keep the user-facing behavior unchanged while controlling context use:
- Core (default): For routine, prototype, internal, or moderately scoped work, read the matching files under
questions/core/. Always includequestions/core/00-requirements.mdandquestions/core/07-testing.md. - Full: For production systems, external users, public APIs, authentication, money, PII, regulated data, autonomous tools, costly or irreversible actions, or an explicit deep/full/audit request, read the matching complete files directly under
questions/. Always include the complete Requirements and Testing files. - Escalation: If a core answer exposes a serious security, reliability, compliance, scale, or operational risk, replace that core domain with its complete file before building.
Treat $socratic lite or $socratic quick as an explicit Core request. Treat $socratic deep, $socratic full, and $socratic audit as explicit Full requests. Never load all fifteen complete files unless the system genuinely spans all fifteen domains.
Questions consume context even when asked silently. Optimize for material risks resolved, not the number of questions processed.
3. Add specialized knowledge packs only when they sharpen the task
Base domain files stay primary. Packs are optional overlays, not replacements.
- Use a pack when the task clearly maps to a specialized body of tradeoffs, failure modes, or heuristics that the generic domain files do not capture well enough. First consult
packs/registry.mdafter selecting the base domains. - Load
packs/<pack>/core.mdafter the base domain files. A pack may also providefull.md; load it only when the core pack proves insufficient for the decision at hand. Most packs ship core only. - Prefer zero to two packs per task. Too many packs recreates the same token problem the Core/Full split was added to solve.
- Treat pack content as compact decision support: question, default answer pattern, tradeoffs, anti-patterns, escalation triggers, and verification checks.
- Select a pack by the capability it adds, not by recognising a book title. Its source material is provenance, not the routing rule.
- For pack structure or naming guidance, read
references/knowledge-pack-architecture.md.
Examples:
- Use
packs/software-design/core.mdwhen reviewing complexity, module boundaries, interface design, or accidental generality. - Use
packs/domain-modeling/core.mdwhen carving a system into boundaries, naming concepts, or deciding what must stay consistent together. - Use
packs/data-systems/core.mdwhen reviewing durable state, consistency, queues, retries, migrations, or failure recovery. - Use
packs/operations/core.mdwhen the work must survive production — timeouts, retries, load shedding, rollback, or alerting. - Use
packs/threat-modeling/core.mdwhen mapping trust boundaries, attacker paths, abuse cases, mitigations, or security verification. - Use
packs/ai-engineering/core.mdwhen building an LLM product, RAG system, model evaluation, or tool-enabled workflow. - Use
packs/agent-design/core.mdwhen building an agent or subagent, splitting work across agents, setting tool permissions, or deciding how agent output gets verified. - Use
packs/legacy-change/core.mdwhen modifying code that already works, has no tests, or is being replaced incrementally. - Use
packs/testing-design/core.mdwhen deciding what to test, what to mock, or why a suite is brittle or untrusted. - Use
packs/product-discovery/core.mdwhen the value of the thing itself is unproven — before the engineering packs, not alongside them.
New packs follow the same overlay pattern. Consult packs/registry.md for pairings and for choosing between adjacent packs.
3b. Check whether a target grade is active
A grade is different from a pack: it does not add topic depth, it sets the target the whole run is aiming for and changes what "done" means. Load one when the user names a target explicitly — "make this production ready", "MVP is fine", "get this to production grade", $socratic mvp, $socratic production — or when the request states it ("this needs to survive real traffic", "just a prototype for now").
Consult grades/registry.md, load the matching grade file, and follow the domains and packs it marks mandatory in addition to whatever the dynamic scan already selected. When a grade is active, its gate — not step 5's generic sufficiency check — decides when the run stops. No grade named means no change: proceed as below.
Grades are cumulative: enterprise supersedes production supersedes mvp. Resolve the entire chain down to mvp, not only the items listed in the named grade's own file — each file states what it supersedes and does not repeat those items in different words, so there is exactly one definition of each check to satisfy, not several that could disagree.
4. Self-answer the selected material questions
Resolve each selected question in this order:
- Read first. Use the codebase, configuration, documentation, prior conversation, and repository conventions.
- Apply the engineering default. When evidence does not decide an engineering choice, take a defensible default and record consequential assumptions.
- Escalate only authority decisions. Ask the user only about business priorities, budget, vendor choice, target market, legal risk tolerance, or irreversible decisions that materially change the result.
Do this silently. The user should see the resulting decisions, not the raw question bank.
5. Run a sufficiency check and stop deliberately
Socratic is not an instruction to exhaust a questionnaire. Its purpose is to reduce material uncertainty until the agent has a solid, evidence-backed basis to act.
If a grade is active, skip this step's five conditions and use the grade's gate instead — stop when every gate item is resolved, mitigated with a stated reason, or marked not applicable, not when this section's conditions happen to be met. The rest of this step applies only when no grade was named.
After each domain or decision cluster, stop expanding the review when all of the following are true:
- The requested outcome, scope, and consequential assumptions are clear.
- Every material risk has a mitigation, a verification step, an explicit acceptance by the appropriate authority, or a clearly stated escalation.
- No unresolved contradiction changes the implementation plan.
- The next plausible question would not materially change the design, risk, cost, authority decision, or verification plan.
- The plan has a proportionate way to falsify its riskiest assumptions.
If any condition fails, add the smallest relevant domain, deeper question depth, or pack. Do not continue merely to use more questions, and do not stop merely because a token budget is low. Stop because the remaining uncertainty is immaterial to the current task.
6. Emit the output contract once
Before implementation, emit:
Domains considered: <each selected domain and why>
Self-answered highlights: <5-10 decisions that shaped the design>
Assumed (flag if wrong): <consequential defaults>
Open questions for you: <ideally 0-3 authority decisions>
Top risks: <material risks from the selected domains>
Plan: <what will be built>Batch any genuinely blocking open questions. Do not turn the interrogation into the deliverable.
7. Build and verify
Build after blocking decisions are resolved. Apply the Verification guidance from every loaded domain and pack, including anything added during the review. Report what passed, failed, or could not be verified without external access.
Interactive mode
When the user explicitly requests an interview:
- Build the same dynamic domain set and choose Core or Full using the same rules.
- Ask one material decision at a time with a recommended default.
- On a correction, absorb it and continue. If the user says to stop or proceed, self-answer the remainder and build.
- Keep the interaction proportional: 0-2 questions for a one-off, 3-6 for a prototype, 8-15 for production, and 15-25 for money, PII, health, or regulated systems.
- Emit the same output contract before building.
Preset domain combinations
Use these as a sanity check, not a fixed router:
| Building | Expected domains |
| CRUD web app | 00, 01, 02, 03, 05, 07 |
| Public API or SDK | 00, 02, 04, 05, 08, 12, 07 |
| Connectors or integrations | 00, 04, 05, 07, plus each connector's dependencies |
| AI agent or chatbot | 00, 09, 05, 12, 08, 11, 07 |
| RAG pipeline | 00, 09, 03, 12, 13, 07 |
| Data pipeline or ETL | 00, 03, 06, 08, 13, 07 |
| Mobile app | 00, 10, 01, 05, 11, 07 |
| Infrastructure change | 00, 06, 08, 12, 14, 07 |
| Payments feature | 00, 02, 03, 05, 13, 07 |
| One-off script | 00, 07 |
Guardrails
- Do not ask what project inspection can answer.
- Do not expose the full question bank to the user by default.
- Do not escalate engineering decisions merely to avoid responsibility.
- Do not keep interviewing after the user asks to proceed.
- Do not claim verification without evidence.
- Do not present legal conclusions; identify matters requiring counsel.
- Do not depend on vendor-specific planning modes, memory systems, tool names, or subagent APIs.
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.

