Most people use an AI coding assistant the same way: type a one-line wish, get a screen of code, then spend the next hour explaining what they actually meant.
A growing set of official workflows from GitHub, AWS and Anthropic now ask for one change in habit. Before any code, the AI writes the requirements, you check them, and only then does building start. Here is why, what it looks like, and an experiment you can finish in under an hour.
What's changing
GitHub open-sourced Spec Kit in September 2025 and described the problem plainly. A vague prompt forces the model to guess at many unstated requirements, so mistakes surface late. In the words of the post, models are good at pattern completion, "but not at mind reading".
Spec Kit splits work into four phases.
Specify. You describe what you are building and why, and the agent expands it into a spec of user journeys and success criteria, with no tech stack yet.
Plan. You add stack, architecture and constraints, and the agent writes a technical plan.
Tasks. The agent breaks the spec and plan into small pieces that can each be built and tested alone.
Implement. The agent works through those tasks, and you review focused changes instead of large code dumps.
Kiro, an AI coding tool, has a Requirements-First workflow that runs the same way. It first generates a requirements.md file with user stories, acceptance criteria and edge cases. Only after you confirm it does it produce design.md, and then tasks.md.
Kiro writes system behaviour in EARS format, a fixed sentence pattern: WHEN something happens, THE SYSTEM SHALL do something. Its own docs example is "WHEN a user submits invalid email format, THE SYSTEM SHALL display email validation error". Kiro says this style is unambiguous and turns easily into test cases.
Anthropic's Claude Code best-practices guide suggests a related move when you have not worked out what you want yet. Ask Claude to interview you until it could write the spec, save it as SPEC.md, then start a fresh session to build from it. The build then starts with a clean context and a written definition of done.
Developers already lean this way. In the Stack Overflow 2026 Developer Survey, project goals and requirements topped the list of trusted context sources for AI work at 85%, ahead of code and docs at 73%.
What spec-first looks like in real work
The examples below are illustrative scenarios, not case studies.
Example: A fresher is asked to add a "forgot password" link to a student portal. Instead of asking for code, she asks the AI to list requirements and questions first. It asks how long a reset link should stay valid and what happens if the email is not registered, two gaps her reviewer would have flagged.
Example: A QA engineer receives a one-line story, "Users can export reports to CSV". He asks an AI to rewrite it as EARS acceptance criteria. Five WHEN/SHALL lines appear, including one for an empty report and one for very large files, and each becomes a test case before development starts.
Example: A program manager pastes a client's email into an AI and asks for a draft requirements list plus open questions, with no solution design. She takes the open questions into the next client call.
In all three, the AI did the drafting and the human did the deciding. The output that mattered was a short, checkable list, not code.
How AI-DLC helps
AWS describes the AI-Driven Development Life Cycle in three phases. In Inception, AI turns business intent into detailed requirements, stories and units of work. In Construction, AI proposes architecture, domain models, code and tests, and in Operations it helps manage infrastructure as code and deployments, with the team overseeing.
Spec-first is Inception in miniature. AWS describes a pattern where AI creates a plan, asks clarifying questions, and implements only after a human validates it. In Mob Elaboration, the whole team reviews the AI's questions and proposals together, so the requirements are agreed before Construction begins.
AWS also notes that AI-DLC stores plans, requirements and design artifacts in the project repository, so work can continue across sessions. That is the same idea as Claude Code's SPEC.md and Kiro's requirements.md. The spec is a file, not a memory.
Practising spec-first builds the skills AI-DLC roles depend on. You learn to state intent, answer clarifying questions, spot a missing edge case, and approve or reject an AI proposal. Those are the human decision points that AI-DLC keeps in every phase, and bolts, its short build cycles measured in hours or days, only stay short when the spec is clear.
Worked example: a library late-fee feature
Illustrative scenario: a junior developer needs a feature that charges late fees for overdue library books.
Step 1. She writes one paragraph of intent: who the users are, what problem late fees solve, and what "done" means. She ends with "Do not write code. Ask me questions until you could write the spec."
Step 2. The AI asks about the fee per day, a maximum cap, holidays, and whether staff can waive fees. She answers each in a line.
Step 3. The AI writes the spec with EARS criteria, such as WHEN a book is returned after its due date, THE SYSTEM SHALL charge the daily fee for each late day up to the cap.
Step 4. She reads it against her intent and finds one gap: nothing covers a book returned on the due date itself. She adds that case and saves the file as SPEC.md.
Step 5. In a fresh session, she asks the AI to build from SPEC.md and then to check its own code against every requirement. Each EARS line becomes a test.
Try it (under an hour)
You can do this in any free chat assistant. If you already use a coding agent, GitHub's free, open-source Spec Kit and Kiro's spec docs show the full tool-based version.
https://github.com/github/spec-kit
https://kiro.dev/docs/specs/feature-specs/requirements-first/
Step 1. Pick one small feature from your work or a hobby project, something you could explain in three sentences.
Step 2. Paste this prompt: "I want to build (describe your feature). Do not write code. Interview me until you could write a spec, then write requirements with acceptance criteria in WHEN ... THE SYSTEM SHALL ... format."
Step 3. Answer the questions honestly, including "I don't know yet".
Step 4. Read the spec and add at least one edge case the AI missed. Save it as a file.
Step 5. Open a new chat, paste the spec, ask for code, then ask the AI to list which requirements its code meets and which it does not.
Your next step
🌱 Fresher: Run the experiment on a small feature and keep the spec and the AI's questions. They make a strong talking point in interviews about how you work with AI.
🚀 Mid-career: Take the next story assigned to you and ask AI for EARS acceptance criteria before you estimate it. Bring any new questions to your refinement meeting.
🧭 Senior: Pilot a "spec before code" gate for one team for two weeks. Compare how many review comments are about misunderstood requirements before and after.
Sources
GitHub Blog, "Spec-driven development with AI: Get started with a new open source toolkit", 2 September 2025. https://github.blog/ai-and-ml/generative-ai/spec-driven-development-with-ai-get-started-with-a-new-open-source-toolkit/
Kiro documentation, "Requirements-First workflow", accessed 24 November 2026. https://kiro.dev/docs/specs/feature-specs/requirements-first/
Claude Code documentation, "Best practices for Claude Code", accessed 24 November 2026. https://code.claude.com/docs/en/best-practices
AWS DevOps Blog, "AI-Driven Development Life Cycle: Reimagining Software Engineering", 31 July 2025. https://aws.amazon.com/blogs/devops/ai-driven-development-life-cycle/
Stack Overflow Blog, "The results of the 2026 Developer Survey are here!", 6 October 2026. https://stackoverflow.blog/2026/10/06/the-results-of-the-2026-developer-survey-are-here/
GitHub, "github/spec-kit" repository, accessed 24 November 2026. https://github.com/github/spec-kit