Skip to main content
command CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/spec-elicitation.md
Open on GitHub

What 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.md containing 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.md

Call it with /spec-elicitation. For all projects use ~/.claude/commands/

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.

Similar slash commands

All slash commands for Writing and docs →

From the same set112

The whole set →
skill-generator-agent skill-generator-agent turns a skill spec into files on disk: SKILL.md, helper scripts, reference docs. Then it checks frontmatter and layout. CX Codex ★ 1,357repo stars milestone-tracker milestone-tracker aggregates milestone data from Linear, GitHub, and git history to calculate burn-down velocity and spot schedule risks. CX Codex +1 ★ 1,357repo stars audit-dependencies audit-dependencies audits dependency direction in Rust projects and flags layer violations. Use it when reviewing architecture or preparing a refactor. CX Codex +1 ★ 1,357repo stars build-skill build-skill walks a new Claude skill through four agents: requirement questions, file generation, validation, docs. You approve the spec before any file appears. CX Codex +1 ★ 1,357repo stars audit-ports-adapters The audit-ports-adapters command audits ports and adapters in Rust code, checking trait placement, implementations, and whether use cases depend on abstractions. CX Codex +1 ★ 1,357repo stars project-architect project-architect analyzes project requirements, recommends a tech stack, and scaffolds folder structure for new projects or architecture refactoring. Handles web apps, microservices, monorepos, and backend services. CX Codex ★ 1,357repo stars parallel-tasks parallel-tasks pulls task queues from issue trackers and assigns independent items across multiple parallel agents without file conflicts. CX Codex +1 ★ 1,357repo stars code-reviewer-pro code-reviewer-pro — a Claude Code subagent that reviews code for quality, security and best practices. Runs right after you write or modify code. CX Codex ★ 1,357repo stars

Project sponsors

Companies that keep this analytics open