Chapter 12 of 22 · about 1 min
12. Step 4: plan
What it is
It turns the what (spec) into the how: a technical implementation plan.
What goes in your prompt
Tech decisions specific to this feature that aren't already in the constitution:
/speckit-plan Implement as a server-rendered Spring MVC page at GET/POST /register using Thymeleaf.Use a RegistrationController, a UserService and a Spring Data JPA UserRepository.Store users in a "users" table created by a Flyway migration; unique index on lower(email).Protect passwords with Spring Security's PasswordEncoder (BCrypt). Never return or log the hash.Use Bean Validation (@Valid) on a RegistrationForm DTO. Use H2 for local dev, PostgreSQL in prod.Don't repeat rules that are already in the constitution or the spec. Spec Kit pulls those in automatically.
What it creates
plan.md: technical context, architecture, project structure, and a Constitution Check section that confirms the plan doesn't break your rules (and justifies it if it has to)research.md: decisions it researched and why (e.g. "BCrypt vs Argon2")data-model.md: entities, fields, validation rules, relationshipscontracts/: API or interface definitions (endpoints, request/response shapes)quickstart.md: how to run and manually verify the feature
Not every feature gets all of these. It depends on complexity.
Learning aidWhat goes in, what comes out
constitutionpulled in automaticallyspec.mdthe WHAT · pulled in automaticallyyour plan promptthe HOW for this feature- Spring MVC page at GET/POST /register
- Flyway migration · unique index on lower(email)
- Spring Security's PasswordEncoder (BCrypt)
- H2 for local dev, PostgreSQL in prod
/speckit-planplan.mdarchitecture, project structure, Constitution Checkalwaysresearch.mddecisions and whysometimesdata-model.mdentities, fields, validationsometimescontracts/API or interface definitionssometimesquickstart.mdhow to run and verifysometimes
Your job
Review the plan like a senior engineer would. Is the architecture sensible? Any over-engineering? Does it match the constitution? Edit it now, because tasks and code are built from it.
Tip: Ask the agent to "research rapidly-changing libraries mentioned in the plan and verify versions" when you rely on new frameworks. AI knowledge can be out of date.