Skip to main content

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

  1. Add this rule to your project on the platform
  2. Generated code automatically follows the conventions found in the existing codebase
  3. Naming, structure, error handling, and architecture match established patterns
  4. Deviations from existing patterns require an inline comment explaining the reason
  5. Code review validates that generated code is consistent with the surrounding codebase