When to Use
Add this when working with established codebases to ensure generated code follows existing architectural patterns, coding conventions, and design standards.Rule Definition
Name — Enforce Code Style Patterns Description — paste this into the rule description field on the platform:How It Works
- Add this rule to your project on the platform
- Generated code automatically follows the conventions found in the existing codebase
- Naming, structure, error handling, and architecture match established patterns
- Deviations from existing patterns require an inline comment explaining the reason
- Code review validates that generated code is consistent with the surrounding codebase