HomeUpdatesGitHub
Docs/Commands/Feature

Feature

Turn a planned or newly requested capability into a small, testable feature spec and stop before code.

Commandscommandfeaturespec

Invocation

/feature
/feature 3
/feature "team invitations"
/feature 3 --check

Use $feature for the same skill in Codex.

What happens

  1. Select the next unchecked build-plan item or the requested item.
  2. If a genuinely new capability does not match the plan, check for near-duplicates and propose a feature-sized plan addition.
  3. After you approve the plan change, update the build plan, update the project plan only when necessary, and refresh the project overview.
  4. Size the feature and split it if it contains independent outcomes.
  5. Load the smallest relevant overview passages, repository paths, standards, and verification evidence.
  6. Draft scope, exclusions, contracts, build steps, testing, and observable done-when criteria in context.
  7. Check data formats, security boundaries, safe rendering, accessible errors, runtime reachability, scope creep, and vague proof.
  8. Freeze the feature’s build attempt and full configured branch, write current-feature.md once, run the spec check when selected, and stop for review before application code changes.

Feature does not guess when a missing choice would define public behavior, security, persisted data, or interoperability. It asks for that decision and leaves the active spec untouched. Reversible internal details with no current compatibility surface can use the simplest repository-native option when the spec records the choice and its test seam.

Spec check

The optional spec check gives a new spec a second reading before you review it. A fresh reviewer that did not write the spec reads it against the repository and reports places where it no longer matches the code, parts that are already done or no longer needed, missing needs, and guesses a builder would have to make. Feature fixes the clear gaps, lists real decisions as open questions, and leads the review with a short note on what the check changed.

The check is off by default. Run it for one feature with /feature <target> --check, or set qualityGates.regular.specCheck to always to check every new feature spec. Autopilot uses the same setting, and Continuous Mode uses qualityGates.continuous.specCheck. It costs one extra reviewer run per spec and never blocks review. When the tool cannot start an isolated reviewer, Feature reads the spec once as that reviewer itself and labels the result same-session.

Proportional engineering

Feature adds an abstraction, dependency, service, configuration surface, compatibility layer, or security mechanism to a spec only when an established requirement needs it now. It prefers existing code, the standard library, native platform features, and installed dependencies. Unknown scale or future extensibility defaults to the smaller reversible design. A trust or data-integrity boundary counts as established when the repository exposes network or untrusted input, auth, session, or ownership, shared persisted data, destructive operations, secrets, or sensitive data, even when the plans do not name it. Untuned stack-specific defaults in coding-standards.md are not established requirements.

Reads and writes

Reads Writes Never does
Matching build-plan and overview passages, relevant repository paths, applicable standards, Verify context/current-feature.md; plans and overview only for an approved new-feature addition Application code, commits, merges

For an unplanned bug or small change, use /fix. New-feature intake is for a product capability that belongs on the living roadmap.

Rebuild a removed feature

Feature refuses a build-plan item that is already checked. To build one again, remove it with /fix, uncheck its item, then run /feature for it. The rebuild keeps its stable plan ID and records the next build attempt before review. Attempt 2 uses a branch such as feature/export-reports--build-2 and gets a separate archive at completion. Ambiguous history stops planning; Feature never overwrites an earlier build.

Visual features

If prototypes/ exists, the spec links the relevant mockups and makes porting the shared theme tokens the first implementation step. A visual target should not be reconstructed from prose when a real reference exists.

Documentation

Search AI Blueprint

Start typing to search the documentation.