code-simplifier

Use when asked to simplify recently changed code without changing behavior or explicitly asked to run the code-simplifier subagent.

⭐1stars🔀0forks📁View on GitHub🕐Updated Jan 9, 2026

When & Why to Use This Skill

The Code Simplifier is a specialized Claude subagent designed to automate the refactoring process by streamlining recently modified code. It focuses on reducing structural complexity and enhancing readability without altering the code's functional behavior, ensuring a high-standard, maintainable codebase for developers and engineering teams.

Use Cases

  • Post-Feature Refactoring: Automatically simplify complex logic or deeply nested structures immediately after implementing new functionality to maintain clean code standards.
  • Technical Debt Mitigation: Clean up 'quick-fix' code or verbose implementations during the development cycle to prevent the accumulation of technical debt.
  • Pull Request Preparation: Use the subagent to polish and condense code changes before submission, facilitating a faster and more efficient manual code review process.
  • Legacy Code Modernization: Transform redundant or outdated code patterns into concise, idiomatic expressions when touching older parts of the codebase.
namecode-simplifier
descriptionUse when asked to simplify recently changed code without changing behavior or explicitly asked to run the code-simplifier subagent.

Code Simplifier Subagent

Use the code-simplifier agent card to handle this specialized task.

Run

codex-subagent code-simplifier <<'EOF'
[Provide the task context, scope, and any issue/PR numbers.]
EOF

Notes

  • Include concrete scope and constraints in the context block.
  • Fold the subagent output back into the main workflow.