global-coding-style

coreyja's avatarfrom coreyja

Maintain consistent code formatting, naming conventions, and structure across the entire codebase with automated tools and clear standards. Use this skill when writing any code in any language or framework. When naming variables, functions, classes, or files. When formatting code with proper indentation and line breaks. When refactoring code to remove duplication or extract reusable functions. When running linters or formatters to ensure consistency. When removing dead code, unused imports, or commented-out blocks. When applying DRY principles to avoid code duplication. This skill applies universally to all programming tasks.

⭐6stars🔀1forks📁View on GitHub🕐Updated Nov 19, 2025

When & Why to Use This Skill

The Global Coding Style skill is designed to ensure high-quality, maintainable, and consistent codebases. It automates the enforcement of naming conventions, structural patterns, and formatting standards across any programming language or framework. By applying DRY (Don't Repeat Yourself) principles and integrating with industry-standard linters, this skill helps developers eliminate technical debt, improve readability, and maintain professional coding standards throughout the software development lifecycle.

Use Cases

  • Standardizing naming conventions for variables, functions, and classes to ensure clarity and intent across large-scale projects.
  • Automating code formatting, including indentation and line breaks, to maintain a uniform style in multi-developer environments.
  • Refactoring legacy code to remove duplication, extract reusable components, and improve overall system architecture.
  • Cleaning up repositories by identifying and removing dead code, unused imports, and unnecessary comments.
  • Enforcing project-specific standards through the integration of automated tools like Prettier, ESLint, Black, or Gofmt.
nameGlobal Coding Style
descriptionMaintain consistent code formatting, naming conventions, and structure across the entire codebase with automated tools and clear standards. Use this skill when writing any code in any language or framework. When naming variables, functions, classes, or files. When formatting code with proper indentation and line breaks. When refactoring code to remove duplication or extract reusable functions. When running linters or formatters to ensure consistency. When removing dead code, unused imports, or commented-out blocks. When applying DRY principles to avoid code duplication. This skill applies universally to all programming tasks.

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 code in any programming language or framework
  • When naming variables, functions, classes, methods, or files
  • When formatting code with proper indentation, spacing, and line breaks
  • When running automated formatters (Prettier, Black, rustfmt, gofmt, etc.)
  • When running linters (ESLint, Pylint, Clippy, etc.) to enforce code standards
  • When refactoring code to extract common logic into reusable functions
  • When removing dead code, unused variables, or commented-out blocks
  • When keeping functions small and focused on a single responsibility
  • When applying the DRY (Don't Repeat Yourself) principle
  • When writing meaningful, descriptive names that reveal intent

Instructions

For details, refer to the information provided in this file: global coding style