requirements-clarifier
Skill6 starsChanged 4 months agoApache-2.0View on GitHub
Use when an implementation request is vague or underspecified and needs structured clarification before coding -- the user says "interview me", "ask me everything", "don't assume", or wants to avoid "that's not what I meant" outcomes from autonomous execution.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- aidankaokao/claude-skillstheir own version, first seen Oct 9, 2026
- smitshivalkar-spectims4567/hsj-agent-skillstheir own version, first seen Sep 29, 2026
- 2702207741-dev/agent-skills-pipelinetheir own version, first seen Jul 9, 2026
- ttmouse/skillstheir own version, first seen Nov 18, 2025
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- ttmouse/skills★ 34same name
- 2702207741-dev/agent-skills-pipeline★ 1same name
- aidankaokao/claude-skills★ 0same name
- smitshivalkar-spectims4567/hsj-agent-skills★ 0same name
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 repository116 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- skills/graphify/references/CLAUDE.mdCLAUDE.md
- agent-config-security-auditSkill
- agent-harness-designSkill
- agent-readable-docsSkill
- agent-runtime-patternsSkill
- agent-session-forensicsSkill
- ai-regression-testingSkill
- ai-slop-cleanerSkill
- api-doc-reviewSkill
- architecture-decision-recordsSkill
- architecture-simplificationSkill
- ask-claudeSkill
- ask-codexSkill
- ask-geminiSkill
- autonomous-delivery-pipelineSkill
- baseline-comparison-reviewSkill
- bigquery-cost-auditSkill
- brainstormingSkill
- browser-automation-safetySkill
- bug-huntSkill
- build-fix-minimal-diffSkill
- canonical-advisor-routingSkill
- change-impact-checkSkill
- changelog-generatorSkill
- ci-failure-readoutSkill
- codebase-migration-batchesSkill
- context-compressionSkill
- context-docsSkill
- context-minimizationSkill
- context-retrieval-loopSkill
- data-qualitySkill
- dataset-split-reviewSkill
- dbt-incremental-strategy-auditSkill
- dbt-preflightSkill
- dbt-strategySkill
- dead-code-removalSkill
- defuddleSkill
- dependency-cleanupSkill
- deploy-pipeline-runbookSkill
- dispatching-parallel-agentsSkill
- doc-consistency-checkSkill
- environment-doctorSkill
- experiment-tracking-reviewSkill
- failure-triageSkill
- filesystem-mcp-guardrailsSkill
- finishing-a-development-branchSkill
- flaky-test-investigationSkill
- gh-address-commentsSkill
- github-ci-failure-triageSkill
- graphifySkill
- handoff-disciplineSkill
- hard-won-skill-extractorSkill
- hook-safety-reviewSkill
- incident-readoutSkill
- incremental-migrationSkill
- json-canvasSkill
- local-rag-mcpSkill
- log-driven-diagnosisSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
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 32
Ask ONE question at a time -- never batch multiple questions
- Distinctive: line 38
Do not proceed to execution until ambiguity ≤ the resolved threshold for this run
- Distinctive: line 47
Check if cwd has existing source code, package files, or git history
- Distinctive: line 48
If source files exist AND the user's idea references modifying/extending something: brownfield
- Distinctive: line 51
Set ambiguity threshold: Default 0.2 (20%)
- Distinctive: line 93
After receiving the user's answer, score clarity across all dimensions.
- Distinctive: line 100
After scoring, show the user their progress:
- Distinctive: line 141
When ambiguity ≤ threshold (or hard cap / early exit):
- Distinctive: line 179
After the spec is written, present execution options:
- Distinctive: line 195
User says "stop", "cancel", "abort": Stop immediately
≈ “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
Purpose
Requirements Clarifier implements Socratic questioning with mathematical ambiguity scoring. It replaces vague ideas with crystal-clear specifications by asking targeted questions that expose hidden assumptions, measuring clarity across weighted dimensions, and refusing to proceed until ambiguity drops below the resolved threshold. The output feeds into planning and execution, ensuring maximum clarity at every stage.
When to Use
- User has a vague idea and wants thorough requirements gathering before execution
- User says "deep interview", "interview me", "ask me everything", "don't assume", "make sure you understand"
- User wants to avoid "that's not what I meant" outcomes from autonomous execution
- Task is complex enough that jumping to code would waste cycles on scope discovery
- User wants mathematically-validated clarity before committing to execution
Do Not Use When
- User has a detailed, specific request with file paths, function names, or acceptance criteria -- execute directly
- User wants to explore options or brainstorm -- use the plan skill instead
- User wants a quick fix or single change -- execute directly
- User says "just do it" or "skip the questions" -- respect their intent
Inputs
- A vague or underspecified implementation idea from the user
- For brownfield work: repo evidence (file paths, symbols, patterns) gathered by an explore agent before questions are asked
Execution Policy
- Ask ONE question at a time -- never batch multiple questions
- Target the WEAKEST clarity dimension with each question
- Make weakest-dimension targeting explicit every round: name the weakest dimension, state its score/gap, and explain why the next question is aimed there
- Gather codebase facts via an explore agent BEFORE asking the user about them (inspect the repo instead)
- For brownfield confirmation questions, cite the repo evidence that triggered the question (file path, symbol, or pattern) instead of asking the user to rediscover it
- Score ambiguity after every answer -- display the score transparently
- Do not proceed to execution until ambiguity ≤ the resolved threshold for this run
- Allow early exit with a clear warning if ambiguity is still high
Workflow
Phase 1: Initialize
- Parse the user's idea
- Detect brownfield vs greenfield:
- Check if cwd has existing source code, package files, or git history
- If source files exist AND the user's idea references modifying/extending something: brownfield
- Otherwise: greenfield
- For brownfield: Explore relevant codebase areas
- Set ambiguity threshold: Default 0.2 (20%)
- Announce the interview to the user:
Starting requirements clarification. I'll ask targeted questions to understand your idea thoroughly before building anything. After each answer, I'll show your clarity score. We'll proceed once ambiguity drops below 20%.
Your idea: "{initial_idea}" Project type: {greenfield|brownfield} Current ambiguity: 100%
Phase 2: Interview Loop
Repeat until ambiguity ≤ threshold OR user exits early:
Step 2a: Generate Next Question
Question targeting strategy:
- Identify the dimension with the LOWEST clarity score
- Generate a question that specifically improves that dimension
- State, in one sentence before the question, why this dimension is now the bottleneck
- Questions should expose ASSUMPTIONS, not gather feature lists
Question styles by dimension:
| Dimension | Question Style | Example |
| Goal Clarity | "What exactly happens when...?" | "When you say 'manage tasks', what specific action does a user take first?" |
| Constraint Clarity | "What are the boundaries?" | "Should this work offline, or is internet connectivity assumed?" |
| Success Criteria | "How do we know it works?" | "If I showed you the finished product, what would make you say 'yes, that's it'?" |
| Context Clarity (brownfield) | "How does this fit?" | "I found JWT auth middleware in src/auth/. Should this feature extend that path or diverge?" |
Step 2b: Ask the Question
Present it with the current ambiguity context:
Round {n} | Targeting: {weakest_dimension} | Why now: {rationale} | Ambiguity: {score}%
{question}Step 2c: Score Ambiguity
After receiving the user's answer, score clarity across all dimensions.
Greenfield: ambiguity = 1 - (goal × 0.40 + constraints × 0.30 + criteria × 0.30)
Brownfield: ambiguity = 1 - (goal × 0.35 + constraints × 0.25 + criteria × 0.25 + context × 0.15)
Step 2d: Report Progress
After scoring, show the user their progress:
Round {n} complete.
| Dimension | Score | Weight | Weighted | Gap |
| --- | --- | --- | --- | --- |
| Goal | {s} | {w} | {s*w} | {gap or "Clear"} |
| Constraints | {s} | {w} | {s*w} | {gap or "Clear"} |
| Success Criteria | {s} | {w} | {s*w} | {gap or "Clear"} |
| **Ambiguity** | | | **{score}%** | |
{score <= threshold ? "Clarity threshold met! Ready to proceed." : "Focusing next question on: {weakest_dimension}"}Step 2e: Check Soft Limits
- Round 3+: Allow early exit if user says "enough", "let's go", "build it"
- Round 10: Show soft warning: "We're at 10 rounds. Current ambiguity: {score}%. Continue or proceed?"
- Round 20: Hard cap: "Maximum rounds reached. Proceeding with current clarity level ({score}%)."
Phase 3: Challenge Agents
At specific round thresholds, shift the questioning perspective:
Round 4+: Contrarian Mode
Challenge the user's core assumption. Ask "What if the opposite were true?" or "What if this constraint doesn't actually exist?"
Round 6+: Simplifier Mode
Probe whether complexity can be removed. Ask "What's the simplest version that would still be valuable?"
Round 8+: Ontologist Mode (if ambiguity still > 0.3)
The ambiguity is still high after 8 rounds, suggesting we may be addressing symptoms rather than the core problem. Ask "What IS this, really?"
Challenge modes are used ONCE each, then return to normal Socratic questioning.
Phase 4: Crystallize Spec
When ambiguity ≤ threshold (or hard cap / early exit):
- Generate the specification
- Write to file:
.specs/requirements-clarifier-{slug}.md
Spec structure:
# Requirements Spec: {title}
## Metadata
- Rounds: {count}
- Final Ambiguity Score: {score}%
- Type: greenfield | brownfield
## Clarity Breakdown
| Dimension | Score | Weight | Weighted |
...
## Goal
{crystal-clear goal statement}
## Constraints
- {constraint 1}
## Non-Goals
- {explicitly excluded scope}
## Acceptance Criteria
- [ ] {testable criterion 1}
## Assumptions Exposed & Resolved
| Assumption | Challenge | Resolution |
...Phase 5: Execution Bridge
After the spec is written, present execution options:
- Execute with full planning — Plan then implement with verification
- Execute directly — Implement from spec, no additional planning
- Refine further — Continue interviewing to improve clarity
Output
- A requirements spec written to
.specs/requirements-clarifier-{slug}.mdwith goal, constraints, non-goals, acceptance criteria, and clarity breakdown - An execution-bridge choice presented to the user: full planning, direct execution, or further refinement
Failure Modes
- Hard cap at 20 rounds: Proceed with whatever clarity exists, noting the risk
- Soft warning at 10 rounds: Offer to continue or proceed
- Early exit (round 3+): Allow with warning if ambiguity > threshold
- User says "stop", "cancel", "abort": Stop immediately
- Ambiguity stalls (same score +-0.05 for 3 rounds): Activate Ontologist mode to reframe
Verification
- Interview completed (ambiguity ≤ threshold OR user chose early exit)
- Ambiguity score displayed after every round
- Every round explicitly names the weakest dimension
- Challenge agents activated at correct thresholds (round 4, 6, 8)
- Spec file written
- Spec includes: goal, constraints, acceptance criteria, clarity breakdown
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.

