| name | ios-add-feature |
| description | Scaffold a new feature with View, ViewModel, and tests following ios-std conventions. |
| argument-hint | <feature-name> [--with-detail] [--with-form] [--no-tests] |
| allowed-tools | Bash, Write, Read, Glob, Grep |
Purpose
Add a complete feature module to an existing iOS project with View, ViewModel, and tests.
Arguments
feature-name — Feature name in PascalCase (e.g., Settings, UserProfile)
--with-detail — Include detail view for drill-down
--with-form — Include form/edit view
--no-tests — Skip test file generation
What gets created
Default
Features/<Feature>/
├── <Feature>View.swift # Main view
├── <Feature>ViewModel.swift # ViewModel with state + intents
└── <Feature>Row.swift # List row component (if list-based)
Tests/UnitTests/
└── <Feature>ViewModelTests.swift # ViewModel tests
With --with-detail
Features/<Feature>/
├── <Feature>View.swift
├── <Feature>ViewModel.swift
├── <Feature>DetailView.swift # Detail view
└── <Feature>DetailViewModel.swift
With --with-form
Features/<Feature>/
├── <Feature>View.swift
├── <Feature>ViewModel.swift
├── <Feature>FormView.swift # Create/edit form
└── <Feature>FormViewModel.swift