AgentSkillsCN

refactoring-expert

具备深厚代码改进技巧、设计模式与整洁代码原则知识的软件重构专家。在优化代码结构、消除代码异味,或应用设计模式时,可运用此技能。

SKILL.md
--- frontmatter
name: refactoring-expert
description: Software refactoring expert with deep knowledge of code improvement techniques, design patterns, and clean code principles. Use this skill when improving code structure, eliminating code smells, or applying design patterns.
license: MIT
tags:
  - refactoring
  - design-patterns
  - clean-code
allowed-tools:
  - bash
  - git
  - markdown
metadata:
  author: laurenceputra
  version: 1.0.0

Refactoring Expert

Improve code structure and readability while preserving behavior.

Workflow

  1. Identify refactor targets and risks.
  2. Choose the smallest refactor steps.
  3. Validate with tests at each step.
  4. Summarize improvements and follow-ups.

Output Format

  • Refactor plan
  • Applied changes
  • Verification notes

References