From spec-interview
Conducts multi-round interviews to refine rough SPEC.md into complete, implementation-ready specifications with tasks. Use for new features, requirements refinement, or ideas to actionable specs.
npx claudepluginhub leandroz/claude-plugins --plugin spec-interviewThis skill uses the workspace's default tool permissions.
Read the file `SPEC.md` in the current working directory. This file contains a rough idea or draft specification for a feature the user wants to build.
Provides UI/UX resources: 50+ styles, color palettes, font pairings, guidelines, charts for web/mobile across React, Next.js, Vue, Svelte, Tailwind, React Native, Flutter. Aids planning, building, reviewing interfaces.
Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Analyzes competition with Porter's Five Forces, Blue Ocean Strategy, and positioning maps to identify differentiation opportunities and market positioning for startups and pitches.
Read the file SPEC.md in the current working directory. This file contains a rough idea or draft specification for a feature the user wants to build.
Your job is to conduct a thorough, multi-round interview with the user to refine this spec into a complete, unambiguous, implementation-ready document. You are acting as a senior technical product manager and systems architect.
Read and analyze the SPEC.md file carefully. Identify every area that is underspecified, ambiguous, or missing.
Explore the codebase — Before asking any questions, use the Explore agent to understand the parts of the codebase relevant to the spec. Look at existing patterns, related files, conventions, and architecture. This ensures your questions are grounded in reality — you'll catch conflicts with existing code, spot reuse opportunities, and avoid proposing designs that fight the codebase.
Interview the user using the AskUserQuestion tool. Ask non-obvious, probing questions that go beyond surface-level requirements. Cover these dimensions as relevant:
Ask 2-4 questions per round using the AskUserQuestion tool. Group related questions together. Each question should:
Continue interviewing round after round. After each set of answers, analyze what new questions arise from the responses. Dig deeper into areas that reveal complexity. Do NOT stop after one round.
Signal completion: When you believe the spec is comprehensive enough to hand to a developer with zero additional questions, tell the user you're ready to write the final spec and ask if there's anything else they want to cover.
Once the interview is complete:
Write the refined, complete specification back to SPEC.md. The spec should:
Rename SPEC.md to a descriptive name based on the feature, using the pattern SPEC-<feature-name>.md (e.g., SPEC-user-notifications.md).
After writing the final spec, you MUST create a complete task list for implementation:
Read CLAUDE.md — Check the project's CLAUDE.md for relevant checklists, conventions, or architectural patterns. If there's a checklist that applies (e.g., "Adding a New Integration Type"), use it as the foundation for your task breakdown rather than inventing a generic one.
Break down the spec into tasks — Read through the final spec and identify every discrete piece of work needed. Each task should be small enough to implement in one focused session. Prefer many small tasks over few large ones.
Create tasks using TaskCreate — For each piece of work, create a task with:
Set up dependencies using TaskUpdate — After creating all tasks, wire up addBlockedBy / addBlocks relationships so tasks are ordered correctly. Common dependency patterns:
Present the task list — After creating all tasks, call TaskList and show the user a summary of the tasks and their dependency order, so they can review before implementation begins.
After all implementation tasks are completed, run a final review pass:
Verify — Use the superpowers:verification-before-completion skill to confirm the build passes and the feature actually works before reviewing code quality.
Code Review — Use the superpowers:requesting-code-review skill to review all changes against the spec and identify bugs, logic errors, or deviations from the specification.
Simplify — Use the simplify skill to review all changed code for reuse opportunities, code quality issues, and efficiency improvements. Fix any issues found.
Independent Audit (if available) — Use the auditcodex skill to send the changes to OpenAI Codex CLI for an independent second opinion. If Codex CLI is not installed or unavailable, skip this step.
Steps 1-3 are mandatory before considering the feature done. Step 4 is recommended when available.
$ARGUMENTS