naming-and-structure-cleanup

naming-and-structure-cleanup is a skill for Claude Code from yeaight7/agent-powerups. It costs 30 tokens per session (652 once invoked), scanned A, original, Apache-2.0.

A focused cleanup process for inconsistent names and file locations while leaving the program's business logic unchanged. Business logic means the rules that implement what the application does.

In plain words
What is it for?
Use it to rename symbols and files, update imports, and group related code according to the project's existing conventions.
Why use it?
It makes a project easier to navigate and reduces confusion caused by mixed naming styles or scattered related files.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the codebase-maintenance plugin — 8 skills, 4 commands, 3 agents shipped together

Good fit Use it to rename symbols and files, update imports, and group related code according to the project's existing conventions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yeaight7/agent-powerups/naming-and-structure-cleanup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yeaight7/agent-powerups --skill naming-and-structure-cleanup
Clone the repo
git clone --depth 1 https://github.com/yeaight7/agent-powerups

Made for: Claude Code.

Or install codebase-maintenance, the plugin that ships this one along with the rest of its 8 skills, 4 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for naming-and-structure-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/yeaight7/agent-powerups/naming-and-structure-cleanup/github.svg)](https://agentmods.dev/skills/yeaight7/agent-powerups/naming-and-structure-cleanup)
Your own site
<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/naming-and-structure-cleanup"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/naming-and-structure-cleanup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for naming-and-structure-cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/yeaight7/agent-powerups/naming-and-structure-cleanup"><img src="https://agentmods.dev/badge/skills/yeaight7/agent-powerups/naming-and-structure-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 652 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.00652
Opus 5 $0.00015 $0.00326
Sonnet 5 $0.00006 $0.00130
Haiku 4.5 $0.00003 $0.00065

Measured 10d ago against content hash a5fefa0ed03f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

naming-and-structure-cleanup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/codebase-maintenance/skills/naming-and-structure-cleanup/SKILL.md · 62 lines

How it starts

The opening of the file, as written. The whole thing — 62 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Purpose

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.

When to Use

  • Mixed naming conventions for the same kind of symbol or file
  • Closely related files scattered instead of co-located
  • Review feedback keeps flagging names/structure rather than logic

Inputs

  • The area to clean (directory or module)
  • The repo's type-check and test commands

Workflow

  1. 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
    
  2. 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
    
  3. 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).

  4. No logic changes. Do not refactor the internal logic of functions while performing naming cleanups. Keep the diff focused purely on structure and names.

  5. Verify. Run the project's type checker and test suite after every structural change.

Output

  • A rename/move-only diff with all imports updated
  • The convention evidence (counts) that justified the chosen direction

Verification

  • Dominant convention measured before renaming, not assumed
  • All imports/references updated — old names re-grepped with zero hits
  • Diff contains zero logic changes
  • Type checker and tests green after every structural change

Read the full file on GitHub · 62 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 62 lines · 30 tokens per session scan A a5fefa0ed03f

Subscribe to this mod's changes

naming-and-structure-cleanup is a skill published in the GitHub repository yeaight7/agent-powerups (6 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 30 tokens to every session and 652 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.