Design & Specify Exercises
Fill in the blanks to test your knowledge.
A user story follows the format: "As a ___, I want to ___, so that ___"
Acceptance criteria in a user story are written using ___ scenarios (Given/When/Then format)
// Gherkin scenario
: a logged-in user is on the checkout page
When: they click "Place Order"
Then: an order confirmation email is sent
And: the cart is cleared
In SDD, a ___ document describes the full technical design of a feature before development begins
// Spec-Driven Development: document types
// 1. User Story — the requirement
// 2. Use Case — the actor-system interaction
// 3. Document — the technical implementation design
// 4. Task List — the atomic work units for the AI agent
A wireframe shows the ___ layout of a screen without colors, fonts, or final imagery
An ___ is a large body of work that contains multiple related user stories
In a use case, the ___ is the person or external system that interacts with the system
Vibe coding describes using AI to generate code from ___ language descriptions rather than writing detailed specifications first
EARS stands for Easy Approach to Requirements ___, a structured format for writing unambiguous software requirements
// EARS requirement templates
// Ubiquitous: "The system shall "
// Event-driven: "WHEN [trigger] THE system shall "
// Unwanted: "IF [condition] THEN the system shall "
// Example
const requirement = "WHEN a user submits the login form WITH valid credentials, THE system shall redirect to the dashboard within 500ms";
A steering file (like CLAUDE.md or .kiro/steering/) persists project ___ across AI coding sessions so the AI stays aligned with your codebase rules
// Steering file contents example
// .kiro/steering/tech.md
## Tech Stack
- Vite + React + TypeScript
- Tailwind CSS (utility classes only)
- Supabase for database and auth
## Rules
- Never use purple color
- Always use 8px spacing system
- Components max 200 lines
In SDD, the development workflow generates atomic task lists that AI agents execute one ___ at a time