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 20 of 22 · about 1 min

    20. Best practices and common mistakes

    Do ✅

    • One feature per spec. Small specs are easier to review.
    • Start each step in a fresh chat session (as the course does). The documents carry the context, so the chat doesn't need to.
    • Review every document before moving on. AI drafts, you decide.
    • Use priorities (P1/P2/P3) and Out of Scope to keep the AI focused.
    • Commit to Git after each step (spec done → commit, plan done → commit). You get history and an easy undo.
    • Fix problems at the earliest document where they started.
    • Keep the constitution short and strict. Real rules only, not wishes.

    Don't ❌

    • ❌ Put technology in specify ("use a REST controller…").
    • ❌ Put feature details in the constitution.
    • ❌ Repeat constitution rules in the plan prompt.
    • ❌ Skip clarify on anything important. Guesses become bugs.
    • ❌ Ignore analyze HIGH/CRITICAL findings.
    • ❌ Trust "Converged" or "Implementation complete" without running the app and the tests.
    • ❌ Patch code to change behaviour without updating the spec, because then the spec stops being the truth.

    When is SDD overkill?

    For a 5-line script or a throwaway prototype, the full process is too heavy. Use the short path (specify → plan → tasks → implement) or just code it. SDD shines on real features, team projects, and anything you'll maintain.

    Learning aidFull process or short path?

    Short path

    The guide's examples: a 5-line script · a throwaway prototype

    1. specify
    2. plan
    3. tasks
    4. implement

    … or just code it.

    Full process

    The guide's examples: real features · team projects · anything you'll maintain

    1. constitution
    2. specify
    3. clarifyoptional
    4. plan
    5. checklistoptional
    6. tasks
    7. analyzeoptional
    8. implement
    9. convergerecommended
    The guide gives examples, not fixed criteria, so use your judgement. The full-process steps and their optional/recommended labels come from the table in chapter 4.

    Brownfield (existing code) tips

    • Write a constitution that describes how the existing code already works, so the AI follows your current patterns.
    • Specs can describe changes ("add password strength rule to existing registration").
    • Commit before specify init --here, since it may merge or overwrite files.