Skip to main content

serena-refactor

This skill should be used when the user asks to "rename function", "refactor code", "rename symbol across codebase", "change function signature", "restructure code safely", or mentions Serena's rename_symbol or replace_symbol_body tools.

설치로 이동

소스 정보

저장소
anilcancakir/claude-code-plugins
최근 소스 활동
2026년 1월 26일 13:27
감지된 SKILL.md 언어
영어
스타
6
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
serena-refactor
description
This skill should be used when the user asks to "rename function", "refactor code", "rename symbol across codebase", "change function signature", "restructure code safely", or mentions Serena's rename_symbol or replace_symbol_body tools.
# Serena Safe Refactoring ## Cross-Codebase Rename ``` rename_symbol(old_name="calcTax", new_name="calculate_tax") ``` - Updates ALL references automatically - Works across files - Handles imports/exports ## Replace Function Body ``` replace_symbol_body(symbol_name="process_payment", new_body="...") ``` - Preserves function signature - Safer than text replacement - Maintains formatting ## Pre-Refactoring Checklist 1. **Check impact**: ``` find_referencing_symbols("function_to_change") ``` Review all affected locations before changing. 2. **Verify tests exist**: ``` find_symbol("test_function_to_change") ``` 3. **Run tests after**: ```bash pytest tests/test_module.py -v ``` ## Common Patterns ### Rename Function ``` find_referencing_symbols("old_name") # Check impact rename_symbol(old_name="old_name", new_name="new_name") # Run tests ``` ### Replace Implementation ``` find_symbol("function_name", include_body=true) # See current replace_symbol_body("function_name", new_body="...") # Run tests ``` ## Safety Notes - Always check references before renaming - Run tests after each refactoring step - Document patterns in Serena memory for future reference
GitHub에서 보기