Skip to content

Feature generator

Terminal window
dart run stackchain feature auth
dart run stackchain add settings
dart run stackchain make feature profile # same vertical slice path
dart run stackchain rename profile account
dart run stackchain remove auth
  1. Validate snake_case name
  2. Append to features in YAML if new
  3. Generate architecture-specific files + recipe extras
  4. Sync router + DI regions (full feature DI graph for GetIt)
  5. Update .stackchain/lock.yaml
  6. Quality gate
Feature name Extras
auth Form widget, session/guards integration, richer tests
settings Settings-oriented extras + tests
profile Profile-oriented extras + tests
other Baseline slice + smoke/type tests
lib/features/auth/
data/…
domain/…
presentation/bloc|cubit|providers|controllers/…
presentation/pages/
presentation/widgets/