AiderPHPPerformance
Symfony Performance Rules for Aider
SEO-ready Aider rules for Symfony performance with copy-paste instructions, testing guardrails, and production-safe patterns.
CONVENTIONS.md
# Symfony Performance Rules for Aider Place this in `CONVENTIONS.md` so Aider follows these conventions consistently. ## Core standards - Keep all generated code production-ready and strongly typed where applicable. - Prefer small focused files and functions over large mixed-responsibility modules. - Match existing project conventions before introducing new patterns. - Include meaningful tests for business-critical behavior. - Never ship placeholder TODO logic in production paths. ## Performance conventions - Use explicit naming for modules, services, and handlers. - Add boundary validation for external inputs and API payloads. - Keep side effects isolated and observable with logs/metrics. - Favor predictable dependency boundaries and clear ownership. - Document trade-offs for non-obvious implementation choices. ## Symfony guidance - Follow canonical Symfony project layout and idioms. - Optimize for readability first, then measure before optimization. - Keep configuration centralized and environment-safe. - Ensure lint/type/test checks pass before merging. - For php, avoid hidden magic and implicit behavior. ## Testing checklist - Unit tests for pure logic and edge cases. - Integration tests for external dependencies. - Regression tests for bug fixes. - Deterministic test data and stable assertions. ## Security & reliability checklist - Validate and sanitize all user-controlled inputs. - Avoid leaking secrets in logs or error responses. - Fail safely with clear, actionable error messages. - Add retries/timeouts only where idempotency is guaranteed. ## AI generation behavior - Generate minimal diffs rather than full rewrites. - Explain risky changes before applying them.
How to use with Aider
Create a `CONVENTIONS.md` file in your project root. Aider reads this and respects your conventions when generating changes.
#aider#php#symfony#performance#ai-coding-rules
Related Rules
PHP Cursor Rules
CursorPHP
Cursor rules for PHP: modern PHP 8 patterns, strict types, type declarations, and secure PHP development.
Code Style
php · php8Copy Ready
Python Aider Conventions
AiderPython
Aider AI coding conventions for Python: CONVENTIONS.md patterns for automated refactoring and clean Python code.
Code Style
python · aiderCopy Ready
Next.js Aider Conventions
AiderNext.js
Aider conventions for Next.js: file naming, route organization, and App Router conventions.
Architecture
nextjs · aiderCopy Ready
SQL Aider Conventions
AiderSQL
Aider conventions for SQL and database migrations: naming, formatting, and migration patterns.
Database
sql · aiderCopy Ready