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

    8. How Spec Kit handles many features

    Golden rule: one feature at a time. Don't spec the whole app at once. You'll drown in review work and edge cases.

    What happens when you run /speckit-specify for a new feature:

    1. Spec Kit picks the next number and a short name, for example 001-user-registration.
    2. It creates specs/001-user-registration/, and every document for that feature lives there.
    3. It updates .specify/feature.json to point at that folder, so that feature becomes "active".
    4. If the Git extension is installed, it also creates and switches to a branch called 001-user-registration.

    Later commands (clarify, plan, tasks, ...) read feature.json first, which is why you never need to tell them which feature you mean.

    Next feature? Run /speckit-specify again and you get 002-user-login, then 003-..., and so on.

    specs/
    ├── 001-user-registration/ (done)
    ├── 002-user-login/ (done)
    └── 003-password-reset/ ← feature.json points here now

    Note: In current versions the active feature comes from feature.json, not from your Git branch. Running git checkout 001-user-registration alone does not switch Spec Kit back. To switch, edit .specify/feature.json or set the environment variable SPECIFY_FEATURE_DIRECTORY.

    Learning aid · DemonstrationThree features, one bookmark

    specs/

    1. 001-user-registration/(done)← feature.json
    2. 002-user-login/(done)← feature.json
    3. 003-password-reset/(done)← feature.json

    Git branch

    003-password-reset

    Later commands (clarify, plan, tasks, ...) read feature.json first.

    To switch, edit .specify/feature.json or set SPECIFY_FEATURE_DIRECTORY.

    A demonstration, not a real file system or Git repository. Each step is one run of /speckit-specify from the guide. The Git lane only exists with the optional Git extension; checking out a branch moves the branch, not feature.json.

    The lifecycle:

    • constitution runs once per project.
    • specify → … → converge runs once per feature, again and again.
    Optional reviewCheck yourself
    1. You run git checkout 001-user-registration. Which feature do the Spec Kit commands work on?
    2. After 001-user-registration, what does the next /speckit-specify create?