AGENT SKILL

coding.rename

Rename files, functions, and variables and update all references

License 许可
Apache-2.0
所属仓库
causify-ai/helpers
最近更新
2026-11-02
Stars
★ 0
Forks
1

01 前言 Front Matter

model
haiku
description
Rename files, functions, and variables and update all references

03 SKILL.md 正文

Goal

I will give a list of files, functions, variables to rename in a codebase.

  • In TODO: -> <NEW_NAME> the -> means rename
  • For files use git mv

Workflow

  • Update all the references to those objects in the code base
    • E.g., for files, look for and update imports
    • E.g., for functions, find the callers in notebooks ipynb, Python files, and other files and update those references
  • Update documentation in txt and md files
  • If needed, run corresponding unit tests to make sure the code works

Conventions

  • For Python code follow the rules in .claude/skills/coding.rules.md
  • For Python code with unit tests, follow the rules in .claude/skills/testing.rules.md

Verification

  • [ ] Grep the codebase to confirm no references to the old name remain
  • [ ] Run the corresponding unit tests to confirm nothing broke

04 同仓库更多 Skills