From agent-skills
Simplifies recently changed code (or specified scope) for clarity and maintainability, reducing complexity while preserving exact behavior and passing tests.
npx claudepluginhub addyosmani/agent-skills --plugin agent-skillscommands/Invoke the agent-skills:code-simplification skill. Simplify recently changed code (or the specified scope) while preserving exact behavior: 1. Read CLAUDE.md and study project conventions 2. Identify the target code — recent changes unless a broader scope is specified 3. Understand the code's purpose, callers, edge cases, and test coverage before touching it 4. Scan for simplification opportunities: - Deep nesting → guard clauses or extracted helpers - Long functions → split by responsibility - Nested ternaries → if/else or switch - Generic names → descriptive names - Dupli...
/simplifySimplifies complex code by reducing nesting, eliminating duplication, and improving clarity. Produces a report with before/after metrics, code changes, explanations, and test results.
/simplifySimplifies and refactors target code files or modules, reducing complexity and duplication while preserving behavior with included tests.
/code-simplifierReviews recent git changes for simplification opportunities like duplicates, dead code, and over-engineering, proposing cleaner code versions in a structured report while preserving behavior.
/COMMANDSimplifies recently modified files via git diff: analyzes cyclomatic complexity, detects duplicates/nesting, reduces conditionals, extracts helpers, verifies tests.
/simplifySimplifies code to improve readability and maintainability by reducing nesting, extracting functions, improving naming, removing duplication, simplifying conditionals, and verifying with tests.
/simplifyAnalyzes specified code scope (default: uncommitted changes) for duplication, dead code, unnecessary complexity, and AI bloat, producing a simplification report with follow-up options.
Share bugs, ideas, or general feedback.
Invoke the agent-skills:code-simplification skill.
Simplify recently changed code (or the specified scope) while preserving exact behavior:
If tests fail after a simplification, revert that change and reconsider. Use code-review-and-quality to review the result.