From agent-skills
Simplifies recently changed code by reducing complexity without altering behavior — applies guard clauses, splits long functions, renames for clarity, deduplicates logic, and removes dead code with incremental test verification.
How this command is triggered — by the user, by Claude, or both
Slash command
/agent-skills:code-simplifycommands/The summary Claude sees in its command listing — used to decide when to auto-load this command
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...
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.
npx claudepluginhub addyosmani/agent-skills --plugin agent-skills/code-simplifySimplifies recently changed code by reducing complexity without altering behavior — applies guard clauses, splits long functions, renames for clarity, deduplicates logic, and removes dead code with incremental test verification.
/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-simplifierAnalyzes recent git changes for simplification opportunities and applies them one by one after user approval.
/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.