Global Coding Style

Enforce consistent naming, formatting, and DRY principles across codebases.

6|1|Updated Nov 12, 2022
One-click install
npx skills add https://github.com/coreyja/coreyja.com --skill global-coding-style-coreyja
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Global Coding Style
Source: https://github.com/coreyja/coreyja.com/tree/main/.claude/skills/global-coding-style
Command: npx skills add https://github.com/coreyja/coreyja.com --skill global-coding-style-coreyja

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enforces a consistent coding style across the entire codebase, eliminating debates over formatting and improving readability and maintainability for all developers.

Core Features & Use Cases

  • Automated Formatting: Guides the use of linters and formatters to ensure consistent indentation, spacing, and naming conventions.
  • DRY Principle: Promotes refactoring to remove duplication and extract reusable functions, leading to cleaner code.
  • Use Case: When writing new Python code, use this skill to ensure it adheres to PEP 8 guidelines, uses descriptive variable names, and avoids code duplication by extracting common logic into helper functions.

Quick Start

Use the Global Coding Style skill to refactor the 'dataProcessor' module, ensuring consistent indentation, clear variable names, and removal of any duplicated logic.

Frequently Asked Questions about Global Coding Style

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce consistent code formatting across my entire codebase?

Consistent code formatting is enforced by applying linters and formatters that standardize indentation, spacing, and naming conventions across all files. This Skill guides you through configuring and using these tools to eliminate formatting debates and improve code readability automatically across any programming language or framework.

What's the best way to remove code duplication and follow DRY principles?

Code duplication is eliminated by refactoring to extract reusable functions and apply DRY principles. This Skill identifies duplicated logic, removes redundancy, and helps you consolidate common patterns into shared helper functions, reducing maintenance burden and improving code clarity.

Can I apply consistent naming conventions to variables, functions, and classes?

Yes, consistent naming conventions are enforced across variables, functions, classes, and files. This Skill standardizes naming patterns based on language conventions like PEP 8 for Python, ensuring descriptive and predictable names that improve code maintainability for all developers.

How do I clean up unused imports and dead code from my project?

Dead code elimination removes unused imports, unreachable code, and orphaned functions automatically. This Skill identifies and eliminates code hygiene issues across your entire codebase, reducing bloat and making the code easier to understand and maintain.

Does this work with multiple programming languages and frameworks?

Yes, this Skill applies to any programming language and framework. It handles automated formatting, linting, naming conventions, and duplication removal universally, adapting the approach to each language's conventions and existing tooling ecosystem.

What if my team has conflicting coding style preferences?

Automated enforcement removes subjectivity from style debates by applying a single consistent standard across the entire codebase. Once configured with your team's preferred conventions, the Skill automatically enforces them, eliminating manual review and discussion overhead.