LogoClawIndex
CasesSkillsAbout
LogoClawIndex

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.

refactor - Automate behavior-preserving Rust refactoring

Automates scoped Rust refactoring with configurable goals and levels, code-smell analysis, tests, and verification.

Tags

Updated: 2026-12-03

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Parse refactoring options
  • Identify affected scope
  • Analyze Rust code smells
  • Plan risk-based refactoring
  • Apply incremental refactoring
  • Add characterization tests
  • Run security checks
  • Verify builds and tests
  • Review architecture and diffs
  • Perform dry-run analysis

Inputs

  • Refactoring scope
  • Refactoring goal
  • Refactoring level
  • Test option
  • Security option
  • Dry-run option
  • Rust project
  • Coding style rules
  • Existing tests

Outputs

  • Refactoring analysis
  • Modified Rust source
  • Added tests
  • Execution plan
  • Verification results
  • Git branch
  • Git commits
  • Diff review

Requirements

  • Rust toolchain
  • Cargo
  • Git repository
  • coding-style.md rules
  • Passing baseline build
  • Passing baseline tests
  • Security scan skill for security option
  • test-align skill for test option

Source

  • Spec: SKILL.md
Rust
refactoring
code quality
testing
static analysis
security
Parse refactoring options
Identify affected scope
Analyze Rust code smells
Plan risk-based refactoring
Refactoring scope
Refactoring goal
Refactoring level
Refactoring analysis
Modified Rust source
Added tests