sc-improve
Code Improvement
Apply systematic improvements to code quality, performance, maintainability, and best practices.
When to use
- Refactoring existing code for better quality
- Optimizing performance bottlenecks
- Cleaning up technical debt
- Applying consistent coding style
- Improving code maintainability
Instructions
Usage
/sc:improve [target] [--type quality|performance|maintainability|style] [--safe]
Arguments
target- Files, directories, or project to improve--type- Improvement type (quality, performance, maintainability, style)--safe- Apply only safe, low-risk improvements--preview- Show improvements without applying them
Execution
- Analyze code for improvement opportunities
- Identify specific improvement patterns and techniques
- Create improvement plan with risk assessment
- Apply improvements with appropriate validation
- Verify improvements and report changes
Claude Code Integration
- Uses Read for comprehensive code analysis
- Leverages MultiEdit for batch improvements
- Applies TodoWrite for improvement tracking
- Maintains safety and validation mechanisms
More from htlin222/dotfiles
cpp
Write modern C++ with RAII, smart pointers, and STL. Use for C++ development, memory safety, or performance optimization.
130refactor
Refactor code for quality and maintainability. Use for cleanup and tech debt reduction.
74data-science
Data analysis, SQL queries, BigQuery operations, and data insights. Use for data analysis tasks and queries.
52c-lang
Write efficient C code with proper memory management and system calls. Use for C optimization, memory issues, or system programming.
46quarto-book
Generate Quarto Book project structure with chapters, configuration, and output settings. Use when user wants to create a book, multi-chapter document, technical manual, or asks about Quarto book setup.
45scientific-figure-assembly
Assemble multi-panel scientific figures with panel labels (A, B, C) at publication quality (300 DPI) using R. Use when combining individual plots into journal-ready figures.
43