python-naming
Define or review Python identifier, file, and visibility naming conventions.
Files2
View on GitHubSKILL.mdskills/python-naming/SKILL.md
GitHubPurpose
Define one consistent naming contract for Python code.
Trigger / When to use
Use this skill when:
- a project needs Python naming rules
- code review or scaffolding must choose compliant names
- a draft guideline mixes naming cases or visibility signals
Do not use this skill when:
- the question is mainly about type strictness or pyright rules
- the task is to choose between
Enum,dataclass,ABC, orProtocol
Inputs
- the Python surfaces being named
- any existing repository naming policy
- explicit exceptions, if they already exist
Process
- Read the repository policy and extract naming rules only.
- Map each code surface to one naming form and one visibility rule.
- Reject mixed conventions that leave multiple valid names for the same job.
- Put stable detail and edge cases in
reference.md. - Stop at a review-ready naming rule set or skill draft.
Examples
- Positive: Draft rules that keep modules in
snake_case, classes inPascalCase, constants inUPPER_CASE, and internal helpers with a single leading underscore. - Negative: Produce one rule set that mixes
camelCase,PascalCase, andsnake_casefor functions or treats visibility as optional.
Outputs
- a single-purpose naming rule set or skill draft
- explicit allowed and disallowed naming patterns
- a local reference file with examples and edge cases
Boundaries
- Do not define strict typing policy, control-flow policy, or model-selection rules.
- Do not create new exceptions unless the repository already requires them.
- Do not rely on unstated style guides outside this skill folder.
Local references
reference.md: naming matrix, approved examples, and edge-case guidance