Skip to content

Add spec-generator skill for interview-driven spec creation#65

Merged
shunkakinoki merged 1 commit intomainfrom
claude/spec-generator-tool-x7E3I
Feb 1, 2026
Merged

Add spec-generator skill for interview-driven spec creation#65
shunkakinoki merged 1 commit intomainfrom
claude/spec-generator-tool-x7E3I

Conversation

@shunkakinoki
Copy link
Owner

@shunkakinoki shunkakinoki commented Feb 1, 2026

Summary

Introduces a new /spec-generator skill that conducts in-depth user interviews to produce comprehensive project specifications. This skill guides users through a structured, multi-phase interview process and generates a detailed spec document.

Key Changes

  • New skill definition: skills/spec-generator/SKILL.md with complete interview framework
  • Structured interview phases: 6-phase approach covering vision, technical architecture, UI/UX, edge cases, tradeoffs, and operational concerns
  • Interview strategy: Detailed guidance on asking probing, non-obvious questions with specific examples for each phase
  • Output specification: Defined markdown template for generated spec documents with sections for overview, architecture, UI/UX, security, performance, and decisions
  • Interview rules: Clear constraints ensuring focused, depth-first questioning (one question at a time, no surface-level questions, adaptive follow-ups)

Notable Implementation Details

  • Skill uses only AskUserQuestion and Write tools, keeping scope focused
  • Interview strategy emphasizes depth over breadth with 10-20 questions target depending on complexity
  • Spec template is detailed enough to serve as implementation guidance for developers
  • Includes explicit guidance to challenge assumptions and flag contradictions discovered during interviews
  • Designed to be adaptive—phases can be skipped if irrelevant based on project type

https://claude.ai/code/session_01XbeD247q4WQqHWPj3TuZ3g


Summary by cubic

Adds a new /spec-generator skill that interviews the user and writes a comprehensive SPEC.md. This improves spec quality and makes projects easier to implement.

  • New Features
    • New skill at skills/spec-generator/SKILL.md using AskUserQuestion and Write.
    • Six interview phases: vision, architecture, UI/UX, edge cases, tradeoffs, operations.
    • Clear rules: one focused question at a time, adaptive follow-ups, challenge assumptions.
    • Markdown template for the spec (overview, goals, stories, architecture, UX, security, performance, decisions, out of scope, open questions).
    • Writes the final spec to SPEC.md or a filename provided by the user.

Written for commit 7aa4879. Summary will update on new commits.

Adds a new skill that interviews the user in-depth using AskUserQuestion
to produce a detailed specification file. Covers technical architecture,
UI/UX, edge cases, tradeoffs, and operational concerns through a
structured multi-phase interview process.

https://claude.ai/code/session_01XbeD247q4WQqHWPj3TuZ3g
Copilot AI review requested due to automatic review settings February 1, 2026 10:18
@coderabbitai
Copy link

coderabbitai bot commented Feb 1, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Summary by CodeRabbit

  • New Features
    • Added a specification-generation skill featuring a structured interview-driven workflow. The skill systematically guides users through six interview phases: core vision, technical deep-dive, UI/UX design, edge cases and constraints, tradeoffs and decisions, and operational concerns. It generates comprehensive specification documents capturing requirements, architecture, and design decisions.

✏️ Tip: You can customize this high-level summary in your review settings.

Walkthrough

A new specification-generation skill is introduced that implements an interview-driven workflow to systematically elicit comprehensive project specifications through structured questioning phases, culminating in a detailed SPEC.md document.

Changes

Cohort / File(s) Summary
Specification-Generation Skill
skills/spec-generator/SKILL.md
Adds reusable skill defining an interview workflow across six phases (Core Vision, Technical Deep-Dive, UI/UX, Edge Cases & Constraints, Tradeoffs & Decisions, Operational Concerns) with strict questioning rules, output format specifications, and guidelines for depth-focused elicitation.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Suggested labels

enhancement

Poem

🐰 With twitching nose and questions deep,
A skill to gather specs so steep!
Six phases through, no breadth too wide,
Interview wisdom, our trusty guide—
One query at a time, we'll write with care,
Until the SPEC.md shines bright and fair! ✨

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch claude/spec-generator-tool-x7E3I

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@shunkakinoki shunkakinoki enabled auto-merge (squash) February 1, 2026 10:19
@shunkakinoki shunkakinoki merged commit 565bbe5 into main Feb 1, 2026
7 of 8 checks passed
@shunkakinoki shunkakinoki deleted the claude/spec-generator-tool-x7E3I branch February 1, 2026 10:19
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new /spec-generator skill designed to conduct structured, interview-driven specification creation. The skill aims to guide users through a comprehensive 6-phase interview process to generate detailed project specifications that can serve as implementation guidance.

Changes:

  • Adds a new skill definition with interview-based workflow for generating project specifications
  • Defines 6 structured interview phases covering vision, technical architecture, UI/UX, edge cases, tradeoffs, and operational concerns
  • Provides a comprehensive markdown template for the generated specification document with sections for architecture, security, performance, and decisions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -0,0 +1,141 @@
---
name: spec-generator
argument-hint: [instructions]
Copy link

Copilot AI Feb 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The argument-hint metadata field is not used in any other skill definition in this codebase. Other skills (pr-create, issue-create, serena, changesets, etc.) do not include this field. If this is a new field being introduced to the skill system, it should be documented or validated. Otherwise, it may not be recognized by the skill parsing system.

Suggested change
argument-hint: [instructions]

Copilot uses AI. Check for mistakes.
Comment on lines +4 to +15
allowed-tools: AskUserQuestion, Write
description: Interview user in-depth to create a detailed spec
---

# /spec-generator — Interview-driven spec generation

Interview the user in-depth using AskUserQuestion to produce a comprehensive, detailed specification file.

## Workflow

1. Read the user's instructions (passed as arguments)
2. Begin an in-depth interview using AskUserQuestion
Copy link

Copilot AI Feb 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The AskUserQuestion tool is not referenced anywhere else in this codebase. All other skills use tools like Read, Write, Bash, TodoWrite, or MCP tools with the pattern mcp__<service>__*. Before this skill can be used, the AskUserQuestion tool must either: 1) be implemented and made available to the skill system, 2) be replaced with an existing tool, or 3) follow the MCP pattern if it's an MCP tool (e.g., mcp__interview__AskUserQuestion).

Suggested change
allowed-tools: AskUserQuestion, Write
description: Interview user in-depth to create a detailed spec
---
# /spec-generator — Interview-driven spec generation
Interview the user in-depth using AskUserQuestion to produce a comprehensive, detailed specification file.
## Workflow
1. Read the user's instructions (passed as arguments)
2. Begin an in-depth interview using AskUserQuestion
allowed-tools: Write
description: Interview user in-depth to create a detailed spec
---
# /spec-generator — Interview-driven spec generation
Interview the user in-depth to produce a comprehensive, detailed specification file.
## Workflow
1. Read the user's instructions (passed as arguments)
2. Begin an in-depth interview with the user

Copilot uses AI. Check for mistakes.
Comment on lines +4 to +15
allowed-tools: AskUserQuestion, Write
description: Interview user in-depth to create a detailed spec
---

# /spec-generator — Interview-driven spec generation

Interview the user in-depth using AskUserQuestion to produce a comprehensive, detailed specification file.

## Workflow

1. Read the user's instructions (passed as arguments)
2. Begin an in-depth interview using AskUserQuestion
Copy link

Copilot AI Feb 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This reference to the AskUserQuestion tool will not work unless the tool is implemented and available. See the comment on line 4 regarding the undefined tool.

Suggested change
allowed-tools: AskUserQuestion, Write
description: Interview user in-depth to create a detailed spec
---
# /spec-generator — Interview-driven spec generation
Interview the user in-depth using AskUserQuestion to produce a comprehensive, detailed specification file.
## Workflow
1. Read the user's instructions (passed as arguments)
2. Begin an in-depth interview using AskUserQuestion
allowed-tools: Write
description: Interview user in-depth to create a detailed spec
---
# /spec-generator — Interview-driven spec generation
Interview the user in-depth to produce a comprehensive, detailed specification file.
## Workflow
1. Read the user's instructions (passed as arguments)
2. Begin an in-depth interview by asking the user follow-up questions

Copilot uses AI. Check for mistakes.

## Prompt

Follow the user instructions and interview me in detail using the AskUserQuestion tool about literally anything: technical implementation, UI & UX, concerns, tradeoffs, etc. Make sure the questions are not obvious — be very in-depth and continue interviewing me continually until it's complete. Then, write the spec to a file.
Copy link

Copilot AI Feb 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The phrase "literally anything" is informal for technical documentation. Consider revising to something more precise like "all aspects of the project" or "any relevant topic".

Suggested change
Follow the user instructions and interview me in detail using the AskUserQuestion tool about literally anything: technical implementation, UI & UX, concerns, tradeoffs, etc. Make sure the questions are not obvious — be very in-depth and continue interviewing me continually until it's complete. Then, write the spec to a file.
Follow the user instructions and interview me in detail using the AskUserQuestion tool about any relevant aspect of the project: technical implementation, UI & UX, concerns, tradeoffs, etc. Make sure the questions are not obvious — be very in-depth and continue interviewing me continually until it's complete. Then, write the spec to a file.

Copilot uses AI. Check for mistakes.

## Workflow

1. Read the user's instructions (passed as arguments)
Copy link

Copilot AI Feb 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow states "Read the user's instructions (passed as arguments)" but the Read tool is not included in the allowed-tools list on line 4. If reading is required to access user instructions, the Read tool should be added to the allowed-tools list. Alternatively, if instructions are passed differently (e.g., as direct input to the skill), this step should clarify that no file reading is needed.

Suggested change
1. Read the user's instructions (passed as arguments)
1. Review the user's instructions provided as arguments (no file reading needed)

Copilot uses AI. Check for mistakes.

## Technical Architecture
### System Design
[Architecture decisions, data flow diagrams in text]
Copy link

Copilot AI Feb 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The phrase "data flow diagrams in text" is somewhat ambiguous. Consider clarifying what format is expected, such as "textual descriptions of data flow" or "ASCII diagrams" or "structured descriptions of how data flows through the system".

Suggested change
[Architecture decisions, data flow diagrams in text]
[Architecture decisions, textual descriptions of data flow (e.g., step-by-step narratives or simple ASCII-style diagrams)]

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants