Back/Product/Cursor/Claude

How to Use Spec Kit and AI to Write Robust Feature Specifications

Use Spec Kit with an AI assistant like GitHub Copilot to improve the quality of your software specifications. The AI acts as an intelligent partner, analyzing your requirements and asking clarifying questions to help you identify edge cases and ambiguities before development begins.

From How I AI

How I AI: Vibe-Coding a Kid-Friendly AI Fortune Teller App for Halloween with GitHub Spark

with Claire Vo

How to Use Spec Kit and AI to Write Robust Feature Specifications

Tools Used

Cursor

AI-first code editor

Claude

Anthropic AI assistant

Claude Code

Claude for coding tasks

GitHub Copilot

AI pair programmer

Step-by-Step Guide

1

Begin Writing Your Specification in Spec Kit

Start outlining the requirements for a new feature using the Spec Kit tool. This framework is designed for creating thorough, robust specifications for complex engineering tasks.

2

Let the AI Analyze Your Requirements

As you write the spec, your integrated AI tool (like GitHub Copilot, Cursor, or Claude Code) will analyze the text in real-time. It acts as a partner to help you think through the problem more deeply.

3

Address AI-Generated Clarifying Questions

The AI will ask pointed questions to help you spot edge cases, ambiguities, and potential problems in your logic. Treat these questions as prompts to strengthen your spec.

Prompt:
Example AI Question: "How long should the feedback be?" 
Example AI Question: "What if the user gives you a ton of feedback? Then what do I do?"
4

Refine and Complete Your Specification

Use the AI's feedback to revise and expand upon your requirements. By addressing these potential issues during the specification phase, you create a much stronger and more complete plan for the development team, preventing problems later in the process.

Pro Tip: This process uses AI to augment and improve human-led engineering processes, rather than just generating code from scratch. It's ideal for complex, serious features where clarity is critical.

Become a 10x PM.
For just $5 / month.

We've made ChatPRD affordable so everyone from engineers to founders to Chief Product Officers can benefit from an AI PM.