Spec interview

From jellydn/my-ai-tools · View interactive version

Spec interview is an AI agent skill from the GitHub repository jellydn/my-ai-tools. Clarify requirements through targeted questions — uncovers unknown unknowns in specs

How to use this skill

Skill file

Spec Interview

When to Use

Use this skill when:

What It Does

The agent interviews you to uncover unknown unknowns in your feature specification, focusing on questions that would change architectural decisions.

How to Execute

Step 1: Review Initial Spec

Analyze what the user provided:

Step 2: Categorize Gaps

Identify question categories:

Scope & Boundaries:

User Experience:

Technical Decisions:

Architecture Impact:

Step 3: Prioritize Questions

Sort by impact on implementation:

  1. Architecture-changing: Would change core approach
  2. High-impact: Significant implementation difference
  3. Medium-impact: Affects specific modules
  4. Low-impact: Nice to clarify but not blocking

Step 4: Conduct Interview (One Question at a Time)

Use the ask_user_question tool for each question. Ask one question at a time — present it, wait for the answer, then proceed to the next. This keeps the interview focused and lets the user's answer to one question influence follow-ups.

Guidelines for using ask_user_question:

Example — single question call:

ask_user_question(questions: [{
  header: "Architecture",
  question: "Where should the export process run? Large exports could time out or block the web process.",
  options: [
    {
      label: "Synchronous HTTP",
      description: "Simple, returns CSV directly in response — but risky for large datasets that could timeout"
    },
    {
      label: "Background job + email",
      description: "More robust: process asynchronously, email link when done — requires job queue and storage"
    },
    {
      label: "Streaming download",
      description: "Immediate start, handles large data, no queuing needed — but more complex to implement"
    }
  ]
}])

When to use open-ended instead of multiple choice:

Step 5: Process Answers

After each answer:

Step 6: Summarize

After all questions are answered:

Question Patterns

These show how to translate each pattern into an ask_user_question call.

Architecture-Changing

// One question at a time
ask_user_question(questions: [{
  header: "Architecture",
  question: "How should we handle authentication for this feature? This determines whether we modify the current auth flow or build a new one.",
  options: [
    {
      label: "Extend existing auth",
      description: "Adds to current flow — simpler but may create coupling"
    },
    {
      label: "New auth abstraction",
      description: "Clean separation — more upfront work, more flexible long-term"
    },
    {
      label: "External auth service",
      description: "Offload entirely — fastest to build, adds third-party dependency"
    }
  ]
}])

Scope Clarification

ask_user_question(questions: [{
  header: "Scope",
  question: "Should this feature support multiple organizations from the start?",
  options: [
    {
      label: "Yes, initial release",
      description: "Adds 2-3 more integration points and multi-tenant data isolation now"
    },
    {
      label: "Later if needed",
      description: "Simpler initial build, but may require data migration later"
    },
    {
      label: "Not needed at all",
      description: "Single-tenant only — keeps everything simple"
    }
  ]
}])

Edge Case Discovery

ask_user_question(questions: [{
  header: "Edge Cases",
  question: "What should happen when the external API is down during export? The codebase has no retry logic for this service yet.",
  options: [
    {
      label: "Graceful degradation",
      description: "Show partial results with a warning banner — best UX when service is degraded"
    },
    {
      label: "Hard error to user",
      description: "Show clear error message asking them to retry — simplest implementation"
    },
    {
      label: "Auto-retry with queue",
      description: "Queue the request and retry — most robust but requires background job infrastructure"
    }
  ]
}])

Interview Flow: Best Practices

  1. One question per call: Use ask_user_question with a single-question array each time. This keeps the interaction focused and lets answers inform the next question.
  2. Provide context: Always explain why you're asking and how the answer affects implementation.
  3. Show trade-offs: Each option's description should explain the trade-off, not just restate the label.
  4. Lead with impact: Architecture-changing questions first, then high-impact, then medium-impact.
  5. Allow deferral: The "Chat about this" option and custom answer ("Type something") let users skip or elaborate. Honour "skip" gracefully.
  6. Limit questions by impact, not quota: Stop when all unresolved questions are either architecture-changing, acceptance-test-changing, security/data-risk-changing, or explicitly deferred. A complete spec may need zero follow-up questions.
  7. Acknowledge each answer: Before asking the next question, briefly restate what was decided and its implications.

Answer Processing

After each answer via ask_user_question:

  1. Acknowledge: "Thanks — going with [option] means we'll [impact]. That makes sense because [reason]."
  2. Update plan: Adjust your mental model of the implementation.
  3. Decide follow-up: Did the answer reveal a new unknown? Ask a follow-up question now, or note it for later.
  4. Move on: Ask the next prioritized question or summarise if done.

After all questions:

Integration with Other Skills

Success Criteria

A good spec interview:

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.