Global Coding Style
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle global coding style.
When to use this skill
- When writing or editing PHP files (.php) in any part of the application
- When writing or editing TypeScript or JavaScript files (.ts, .tsx, .js, .jsx)
- When implementing explicit return type declarations in PHP methods and functions
- When adding type hints to function parameters in PHP
- When leveraging TypeScript types in frontend code
- When naming variables, functions, classes, methods, or files
- When running Laravel Pint for PHP code formatting
- When running Ultracite for JavaScript/TypeScript linting and formatting
- When running Larastan (PHPStan) for static analysis
- When applying DRY principles to eliminate code duplication
- When removing unused imports, dead code, or commented-out blocks
- When configuring pre-commit hooks via Lefthook
- When preparing code for review with CodeRabbit CLI
- When refactoring code for better readability and maintainability
Instructions
For details, refer to the information provided in this file: global coding style