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 - Refactor code with complexity-reduction principles

Analyzes code complexity, creates a prioritized refactoring plan, and executes safety-first changes while preserving functionality.

Tags

Updated: 2026-11-08

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Analyze code complexity
  • Apply design principles
  • Identify code smells
  • Create prioritized plans
  • Write characterization tests
  • Execute safe refactorings

Inputs

  • File or directory path
  • Source code
  • Existing tests
  • Git repository state

Outputs

  • Complexity analysis
  • Prioritized refactoring plan
  • Refactored source code
  • Characterization tests
  • Test results

Requirements

  • Clean committed Git state
  • Vite 7+
  • React 19
  • TypeScript
  • Tauri 2.0
  • Rust
  • Zustand
  • Tailwind CSS
  • kube-rs

Source

  • Spec: SKILL.md
code refactoring
software design
clean code
complexity reduction
React
Rust
Analyze code complexity
Apply design principles
Identify code smells
Create prioritized plans
File or directory path
Source code
Existing tests
Complexity analysis
Prioritized refactoring plan
Refactored source code