zhanghandong/rust-skills/rust-refactor-helper
Claude Code and agent skill by zhanghandong/rust-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Safe Rust refactoring with LSP analysis. Triggers on: /refactor, rename symbol, move function, extract, 重构, 重命名, 提取函数, 安全重构
Install
npx vskill@latest install zhanghandong/rust-skills/rust-refactor-helperSKILL.md
Rust Refactor Helper
Perform safe refactoring with comprehensive impact analysis.
Usage
Actions:
rename <old> <new>- Rename symbolextract-fn <selection>- Extract to functioninline <fn>- Inline functionmove <symbol> <dest>- Move to module
Examples:
/rust-refactor-helper rename parse_config load_config/rust-refactor-helper extract-fn src/main.rs:20-35/rust-refactor-helper move UserService src/services/
LSP Operations Used
Pre-Refactor Analysis
Refactoring Workflows
1. Rename Symbol
Output:
2. Extract Function
Output:
3. Move Symbol
Output:
Safety Checks
| Check | Purpose | |
|---|---|---|
| Reference completeness | Ensure all uses are found | |
| Name conflicts | Detect existing symbols with same name | |
| Visibility changes | Warn if pub/private scope changes | |
| Macro-generated code | Warn about code in macros | |
| Documentation | Flag doc comments mentioning symbol | |
| Test coverage | Show affected tests |
Dry Run Mode
Always use --dry-run first to preview changes:
This shows all changes without applying them.
Related Skills
| When | See | |
|---|---|---|
| Navigate to symbol | rust-code-navigator | |
| Understand call flow | rust-call-graph | |
| Project structure | rust-symbol-analyzer | |
| Trait implementations | rust-trait-explorer |
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/rust-refactor-helper/SKILL.md
Popularity
- Repository stars
- 1,085
- Repository forks
- 97
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 2 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zhanghandong/rust-skills/rust-refactor-helper)