rust-refactor

Community

Refactor Rust code safely while preserving APIs.

Authorvanyastaff
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill guides safe refactoring to improve structure, reduce duplication, and optimize code without breaking public APIs.

Core Features & Use Cases

  • Safe refactoring patterns: Incremental changes with compilation and test checks.
  • Modern patterns: Let-chains, is_none_or, and flatten to simplify code.
  • Common refactorings: Extract function, Builder pattern, Newtype, Error consolidation.
  • Use Case: Restructure a module to extract validation logic into a dedicated function.

Quick Start

Refactor a module by extracting a validation function and updating call sites with minimal changes.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rust-refactor
Download link: https://github.com/vanyastaff/paramdef/archive/main.zip#rust-refactor

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.