From sd0x-dev-flow
Simplifies code by removing dead code, extracting duplicates (3+ repeats), and reducing nesting (>3 levels). Runs tests before/after to preserve behavior. Ideal wrap-up refactor.
npx claudepluginhub sd0xdev/sd0x-dev-flow --plugin sd0x-dev-flowThis skill is limited to using the following tools:
- Keywords: simplify, clean up code, remove duplication, simplify code
Refactors code to simplify it without changing behavior. Use after features work to remove duplication, dead code, and unnecessary complexity while preserving contracts, tests, and build checks.
Simplifies code for clarity by reducing complexity while preserving exact behavior. Use when refactoring functional but hard-to-read code, during reviews, or for maintenance.
Simplifies complex/AI-generated code by removing duplication, dead code, over-engineering, and bloat patterns like verbose error handling. Use after features, on long functions (>40 lines), deep nesting (>3), or repeated patterns.
Share bugs, ideas, or general feedback.
/feature-dev)/doc-refactor)/refactor)Agent({
description: "Simplify code, eliminate duplication, preserve behavior",
subagent_type: "code-simplifier",
prompt: `Simplify the code at: $ARGUMENTS
Follow the task steps and constraints defined in this skill.`
})
After simplification, dispatch risk assessment:
Agent({
description: "Review refactoring risk and verify behavior preservation",
subagent_type: "refactor-reviewer",
prompt: `Review the refactoring changes just applied.
Check behavior preservation, dependency impact, test coverage, and rollback risk.`
})
For $ARGUMENTS:
## Refactoring Summary
- [file:line] <change>
## Test Results
✅/❌
## Next Steps
- <suggestions>