Appearance
🤖 AI-Assisted Coding Guidelines for Flutter
Core Principles
- AI output is never a substitute for developer understanding or proper review
- Every developer is responsible for fully understanding AI-assisted code
- Blindly pasting AI-generated code without review is prohibited
- AI tools enhance productivity but don't replace critical thinking
Approved Use Cases
Recommended AI Usage
- Widget scaffolding and UI component generation
- State management boilerplate (Cubit/Bloc setup)
- Model classes with JSON serialization
- Test case generation for widgets and business logic
- Documentation writing and code comments
- Theme and styling implementation
Common Violations
❌ DO NOT Violate These Rules
- Don't commit AI code without understanding it
- Don't use AI for security-critical implementations without review
- Don't paste sensitive data into AI tools
- Don't skip testing for AI-generated functionality
✅ ALWAYS Follow These Rules
- Review and understand all AI-generated code before use
- Test thoroughly any AI-assisted functionality
- Follow Flutter project standards and Dart coding conventions
- Get peer review for all AI-assisted code
- Validate security implications of AI suggestions
- Add proper error handling to AI-generated code