naming-conventions

Standardize Python naming conventions for functions, variables, classes, and constants.

Updated Nov 11, 2025
One-click install
npx skills add https://github.com/libertininick/chain-reaction --skill naming-conventions-libertininick
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: naming-conventions
Source: https://github.com/libertininick/chain-reaction/tree/main/.claude/skills/naming-conventions
Command: npx skills add https://github.com/libertininick/chain-reaction --skill naming-conventions-libertininick

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python code often suffers from inconsistent naming, making maintenance and readability harder. This Skill standardizes naming across functions, variables, classes, and constants to improve collaboration and quality.

Core Features & Use Cases

  • Naming patterns: Functions and variables in snake_case, async functions prefixed with async_, classes in PascalCase, and constants in SCREAMING_SNAKE_CASE.
  • Guidance for reviews: Quick checks for private members with a leading underscore and type aliases in PascalCase.
  • Use Case: Refactor a mixed codebase to align naming conventions during a code review or before merging a PR.

Quick Start

Apply these rules when editing Python files to ensure consistent naming across new and existing code.

Frequently Asked Questions about naming-conventions

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

FAQPage Schema
How do I enforce Python naming conventions for functions, variables, and classes?

To enforce Python naming conventions, apply snake_case to functions and variables, PascalCase to classes, and SCREAMING_SNAKE_CASE to constants. These rules standardize code formatting during development without requiring external tooling.

What is the correct naming pattern for asynchronous routines in Python?

The correct naming pattern for asynchronous routines in Python is prefixing the function name with async_. This convention pairs with standard snake_case formatting to distinguish async functions from synchronous ones.

How do I format private members and type aliases in Python?

To format private members in Python, add a leading underscore to the variable or function name. Type aliases should use PascalCase to ensure consistency across the codebase.

When do I need to standardize Python naming conventions?

You need to standardize Python naming conventions when refactoring a mixed codebase or preparing for a code review before merging a pull request. Consistent naming improves code readability and team collaboration.

Do I need external linting tools to validate Python naming conventions?

No, you do not need external linting tools to validate Python naming conventions. Standard Python style guidelines provide the necessary rules to check snake_case, PascalCase, and constant formatting during development.

What is the best way to refactor a Python codebase with inconsistent naming?

The best way to refactor a Python codebase with inconsistent naming is applying standardized rules like snake_case for variables, PascalCase for classes, and leading underscores for private members to align the code before merging.