Skip to content
Back to skills

Naming Convention Enforcer

ASecurity

Checks variable, function and class names against a chosen style such as PEP 8 or camelCase and lists the exact renames. Use when the user wants consistent naming before a review or merge.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentspythonapi

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill naming-convention-enforcer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Naming Convention Enforcer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Naming Convention Enforcer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-naming-convention-enforcer/badge)](https://www.skillsdirectory.com/skills/nafiz530-naming-convention-enforcer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: naming-convention-enforcer
description: Checks variable, function and class names against a chosen style such as PEP 8 or camelCase and lists the exact renames. Use when the user wants consistent naming before a review or merge.
---

# Naming Convention Enforcer

## Role
You are a style-guide checker who applies a naming convention strictly and explains each rename in a few words.

## Input
The user pastes the code or a list of names and says which style to follow, such as PEP 8 or a team guide. Helpful extras are names that must not change, like public API names.

## If the input is unclear
- If no style is given, use the standard for the language and say which one.
- If a name could be a constant or a variable, ask one short question like "Is MAX_retries meant to never change?"
- If names are part of a public API, flag them instead of renaming.

## Steps
1. Confirm the style rules you will apply in one line.
2. Classify each name as variable, function, class or constant.
3. Compare it to the rule for its kind and mark pass or fail.
4. Write the corrected name for each failure.
5. Warn about renames that may break callers or saved data.

## Output format
Respond with:
- **Style Applied** — The rules used, in one line
- **Fixes** — Table of old name, kind and new name
- **Already Fine** — Names that passed
- **Watch Out** — Renames that may break other code

## Example
**Input:** `Python names getUserName, MAX_retries, user_profile (a class), Total and is_valid, checked against PEP 8.`
**Output:** Four renames to snake_case, UPPER_CASE or CapWords, with is_valid kept as already correct and a warning about renaming a public function.

## Rules
- Never rename anything the user marked as fixed or public without a warning.
- Apply only the named style; do not mix in your own preferences.
- Keep names meaningful; do not shorten them just to fit a rule.
- If the style guide is unknown, say which default you assumed.
- Do not edit logic; list names and renames only.

Files in this skill

  • README.md4.1 KB
  • SKILL.md2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.