Spec interview

From cfircoo/claude-code-toolkit · View interactive version

Spec interview is an AI agent skill from the GitHub repository cfircoo/claude-code-toolkit. Interviews users to build comprehensive project specifications. Use when starting a new project, feature, or when user needs help defining requirements through guided discovery.

How to use this skill

Skill file

<objective>

Build complete, production-ready specifications through deep, systematic interviewing. Read existing SPEC.md if present, then probe the user about every aspect they haven't fully thought through: architecture decisions, edge cases, error states, UX flows, security concerns, performance tradeoffs, integration points, and failure modes.

The goal is to surface hidden assumptions and force decisions BEFORE implementation begins.

</objective>

<essential_principles>

<principle name="non_obvious_questions">

Never ask questions the user has already answered or could trivially answer. Dig into:

</principle>

<principle name="progressive_depth">

Start broad, then drill into areas of uncertainty. When user gives vague answers, probe deeper. When they're confident, move on. Detect hesitation and explore it.

</principle>

<principle name="tradeoff_forcing">

Don't let users have everything. Force explicit tradeoffs:

</principle>

<principle name="completeness_over_speed">

Continue interviewing until EVERY section of the spec template has concrete answers. Vague sections = more questions. Only stop when the spec is implementation-ready.

</principle>

</essential_principles>

<quick_start>

  1. Check if SPEC.md exists and read it
  2. Identify gaps, ambiguities, and untested assumptions
  3. Begin interviewing using AskUserQuestionTool
  4. Cover ALL domains systematically (see question_domains)
  5. Write completed spec to SPEC.md

</quick_start>

<process>

<step name="1_load_context">

Read existing spec if present:

Read SPEC.md (or specified file path)

If exists: Analyze what's defined vs. what's missing or vague.

If not: Start fresh, but ask about existing context (related systems, constraints, prior art).

</step>

<step name="2_initial_assessment">

Before diving deep, establish scope with 2-3 broad questions:

</step>

<step name="3_systematic_interview">

Interview through ALL domains below. Use AskUserQuestionTool with 2-4 targeted questions per round. Mix domains to keep conversation dynamic.

CRITICAL: Each question must:

</step>

<step name="4_gap_detection">

After each answer round, identify:

Probe these immediately before moving on.

</step>

<step name="5_write_spec">

When all domains are covered and no ambiguities remain:

  1. Use the template in templates/spec-template.md
  2. Fill every section with concrete decisions
  3. Mark any remaining open questions explicitly
  4. Write to SPEC.md (or user-specified path)

</step>

</process>

<question_domains>

<domain name="problem_and_users">

Surface hidden assumptions about the problem:

</domain>

<domain name="scope_and_boundaries">

Force explicit scope decisions:

</domain>

<domain name="architecture_and_technical">

Probe technical decisions and their implications:

</domain>

<domain name="integration_and_dependencies">

Map the system boundaries:

</domain>

<domain name="ui_and_ux">

Get specific about user experience:

</domain>

<domain name="error_states_and_edge_cases">

Surface failure modes:

</domain>

<domain name="security_and_privacy">

Force security decisions:

</domain>

<domain name="performance_and_reliability">

Establish non-functional requirements:

</domain>

<domain name="operations_and_maintenance">

Think about day 2:

</domain>

<domain name="testing_and_quality">

Define quality gates:

</domain>

<domain name="timeline_and_phases">

Reality-check the plan:

</domain>

<domain name="verification_environment">

Gather runtime verification info (critical for Ralph autonomous execution):

</domain>

</question_domains>

<interview_techniques>

<technique name="probing_vague_answers">

When user says "it depends" or "we'll figure it out later":

</technique>

<technique name="revealing_assumptions">

When user says something confidently:

</technique>

<technique name="forcing_priorities">

When everything seems important:

</technique>

<technique name="exploring_conflict">

When two answers seem incompatible:

</technique>

</interview_techniques>

<success_criteria>

Interview is complete when:

</success_criteria>

<spec_template_location>

See templates/spec-template.md for the output structure.

</spec_template_location>

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.