| name | Global Coding Style |
| description | Write clean, maintainable code following consistent naming conventions, automated formatting, meaningful descriptive names, small focused functions, consistent indentation, removal of dead code, DRY principle, and backward compatibility only when required. Use this skill when writing any code in the project, refactoring existing code, naming variables/functions/classes, organizing code structure, removing unused code or imports, establishing code formatting standards, or ensuring consistency across the codebase. This skill applies to all file types including PHP, JavaScript, TypeScript, Vue, React, CSS, and any other code files in your project. |
Global Coding Style
When to use this skill
- When writing any new code in the project (backend, frontend, tests)
- When refactoring existing code for better readability
- When naming variables, functions, classes, or files
- When organizing code structure and file layout
- When removing unused code, commented-out blocks, or dead imports
- When establishing or following code formatting standards
- When ensuring consistency across the codebase
- When applying the DRY (Don't Repeat Yourself) principle
- When extracting common logic into reusable functions or modules
- When deciding on indentation, spacing, and code organization
- When writing self-documenting code with clear structure
- When working on any file type (.php, .js, .ts, .vue, .css, etc.)
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.
Instructions
For details, refer to the information provided in this file: global coding style