-
Notifications
You must be signed in to change notification settings - Fork 0
Code Quality Agents
Ali Sadeghi edited this page Jan 27, 2026
·
6 revisions
Specialized agents for validating and reviewing code quality.
Code Quality Agents ensure implementations follow architectural guidelines and best practices.
Reviews feature implementations against Clean Architecture rules.
Invocation: Use the /feature-review command:
/feature-review login- Interface + Impl Pairs - DataSource and Repository must have interface and implementation
- Either Error Handling - All fallible operations use Either<Success/Failure>
- setState { } Updates - State changes via setState { } (never direct assignment)
- 4-State UI Pattern - Uninitialized/Loading/Success/Failed states
- X-Components Only - Use X-components (not Material3)
- ImmutableList Collections - All lists are kotlinx.collections.immutable.ImmutableList
- Callback Navigation - Navigation parameters are callbacks, not sealed routes
- Lowercase Packages - Package names lowercase, no hyphens or underscores
- @Serializable Models - All data models have @Serializable
- Type-Safe Routes - Navigation routes are @Serializable data classes
- settings.gradle.kts - Feature module is included
- composeApp/build.gradle.kts - Feature is a dependency
- initKoin.kt - DI module is registered
- BaseAppNavHost.kt - Navigation routes are wired
Reviewing feature: login
✓ Data Layer
✓ LoginRemoteDataSource: Interface + Impl found
✓ LoginRepository: Interface + Impl found
✓ Either<T> used for all suspend functions
✓ Models have @Serializable
✓ UI Layer
✓ LoginUiState: All 4 states present
✓ LoginViewModel: Uses setState { }
✓ LoginScreen: Uses X-components
✓ Navigation: Type-safe routes with callbacks
✓ Integration
✓ settings.gradle.kts: Module included
✓ composeApp/build.gradle.kts: Dependency added
✓ initKoin.kt: DI module registered
✓ BaseAppNavHost.kt: Navigation wired
✅ Review Passed: All rules and integration points validated
Back to Agents