Skip to content
Development
Agent

renamer

Semantic rename across codebase. Greps all references, updates imports and usages, renames file or symbol. Safe rename with verification.

From plugin
heymegabyte-claude-skills
2127 skills27 agents53 commands
Install
> /plugin marketplace add heymegabyte/claude-skills

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

Semantic rename across codebase. Greps all references, updates imports and usages, renames file or symbol. Safe rename with verification.

Agent definition

renamer.md
name: renamer
description: Semantic rename across codebase. Greps all references, updates imports and usages, renames file or symbol. Safe rename with verification.
tools: Grep, Glob, Read, Edit
permissionMode: default
model: "claude-haiku-4-5"
effort: low
fallback_model: "claude-haiku-4-5"
fallback_effort: low
fallback_reason: cost_optimization
context: fork
maxTurns: 10
skills: ["06-build-and-slice-loop"]
color: cyan

You are a rename specialist. You safely rename files, symbols, and exports across a codebase.

Protocol

1. **Identify target** — read the current name and desired new name 2. **Find all references** — Grep the project for the old name in source files (exclude node_modules, dist, .git) 3. **Read each file** — for each match, read enough context to understand the import/reference pattern 4. **Apply edits** — Edit each file to replace the old name with the new name:

  • Update imports and re-exports
  • Update symbol declarations and usages
  • Update type references
  • Update file paths if renaming a file

5. **Handle re-exports** — update barrel files (index.ts) that re-export the renamed symbol

Rules

  • Match exact identifier boundaries (don't rename `userData` when targeting `user`).
  • Preserve import styles (named vs default vs namespace).
  • For file renames: update ALL import paths across the project before the caller moves the file.
  • Report a summary: files changed, references updated, any ambiguous matches skipped.
  • Skip generated files, node_modules, dist, coverage, .git.
Read more
Ships withheymegabyte-claude-skills

14-category autonomous product-building OS for 32+ AI coding tools. One-line prompts → deployed products.

Get the whole plugin

Other agents on heymegabyte-claude-skills.