global-coding-style

Write clean, consistent code following project-wide coding style conventions and formatting standards. Use this skill when writing any code in any language or file type throughout the project. Use this skill when naming variables, functions, classes, or files. Use this skill when organizing code structure and indentation. Use this skill when creating functions and deciding function size and scope. Use this skill when removing dead code, unused imports, or commented-out blocks. Use this skill when applying DRY principles to avoid code duplication. Use this skill when ensuring consistent formatting and style across the codebase. Use this skill when refactoring code for better readability and maintainability.

📖 中文导读:Write clean, consistent code following project-wide coding style conventions and formatting standards. Use this skill when writing any code in any language or file type throughout the project. Use this skill when naming variables, functions, classes, or files. Use this skill when organizing code structure and indentation. Use this skill when creating functions and deciding function size and scope. Use this skill when removing dead code, unused imports, or commented-out blocks. Use this skill when applying DRY principles to avoid code duplication. Use this skill when ensuring consistent formatting and style across the codebase. Use this skill when refactoring code for better readability and maintainability. 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: Global Coding Style description: Write clean, consistent code following project-wide coding style conventions and formatting standards. Use this skill when writing any code in any language or file type throughout the project. Use this skill when naming variables, functions, classes, or files. Use this skill when organizing code structure and indentation. Use this skill when creating functions and deciding function size and scope. Use this skill when removing dead code, unused imports, or commented-out blocks. Use this skill when applying DRY principles to avoid code duplication. Use this skill when ensuring consistent formatting and style across the codebase. Use this skill when refactoring code for better readability and maintainability.

Global Coding Style

When to use this skill

  • When writing or modifying code in any language or framework
  • When naming variables, functions, classes, or files
  • When formatting code with consistent indentation and spacing
  • When creating small, focused functions with single responsibilities
  • When choosing meaningful, descriptive names that reveal intent
  • When removing dead code, commented-out blocks, or unused imports
  • When refactoring to eliminate code duplication (DRY principle)
  • When ensuring consistent code style across the entire project
  • When deciding not to implement backward compatibility unless specifically required
  • When applying automated formatting or linting tools

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