-
Notifications
You must be signed in to change notification settings - Fork 0
Modifying KMP Feature
Ali Sadeghi edited this page Jan 6, 2026
·
6 revisions
Auto-activates when: User mentions "change feature", "modify feature", "update feature", "add to feature"
Phase 0: Context Discovery (AUTO)
└── Detect project structure
Phase 1: Load Specification
├── Check for .claude/docs/{feature}/spec/*.md
├── If missing: Generate spec using /generate-spec
└── Load spec into context
Phase 2: Understand Current Implementation
├── Parse spec for architecture patterns
├── Identify data models, API contracts
├── Understand state management
└── Map navigation structure
Phase 3: Plan Changes
├── Determine affected layers (data/ui/integration)
├── Load relevant architecture references
├── Plan implementation approach
└── Identify files to modify
Phase 4: Implement Changes
├── Apply changes following established patterns
├── Maintain consistency with existing code
└── Follow 10 critical rules
Phase 5: Validate
├── Run incremental build
├── Run ktlintFormat
└── Fix any errors
Phase 6: Update Specification
├── Regenerate spec from implementation
├── Add changelog entry at top
└── Preserve previous changelog entries
> Add sorting by price and date to the product list featureChanges: ProductListViewModel (add sort state), ProductListScreen (add sort UI)
> Refactor the login screen to use a stepper for multi-step authenticationChanges: LoginUiState (add step state), LoginScreen (add stepper UI)
> Fix the loading state not showing in the profile featureChanges: ProfileViewModel (fix state transition), ProfileScreen (verify loading UI)
> Add a forgot password screen to the login featureChanges: Add ForgotPasswordScreen, update navigation, add ViewModel
## Last Updated
2025-01-05 - Added sorting by price and date
- ProductListUiState: Added sortBy field
- ProductListViewModel: Added setSortOrder function
- ProductListScreen: Added sort dropdown menu
2025-01-03 - Initial implementation
- Created product list with search and filtersBack to Skills