원클릭으로
Review changed code for reuse, quality, and efficiency, then fix any issues found
npx skills add https://github.com/rysweet/RustyClawd --skill simplify이 명령을 Claude Code에 복사하여 붙여넣어 스킬을 설치하세요
Review changed code for reuse, quality, and efficiency, then fix any issues found
npx skills add https://github.com/rysweet/RustyClawd --skill simplify이 명령을 Claude Code에 복사하여 붙여넣어 스킬을 설치하세요
Orchestrate large-scale changes across a codebase in parallel
Consolidated Claude Code sync and parity tracking for RustyClawd. Fetches latest Claude Code features from official sources, compares against the local feature inventory, identifies gaps, and optionally creates GitHub issues. Also supports deep analysis by deminifying the installed Claude Code cli.js.
Track and report agent invocation metrics including usage counts, success/failure rates, and completion times. Use for understanding which agents are utilized, identifying underused agents, and optimizing agent delegation patterns.
Automated dependency conflict detection and resolution. Detects local vs CI environment mismatches, compares versions, and generates pinning recommendations. Run as pre-push check to catch issues early.
Auto-discovers and configures Language Server Protocol (LSP) servers for your project's languages
Multi-repository orchestration for coordinating atomic changes across dependent repositories. Tracks dependency graphs, coordinates cross-repo PRs, and detects breaking changes.
| name | simplify |
| description | Review changed code for reuse, quality, and efficiency, then fix any issues found |
Review recently changed files for code reuse opportunities, code quality issues, and efficiency improvements. Spawns three parallel review agents, aggregates their findings, and applies fixes directly.
/simplify/simplify <specific concern> to focus the reviewDetermine which files have recently changed. Use git to find them:
# Files changed in the current branch vs main
git diff --name-only main...HEAD
# If no branch diff, use recent commits
git diff --name-only HEAD~5
# If working tree has uncommitted changes, include those
git diff --name-only
Collect the union of changed files. Filter to source code files only (.rs, .py, .ts, .js, .go, .toml, .yaml, .json, etc.). Exclude generated files, lock files, and binary files.
Read all identified changed files to understand the full context of recent modifications.
Launch three independent review agents simultaneously using the Task tool. Each agent receives the list of changed files and their contents.
If the user provided a focus argument, pass it to all three agents as additional context to weight their analysis.
Prompt for this agent:
You are a code reuse reviewer. Analyze the following changed files for:
1. **Duplicated logic**: Functions or blocks that do the same thing in different places
2. **Missed abstractions**: Repeated patterns that could be extracted into a shared function or module
3. **Copy-paste code**: Near-identical code blocks with minor variations
4. **Reinvented wheels**: Custom implementations of functionality already available in the standard library or existing project utilities
5. **Consolidation opportunities**: Multiple small functions that could be unified into a single parameterized function
For each finding, provide:
- File path and line numbers
- Description of the reuse opportunity
- Concrete suggestion with example code showing the fix
- Estimated impact (high/medium/low)
Focus argument from user (if any): {focus_argument}
Changed files:
{file_contents}
Prompt for this agent:
You are a code quality reviewer. Analyze the following changed files for:
1. **Naming issues**: Unclear variable/function/type names that don't convey intent
2. **Error handling gaps**: Missing error handling, swallowed errors, or generic catch-all handlers
3. **Dead code**: Unreachable code, unused variables, commented-out blocks
4. **Complexity**: Functions doing too many things, deep nesting, long parameter lists
5. **Documentation gaps**: Public functions or complex logic missing documentation
6. **Type safety**: Missing type annotations, unsafe type conversions, or unclear data flow
7. **Unsafe patterns**: Unwrap calls without context, index access without bounds checking
For each finding, provide:
- File path and line numbers
- Description of the quality issue
- Concrete fix with example code
- Severity (critical/major/minor)
Focus argument from user (if any): {focus_argument}
Changed files:
{file_contents}
Prompt for this agent:
You are an efficiency reviewer. Analyze the following changed files for:
1. **Unnecessary allocations**: Creating strings, vectors, or objects that could be avoided
2. **Redundant operations**: Repeated computations, unnecessary clones, or duplicate I/O
3. **Algorithm issues**: O(n^2) patterns where O(n) or O(n log n) is possible
4. **Resource management**: Files, connections, or handles not properly managed
5. **Batch opportunities**: Sequential operations that could be batched
6. **Caching opportunities**: Expensive computations repeated with same inputs
For each finding, provide:
- File path and line numbers
- Description of the efficiency issue
- Concrete fix with example code
- Performance impact estimate (high/medium/low)
Focus argument from user (if any): {focus_argument}
Changed files:
{file_contents}
After all three agents complete, collect their results and:
Show the user a concise summary of findings before applying fixes:
## Simplify Review Summary
### Files Reviewed: N files changed
### Findings:
- Code Reuse: X issues (Y high, Z medium)
- Code Quality: X issues (Y critical, Z major)
- Efficiency: X issues (Y high, Z medium)
### Top Issues:
1. [Most impactful finding with one-line description]
2. [Second most impactful finding]
3. [Third most impactful finding]
...
### Applying fixes...
Apply all fixes directly using the Edit tool. Work through findings file by file, highest priority first.
For each fix:
After all fixes are applied, run any available tests or linters to verify nothing was broken:
# For Rust projects
cargo check 2>&1
cargo test 2>&1
# For Python projects
python -m pytest 2>&1
# For TypeScript projects
npm test 2>&1
Present the results:
## Simplify Complete
### Applied Fixes:
- [X] File: path/to/file.rs - Description of fix
- [X] File: path/to/other.rs - Description of fix
...
### Skipped (manual review needed):
- [ ] File: path/to/complex.rs - Reason it needs manual review
### Verification:
- Tests: PASS/FAIL
- Lint: PASS/FAIL
This skill works well after:
This skill pairs with:
/analyze for deeper philosophy compliance checks