Skip to main content
command CX Codex

quick-spec — Claude Code command: what it does, how to install

quick-spec reads your codebase, asks up to 10 questions and writes a focused spec file. Built for plain features and refactors where a full elicitation round is overkill.

no license ★ 1,357 updated 2026-03-01

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

What quick-spec does

The command takes a feature description and an optional output path: /quick-spec <feature-description> [output-path.md]. It starts by reading the repository on its own, with Glob, Grep and Read — directory layout, naming habits, data models, how tests are written. The frontmatter pins opus as the model.

Then it drafts its own answers: where the code should go, what the schema change looks like, which endpoints to add, how failures get handled. You get up to 10 questions, reserved for decisions where a wrong guess would cost real rework. Each one arrives with a suggested answer and the code that backs it.

Output is a markdown spec: scope, requirements, technical approach, edge cases, and a list of assumptions you can correct. Default path is spec.md; a file already sitting there gets updated instead of replaced. The 10-question ceiling is the trade-off: a vague request will not fit, and the command will not fall back to full spec-elicitation on its own.

What it helps with

  • turn a rough feature idea into a spec file before writing code
  • reuse the project's own conventions instead of inventing new ones
  • cut the interview down to the decisions that actually matter
  • refresh an existing spec.md for the next task
  • see which assumptions the command made, so you can correct them

Example prompts for the agent

  • /quick-spec add CSV export for the reports page, write it to docs/csv-export.md
  • /quick-spec move avatar uploads to S3
  • /quick-spec refactor the billing module into a service, output spec.md

How to install quick-spec

Manually: put the files in place

.claude/commands/quick-spec.md

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

Questions about quick-spec

How do I install quick-spec in Claude Code?

Save the command file as .claude/commands/quick-spec.md in your project, then call it as /quick-spec.

What does quick-spec do?

It studies the codebase first, suggests an approach, asks up to 10 targeted questions and writes the resulting spec to a markdown file.

How is it different from spec-elicitation?

It makes assumptions and recommends instead of asking about every dimension, and caps the interview at 10 questions. For a vague or wide-open feature that is not enough.

Similar slash commands

All slash commands for Agent setup: memory, context, orchestration →

From the same set112

The whole set →
frontend-developer frontend-developer — a React-focused subagent that builds and refactors TypeScript UI with testing and accessibility in mind. Use it for new interface work or difficult frontend changes. CX Codex ★ 1,357repo stars documentation-expert documentation-expert is a Claude Code subagent for creating and maintaining software documentation. It can handle requests for API references, user guides, and documentation structure. CX Codex ★ 1,357repo stars commit Generates task-aligned Conventional Commits, tracks status transitions, and validates changed files against task scopes. CX Codex +1 ★ 1,357repo stars incident-responder incident-responder guides production incident response, from assessing impact and coordinating roles to restoring service and documenting follow-up work. CX Codex ★ 1,357repo stars debugger debugger — a targeted troubleshooting subagent for Claude Code that isolates root causes, inspects test failures, and writes minimal diffs. CX Codex ★ 1,357repo stars extract-video-frames The extract-video-frames skill samples video at a chosen interval and saves matching audio clips when a soundtrack is present. Use it to prepare a recording for visual review, transcription, or handoff to another agent. CX Codex +1 ★ 1,357repo stars svelte-storybook svelte-storybook documents SvelteKit components in Storybook and writes the story files with Svelte CSF. Handy when a single component needs checking away from the running app. CX Codex ★ 1,357repo stars data-scientist data-scientist analyzes metrics, constructs advanced SQL workflows, and optimizes BigQuery queries to control data scanning costs. CX Codex ★ 1,357repo stars

Project sponsors

Companies that keep this analytics open