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

    13. Step 5: checklist (optional)

    What it is

    Spec Kit calls it "unit tests for your requirements." Normal unit tests check whether code works. A checklist checks whether your requirements are well written: complete, clear, consistent and measurable.

    Learning aidTwo kinds of unit test
    unit testcodeDoes it work?
    checklistrequirementsAre they complete, clear, consistent and measurable?
    Same idea, different subject: a unit test checks code; a checklist checks the requirements before any code exists.

    How it differs from clarify

    clarify checklist
    Asks you questions Produces a list of questions for you to review
    Edits spec.md with your answers Doesn't edit the spec, only writes a checklist file
    Interactive conversation A document you go through on your own

    How to run it

    /speckit-checklist
    /speckit-checklist security
    /speckit-checklist UX and accessibility

    Example items it might generate:

    • "Is the error message for a duplicate email specified exactly?"
    • "Is the maximum length of the name field defined?"
    • "Are requirements for what happens on a database failure defined?"

    Your job

    Go through each item. If the spec doesn't answer it, update spec.md (or run clarify again), then tick the box. [x] means "the requirement is clearly written", not "the code is done."

    implement reads your checklists before it starts. If items are still unticked, it warns you and asks whether to continue.

    Learning aid · Educational exercisePractice checklist

    checklists/requirements.md (example)

    [x] = the requirement is clearly written

    An educational exercise with the guide's three example items. Ticking means "the requirement is clearly written", not "the code is done". Three examples are not a whole checklist, and nothing here is saved or written to any file.

    When to run it: after plan is a good default (so it can see both spec and plan), but you can run it any time after specify.