coding.rename

Rename files, functions, and variables while updating references in Python codebases.

144|140|Updated Jul 28, 2024
One-click install
npx skills add https://github.com/causify-ai/helpers --skill coding-rename
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding.rename
Source: https://github.com/causify-ai/helpers/tree/main/.claude/skills/coding.rename
Command: npx skills add https://github.com/causify-ai/helpers --skill coding-rename

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the complex and error-prone process of renaming files, functions, and variables across extensive codebases, ensuring consistency and saving developer time.

Core Features & Use Cases

  • File and code refactoring: Renames files, functions, and variables systematically, updating all related references in the codebase.
  • Scope: Useful when reorganizing projects, fixing naming inconsistencies, or preparing code for production deployment.
  • Use Case: Imagine you need to change a function name from calculate_total to compute_total throughout a large Python project—this Skill automates the search and update process to prevent human errors.

Quick Start

Provide a list of files, functions, and variables to rename in your project directory, and this Skill will handle the entire update process.

Frequently Asked Questions about coding.rename

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

FAQPage Schema
How do I rename a Python function and update all references automatically?

To rename a Python function and update references automatically, provide the target function name and project directory. The Skill propagates the new name across the entire codebase, ensuring all related code references are consistently updated without manual search effort.

What is the best way to rename files during a large codebase refactoring?

The best way to rename files during large codebase refactoring is automating the process with a dedicated tool. This Skill systematically renames files and updates all related references across code and documentation, preventing human errors during project reorganization.

Can I use this for renaming variables across multiple Python project scripts?

Yes, you can use this for renaming variables across multiple Python project scripts. It applies specifically to Python and similar project structures, systematically updating variable names and ensuring changes are propagated across related scripts to maintain consistency.

Does the file rename process also update references in documentation?

Yes, the file rename process updates references in documentation. The Skill ensures that naming changes are propagated across code, documentation, and related scripts, reducing manual effort and maintaining project-wide consistency during refactoring.

What do I need to provide to start automating code refactoring updates?

To start automating code refactoring updates, you need to provide a list of files, functions, and variables to rename within your project directory. The Skill then handles the entire update process automatically.

When should I avoid automated variable renaming in my codebase?

You should avoid automated variable renaming when dealing with dynamic code evaluation or string-matched references outside the scanned project directory. The Skill targets systematic code, documentation, and script updates, so external dependencies may require manual verification.