# refractor > Refactor code following best practices and design patterns - Author: LiamWang - Repository: YPYT1/Liamblog - Version: 20260113223256 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/YPYT1/Liamblog - Web: https://mule.run/skillshub/@@YPYT1/Liamblog~refractor:20260113223256 --- --- name: refractor description: Refactor code following best practices and design patterns version: 1.0.0 author: Anand Tyagi source: Claude Code Marketplace keywords: refactoring --- # refractor Refactor code following best practices and design patterns ## 来源信息 - **原始平台**: Claude Code - **市场来源**: Claude Code Marketplace - **原始名称**: refractor - **版本**: 1.0.0 - **作者**: Anand Tyagi - **关键词**: refactoring ## 功能描述 ## Your task Refactor the following code: @$ARGUMENTS Guidelines: 1. **Maintain functionality**: Ensure no breaking changes 2. **Improve readability**: Make code more self-documenting 3. **Extract common patterns**: Identify and extract reusable components 4. **Performance optimization**: Improve efficiency where possible 5. **Modern conventions**: Use current best practices 6. **Type safety**: Add or improve type annotations if applicable Explain each change and why it's beneficial. ## 使用方法 1. **自动触发**: Codex 会根据任务描述自动选择并使用此技能 2. **手动指定**: 在提示中提及技能名称或相关关键词 3. **斜杠命令**: 使用 `/skills` 命令查看并选择可用技能 ## 兼容性 - ✅ Codex CLI - ✅ Codex IDE 扩展 - ✅ 基于 Agent Skills 开放标准 --- *此技能由 Claude Code 插件自动转换,已适配 Codex 官方技能系统*