/codebase-maintenance:naming-and-structure-cleanupfrom codebase-maintenance
Enforces consistent naming conventions and file structure across a project without changing business logic. Use when naming or organization drifts.
Ships in codebase-maintenance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Inconsistent naming (camelCase vs snake_case) and messy file structures make codebases hard to navigate. Enforce the dominant local convention with focused, logic-free diffs.
Observe local conventions. Before renaming, scan the project to determine the dominant convention. If 80% of files use camelCase, enforce camelCase:
find src -type f | grep -cE "/[a-z]+[A-Z][a-zA-Z]*\." # camelCase filenames
find src -type f | grep -cE "/[a-z]+(_[a-z]+)+\." # snake_case filenames
grep -rnE "function [a-z]+_[a-z]+\(" src/ # snake_case functions in a camelCase repo
Targeted renames. Use the safe-rename command pattern to update variables, classes, or files. Ensure all imports are updated:
git grep -ln "\bOldName\b" | xargs sed -i "s/\bOldName\b/NewName/g" # then review the diff
git mv src/old_location/Component.tsx src/feature/Component.tsx # git mv preserves history
git grep -n "old_location" # no stale import paths remain
File co-location. Move files so that closely related logic is co-located (e.g., keeping Button.tsx, Button.css, and Button.test.tsx in the same directory).
No logic changes. Do not refactor the internal logic of functions while performing naming cleanups. Keep the diff focused purely on structure and names.
Verify. Run the project's type checker and test suite after every structural change.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yeaight7/agent-powerups --plugin codebase-maintenance9 skills in this plugin
/ai-slop-cleanerUse when a working code path feels bloated, noisy, or over-abstracted, when asked to clean up or deslop AI-generated code, or when a reviewer-only anti-slop pass is requested./architecture-simplificationUse when a codebase carries over-engineered abstractions, unnecessary layers, or redundant logic that should be collapsed without changing behavior./context-retrieval-loopUse when about to refactor, rename, or remove code, assessing dead code before deletion, or unsure of the blast radius of a change.Other plugins' skills for the same job