naming-refactor

naming-refactor is a skill for Claude Code, Codex from PaulRBerg/agent-skills. It costs 20 tokens per session (2,372 once invoked), scanned A, original, MIT.

A repository-wide refactoring workflow for making names and folder structure express one consistent domain model while keeping behaviour and external interfaces unchanged.

In plain words
What is it for?
Use it to rename code and files across the whole repository, reorganise paths, preserve compatibility, and separately report any clearly proven bug fixes discovered during the work.
Why use it?
It removes confusing or inconsistent names without accidentally breaking features, integrations, command-line options, configuration, or import paths.

Skill for Claude CodeCodex

Written for Claude Code and Codex: disable-model-invocation in frontmatter, but also agents/openai.yaml present. Also seen: mentions subagents.

Good fit Use it to rename code and files across the whole repository, reorganise paths, preserve compatibility, and separately report any clearly proven bug fixes discovered during the work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/paulrberg/agent-skills/naming-refactor
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 PaulRBerg/agent-skills --skill naming-refactor
Clone the repo
git clone --depth 1 https://github.com/PaulRBerg/agent-skills

Made for: Claude Code, Codex.

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-refactor

README.md
[![agentmods](https://agentmods.dev/badge/skills/paulrberg/agent-skills/naming-refactor/github.svg)](https://agentmods.dev/skills/paulrberg/agent-skills/naming-refactor)
Your own site
<a href="https://agentmods.dev/skills/paulrberg/agent-skills/naming-refactor"><img src="https://agentmods.dev/badge/skills/paulrberg/agent-skills/naming-refactor/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-refactor

Your own site · 80×15
<a href="https://agentmods.dev/skills/paulrberg/agent-skills/naming-refactor"><img src="https://agentmods.dev/badge/skills/paulrberg/agent-skills/naming-refactor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,372 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00020 $0.02372
Opus 5.5 $0.00008 $0.00949
Sonnet 5.5 $0.00004 $0.00474
Haiku 4.5 $0.00002 $0.00237

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

Security

Grade A, and why

naming-refactor 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 17d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/naming-ledger.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/naming-refactor/SKILL.md · 178 lines

How it starts

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

Naming Refactor

If a slash or dollar invocation already added these instructions to the conversation, follow them directly. In that case, do not invoke this skill again through a skill tool.

Make every name in the current repository communicate one coherent domain model, regardless of refactor cost.

Contract

  • Cover the complete current Git repository. Do not narrow the run to selected files or stop after a candidate cap.
  • Preserve features, runtime behavior, side effects, performance-sensitive characteristics, and externally consumed contracts. Large diffs, path moves, and repository-controlled interface migrations are allowed.
  • Treat an exported surface as repository-controlled only when every consumer is in scope and can migrate atomically. Preserve other API names, CLI flags, environment variables, configuration keys, wire fields, routes, database names, and import paths unless the user explicitly authorizes a breaking migration.
  • Fix a bug discovered during the refactor only when the defect and intended behavior are clear and a regression check can prove the fix. Keep bug fixes in a distinct change wave and report them separately.
  • Preserve pre-existing work. Local edits, file moves, directory restructuring, and non-destructive validation are authorized. Do not commit, push, publish, or write externally unless the user or repository instructions require it.
  • Serialize implementation and verification against intersecting repository writes. Complete codebase analysis and the refactor plan first, then claim the cumulative write set before each wave as defined under Acquire the Implementation Scope.
  • A verified no-op is valid only after exhaustive coverage. Do not rename a clear, conventional name merely to create churn, but do not retain a weak name to minimize diff size.

Coverage Ledger

Resolve scripts/naming-ledger.py relative to this SKILL.md and create its ledger outside the repository:

uv run "<skill-dir>/scripts/naming-ledger.py" init --root <repo> --ledger <scratch.json>

Read the full file on GitHub · 178 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 17d ago Changed bedcd0560737
  2. 1mo ago Changed · +1 lines 5637c07bd281
  3. 1mo ago Changed · +1 lines 275ed23ee74a
  4. 1mo ago Changed · +8 lines 5cdd86af7a33
  5. 2mo ago Changed 71bf3ca32266
  6. 2mo ago First seen · 168 lines · 20 tokens per session scan A 8b18b98d8588

Subscribe to this mod's changes

naming-refactor is a skill published in the GitHub repository PaulRBerg/agent-skills (104 stars, last pushed 2d ago), licensed MIT. It adds 20 tokens to every session and 2,372 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

naming-refactor compared with skills from other repositories

naming-refactor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
naming-refactorPaulRBerg/agent-skillsSkill1042d agoMITA20Claude Code, Codex
autoreviewopenclaw/clawhubSkill9.6ktodayMITA17Claude Code, Codex
agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skillsSkill2.2k3d agoMITA115Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill5.2ktodayMITA49Claude Code, Codex
revdiff-planumputun/revdiffSkill9474d agoMITA84Claude Code
explore-unknownsdzhng/skillsSkill1.5ktodayMITA162Claude Code, Codex
re0-mergeLilMGenius/paperthinSkill1.4ktodayMITA70Claude Code