AgentSkillsCN

Refactor

重构

SKILL.md

Refactor Code

Please refactor the specified code: $ARGUMENTS

Goals:

  1. Improve readability and maintainability
  2. Follow best practices and design patterns
  3. Reduce complexity where possible
  4. Maintain existing functionality (no behavior changes)
  5. Add or improve type safety if applicable

Show the before/after comparison and explain the improvements made.