Skip to content

Reading

Appearance

Text size

Bookmarks

    No bookmarks yet. Use “Bookmark chapter” or “Bookmark this section” while reading.

    Your data

    Saved only in this browser on this device. It is not synced to other devices or sent anywhere.

    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, relationships
    • contracts/: 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 automatically
    spec.mdthe WHAT · pulled in automatically
    your 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-plan
    • plan.mdarchitecture, project structure, Constitution Checkalways
    • research.mddecisions and whysometimes
    • data-model.mdentities, fields, validationsometimes
    • contracts/API or interface definitionssometimes
    • quickstart.mdhow to run and verifysometimes
    The constitution and spec are pulled in automatically; your prompt adds only this feature's technical decisions. plan.md is always written; the other files depend on complexity.

    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.