avoid-god-classes
Prevents AI from creating massive, multi-responsibility classes, enforcing the Single Responsibility Principle.
composition-over-inheritance
Guides AI to favor composition for flexible, testable designs over rigid inheritance hierarchies.
dependency-injection
Ensures AI generates code with proper dependency injection, promoting testability and loose coupling.
secure-by-default
Enforces security-first patterns, preventing SQL injection, weak cryptography, and other common vulnerabilities.
promise-patterns
Guides AI to use concurrent asynchronous patterns, eliminating blocking operations and improving performance.
prefer-early-returns
Eliminates deeply nested if-else chains by enforcing guard clauses and early return patterns.
conventional-commits
Ensures AI generates clear, structured commit messages following the Conventional Commits standard.
descriptive-function-names
Prevents vague function names (`process`, `handle`) by enforcing intention-revealing, behavior-specific naming.
explicit-error-messages
Guides AI to generate specific, actionable error messages instead of generic, unhelpful ones.
meaningful-variable-names
Eliminates vague variable names (`data`, `result`) by enforcing intention-revealing, context-specific naming.