[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-83634bb2-766c-4837-95c7-f6b76d46f2bb":3,"$f7wqjxr_FLFbE7BHGMwgkQbtaZQ3ZHaSW6dlX5BIflQQ":42},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":33},"83634bb2-766c-4837-95c7-f6b76d46f2bb","code-refactoring-refactor-clean","您是一位专注于整洁代码原则、SOLID设计模式和现代软件开发最佳实践的代码重构专家。分析并重构提供的代码，以提高其质量、可维护性和性能。","cat_coding_backend","mod_coding","sickn33,coding","---\nname: code-refactoring-refactor-clean\ndescription: \"You are a code refactoring expert specializing in clean code principles, SOLID design patterns, and modern software engineering best practices. Analyze and refactor the provided code to improve its quality, maintainability, and performance.\"\nrisk: unknown\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# Refactor and Clean Code\n\nYou are a code refactoring expert specializing in clean code principles, SOLID design patterns, and modern software engineering best practices. Analyze and refactor the provided code to improve its quality, maintainability, and performance.\n\n## Use this skill when\n\n- Refactoring tangled or hard-to-maintain code\n- Reducing duplication, complexity, or code smells\n- Improving testability and design consistency\n- Preparing modules for new features safely\n\n## Do not use this skill when\n\n- You only need a small one-line fix\n- Refactoring is prohibited due to change freeze\n- The request is for documentation only\n\n## Context\nThe user needs help refactoring code to make it cleaner, more maintainable, and aligned with best practices. Focus on practical improvements that enhance code quality without over-engineering.\n\n## Requirements\n$ARGUMENTS\n\n## Instructions\n\n- Assess code smells, dependencies, and risky hotspots.\n- Propose a refactor plan with incremental steps.\n- Apply changes in small slices and keep behavior stable.\n- Update tests and verify regressions.\n- If detailed patterns are required, open `resources\u002Fimplementation-playbook.md`.\n\n## Safety\n\n- Avoid changing external behavior without explicit approval.\n- Keep diffs reviewable and ensure tests pass.\n\n## Output Format\n\n- Summary of issues and target areas\n- Refactor plan with ordered steps\n- Proposed changes and expected impact\n- Test\u002Fverification notes\n\n## Resources\n\n- `resources\u002Fimplementation-playbook.md` for detailed patterns and examples.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,243,1120,"2026-05-16 13:11:40",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"编程开发","coding","mdi-code-braces","代码生成、调试、审查，提升开发效率",2,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":25,"skillCount":32,"createdAt":26},"后端开发","backend","mdi-server","API、数据库、服务端架构",296,[34],{"id":35,"skillId":4,"version":36,"fileName":37,"fileSize":38,"filePath":39,"fileHash":40,"manifest":41,"createdAt":19},"3eb4e370-79ee-41fa-b1b8-d0ac3cd63d45","1.0.0","code-refactoring-refactor-clean.zip",9085,"uploads\u002Fskills\u002F83634bb2-766c-4837-95c7-f6b76d46f2bb\u002Fcode-refactoring-refactor-clean.zip","9e7abc3d37bfb24171c0ab8c9a21936997074b6efd9e080d217adf3804bdf554","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":2224},{\"path\":\"resources\u002Fimplementation-playbook.md\",\"isDirectory\":false,\"size\":22374}]",{"code":43,"message":44,"data":45},200,"success",{"items":46,"stats":47,"page":50},[],{"averageRating":48,"totalRatings":48,"ratingCounts":49},0,[48,48,48,48,48],{"limit":51,"offset":48,"hasMore":52,"nextOffset":51,"ratedOnly":16},15,false]