spec-elicitation — Claude Code command: what it does, how to install
spec-elicitation conducts a rigorous interview to turn rough feature concepts into detailed technical specifications before writing code.
no license ★ 1,357 updated 2026-03-01
.claude/commands/spec-elicitation.mdWhat spec-elicitation does
This command forces an interview-first workflow. Claude assumes the combined persona of a principal architect and product manager, systematically probing every weak spot in your proposed idea rather than jumping straight into code generation.
The questioning covers user volume, database schema relations, third-party integrations, failure states, and compliance needs. Claude relies on the AskUserQuestion tool to dig into vague replies, surface conflicting requirements, and challenge edge conditions. Once all gaps are closed, it compiles the collected answers into a well-organized markdown file.
Because the configuration frontmatter explicitly targets opus, running this prompt without access to the larger model will degrade the depth of architectural critique.
What it helps with
- Elicit exhaustive technical requirements prior to coding a non-trivial feature
- Uncover unhandled error states and boundary conditions in planned services
- Map out data retention policies and authentication rules in advance
- Generate a structured
spec.mdcontaining integration maps and business logic tables
Example prompts for the agent
- /spec-elicitation
- /spec-elicitation specs/notifications.md
- Help me scope out a multi-tenant payment gateway using /spec-elicitation
How to install spec-elicitation
Manually: put the files in place
.claude/commands/spec-elicitation.mdCall it with /spec-elicitation. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/spec-elicitation.mdCall it with /prompts:spec-elicitation. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/spec-elicitation.prompt.mdManually: put the files in place
.gemini/commands/spec-elicitation.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about spec-elicitation
How do I install spec-elicitation in Claude Code?
Place the command file at .claude/commands/spec-elicitation.md inside your repository or user config folder.
What does the spec-elicitation command do?
It subjects your feature idea to an exhaustive interview, testing assumptions and exporting the final structure into a specification.
Can I choose where the generated document is saved?
Yes. Pass an optional file path argument when running the command; otherwise, it defaults to spec.md.