refactor-rename

Rename symbols across the AICP codebase while preserving behavior.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/cyberpunk042/devops-expert-local-ai --skill refactor-rename
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor-rename
Source: https://github.com/cyberpunk042/devops-expert-local-ai/tree/main/.claude/skills/refactor-rename
Command: npx skills add https://github.com/cyberpunk042/devops-expert-local-ai --skill refactor-rename

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Rename symbols across the AICP codebase while preserving behavior and traceability, eliminating missed references during refactors.

Core Features & Use Cases

  • Discover all symbol references across definitions, calls, imports, tests, docs, and configs.
  • Apply a safe, definition-first rename with targeted edits to maintain semantic integrity.
  • Re-run validations with tests and linting to ensure behavior remains unchanged in production.

Quick Start

Rename a symbol across the codebase to align with new naming conventions.

Frequently Asked Questions about refactor-rename

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely rename a symbol across an entire codebase?

To safely rename a symbol across a codebase, apply a definition-first rename approach, then discover all cross-references in calls, imports, tests, and docs for selective replacement to preserve behavior.

What's the best way to update imports and references when refactoring code?

The best way to update imports during a code refactor is to use a safe, targeted edit process that updates definitions first, then automatically resolves and fixes all dependent import statements and call sites.

Can I rename functions, classes, and constants without breaking existing tests?

Yes, you can rename functions, classes, variables, and constants without breaking tests by performing selective replacement across all references and then verifying behavior via the test suite and linting.

Does a codebase rename tool also update documentation and configs?

Yes, a comprehensive codebase rename process updates documentation and configurations alongside definitions and call sites, ensuring full traceability and consistency across all project files.

Why does renaming a variable miss references in my project?

Renaming a variable misses references when cross-reference discovery fails to scan imports, tests, docs, and configs, which is why a definition-first approach with targeted edits is required for safe refactoring.