php-best-practices
Installation
SKILL.md
PHP Best Practices
Use this skill as a rulebook for building and migrating PHP backend components following TreeNation's DDD architecture.
Workflow
- Open
AGENTS.md. - Identify which components need to be created or changed (controller, service, DTO, repository, response, test).
- Load only the relevant rule files from
rules/. - Implement the smallest correct change that satisfies the requirement.
- Run PHP CS Fixer and PHPStan before finishing.