| 항목 | 내용 |
|---|---|
| Invoke | /checklist:feature |
| Aliases | /check:feature, /feature:checklist |
| Category | petmedi-development |
| Complexity | moderate |
| MCP Servers | serena |
/checklist/feature-complete#
Context Framework Note: Activates during feature development completion verification.
Triggers#
- At the point of feature development completion
- Self-review before PR creation
- Before requesting code review
Usage#
/checklist/feature-complete [feature_name]
Verification Items#
1. Structure Verification#
Domain Layer
- Entity definition complete (Freezed)
- Repository Interface defined (I prefix)
- UseCase implementation complete
- Failure class defined
- Unit tests written
Data Layer
- Repository implementation complete
- Serverpod Mixin implemented (if needed)
- Local Database implemented (if needed)
- DTO ↔ Entity mapper implemented
- Caching strategy applied (SWR/Cache-First)
Presentation Layer
- Page widget implemented
- Reusable Widgets extracted
- BLoC/Cubit implemented
- Event/State defined (Freezed)
- Widget tests written
DI & Routing
- Injectable annotations added
- Route defined (Auto_route)
- Route Guard applied (if needed)
2. Code Generation#
melos run generate:{feature_name}
# or
melos run build
- Freezed code generated (*.freezed.dart)
- Injectable code generated (*.g.dart)
- Route code generated
- No build errors
3. Testing#
Unit Tests
- UseCase tests (Happy path, Error, Edge cases)
- Repository tests (mocked data source)
BLoC Tests
- Initial state test
- Event → state transition tests
- Error handling tests
Widget Tests
- Rendering tests
- Interaction tests
- State-specific UI tests
flutter test feature/{type}/{feature_name}/test/
melos run test:with-html-coverage
- All tests passing
- Coverage 80% or above
4. Documentation#
- dartdoc comments on public APIs
- Explanatory comments on complex logic
- TODO comments resolved or issues filed
5. Internationalization#
- All UI text uses translation keys
- Translation files updated (
melos run generate:locale) - Pluralization/parameter handling verified
6. Performance Optimization#
- const widgets utilized
- BlocBuilder buildWhen applied
- ListView.builder used (for long lists)
- Image cacheWidth/cacheHeight applied
- Resources released in dispose
7. Security Review#
- No hardcoded sensitive information
- Input validation applied
- Appropriate error messages
8. Accessibility#
- Semantics labels applied
- Touch target size verified (48x48 minimum)
- Color contrast verified
9. Static Analysis#
melos run analyze
melos run format
dcm analyze .
- No lint warnings
- Code formatting complete
- DCM analysis passed
- Pre-push hook passed (auto-verified on push)
10. Integration Verification#
flutter build ios --flavor development
flutter build apk --flavor development
- iOS build successful
- Android build successful
- Working correctly in development environment
11. PR Preparation#
- Meaningful commit messages (Conventional + Gitmoji)
- Related issues linked
- Reviewers assigned
Completion Summary#
| Item | Status |
|---|---|
| Structure Verification | ⬜ |
| Code Generation | ⬜ |
| Testing | ⬜ |
| Documentation | ⬜ |
| Internationalization | ⬜ |
| Performance Optimization | ⬜ |
| Security Review | ⬜ |
| Accessibility | ⬜ |
| Static Analysis | ⬜ |
| Integration Verification | ⬜ |
| PR Preparation | ⬜ |
References#
- Detailed checklist:
.claude/checklists/feature-complete.md - PR review checklist:
.claude/commands/checklist/pr-review.md - Code review skill:
.claude/commands/code-review.md