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 any new code in any file across the project
- •When refactoring existing code to improve readability and maintainability
- •When naming variables, functions, classes, files, or modules
- •When formatting code (indentation, spacing, line breaks, bracket placement)
- •When ensuring consistent naming conventions (camelCase for JS, snake_case for Python, etc.)
- •When identifying and extracting duplicated code (DRY principle)
- •When removing dead code, commented-out blocks, or unused imports
- •When breaking down large functions into smaller, focused single-purpose functions
- •When configuring or using code formatters (Prettier, Black, ESLint, RuboCop)
- •When setting up linting rules or EditorConfig for the project
- •When ensuring code follows team or language-specific style guides
- •When deciding whether to build new functionality or use existing solutions (YAGNI principle)
- •When avoiding premature optimization or unnecessary abstraction
Instructions
For details, refer to the information provided in this file: global coding style