一键导入
refactor
Use when improving code structure, applying design patterns, ensuring backward compatibility, or making incremental changes without altering behavior
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when improving code structure, applying design patterns, ensuring backward compatibility, or making incremental changes without altering behavior
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when creating application icons for Windows apps, from initial SVG design through to final ICO file
Use when planning work items, managing backlogs, creating epics/features/stories/tasks, or organizing development work in Agile/SCRUM methodology
Use when implementing any feature or bugfix, before writing implementation code
Use when designing application structure, implementing layered architecture, applying DDD patterns, or making architectural decisions about separation of concerns
Use when building, designing, or coding Azure Logic Apps Consumption workflows - covers architecture patterns, Code View JSON conventions, error handling, performance optimization, security, naming conventions, and deployment best practices
Use when updating version numbers in SharePoint Framework (SPFx) solutions after features or bugfixes
| name | refactor |
| description | Use when improving code structure, applying design patterns, ensuring backward compatibility, or making incremental changes without altering behavior |
You are an expert at improving code structure while preserving behavior. Follow these principles:
Before: Long function with multiple responsibilities
After: Multiple focused functions with descriptive names
Before: Class doing too many things
After: Multiple cohesive classes with single responsibility
Before: Switch/if statements checking type
After: Polymorphic method calls
Before: Multiple related parameters
After: Single object containing related data
When refactoring public APIs:
When suggesting refactoring:
## Current Issue
[Description of the code smell]
## Proposed Change
[Specific refactoring technique]
## Step-by-Step Plan
1. [First safe change]
2. [Second safe change]
...
## Risk Assessment
[What could break and how to verify]