{"id":"315df255-60e6-42e7-a2d0-4916c70132b6","shortId":"27K3zj","kind":"skill","title":"code-refactoring-refactor-clean","tagline":"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.","description":"# 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/implementation-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/verification notes\n\n## Resources\n\n- `resources/implementation-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.","tags":["code","refactoring","refactor","clean","antigravity","awesome","skills","sickn33","agent-skills","agentic-skills","ai-agent-skills","ai-agents"],"capabilities":["skill","source-sickn33","skill-code-refactoring-refactor-clean","topic-agent-skills","topic-agentic-skills","topic-ai-agent-skills","topic-ai-agents","topic-ai-coding","topic-ai-workflows","topic-antigravity","topic-antigravity-skills","topic-claude-code","topic-claude-code-skills","topic-codex-cli","topic-codex-skills"],"categories":["antigravity-awesome-skills"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/code-refactoring-refactor-clean","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add sickn33/antigravity-awesome-skills","source_repo":"https://github.com/sickn33/antigravity-awesome-skills","install_from":"skills.sh"}},"qualityScore":"0.700","qualityRationale":"deterministic score 0.70 from registry signals: · indexed on github topic:agent-skills · 37911 github stars · SKILL.md body (1,863 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-18T18:50:48.366Z","embedding":null,"createdAt":"2026-04-18T20:38:28.098Z","updatedAt":"2026-05-18T18:50:48.366Z","lastSeenAt":"2026-05-18T18:50:48.366Z","tsv":"'align':147 'analyz':26,63 'appli':180 'approv':208 'area':223 'argument':164 'ask':276 'assess':166 'avoid':202 'behavior':187,205 'best':24,61,149 'boundari':284 'chang':125,181,203,230 'clarif':278 'clean':5,14,41,51 'cleaner':143 'clear':251 'code':2,9,15,31,42,46,52,68,87,92,139,157,167 'code-refactoring-refactor-clean':1 'complex':90 'consist':98 'context':133 'criteria':287 'depend':169 'describ':255 'design':18,55,97 'detail':195,239 'diff':210 'document':131 'due':123 'duplic':89 'engin':23,60,162 'enhanc':156 'ensur':213 'environ':267 'environment-specif':266 'exampl':242 'expect':232 'expert':11,48,272 'explicit':207 'extern':204 'featur':103 'fix':119 'focus':151 'format':217 'freez':126 'hard':84 'hard-to-maintain':83 'help':137 'hotspot':172 'impact':233 'improv':33,70,94,154 'increment':178 'input':281 'instruct':165 'issu':220 'keep':186,209 'limit':243 'line':118 'maintain':36,73,86,145 'make':141 'match':252 'miss':289 'modern':21,58 'modul':100 'need':113,136 'new':102 'note':235 'one':117 'one-lin':116 'open':199 'order':227 'output':216,261 'over-engin':160 'pass':215 'pattern':19,56,196,240 'perform':38,75 'permiss':282 'plan':176,225 'practic':25,62,150,153 'prepar':99 'principl':16,53 'prohibit':122 'propos':173,229 'provid':30,67 'qualiti':35,72,158 'reduc':88 'refactor':3,4,10,28,39,47,65,80,120,138,175,224 'regress':193 'request':128 'requir':163,198,280 'resourc':236 'resources/implementation-playbook.md':200,237 'review':211,273 'riski':171 'safe':104 'safeti':201,283 'scope':254 'skill':78,109,246 'skill-code-refactoring-refactor-clean' 'slice':184 'small':115,183 'smell':93,168 'softwar':22,59 'solid':17,54 'source-sickn33' 'special':12,49 'specif':268 'stabl':188 'step':179,228 'stop':274 'substitut':264 'success':286 'summari':218 'tangl':81 'target':222 'task':250 'test':190,214,270 'test/verification':234 'testabl':95 'topic-agent-skills' 'topic-agentic-skills' 'topic-ai-agent-skills' 'topic-ai-agents' 'topic-ai-coding' 'topic-ai-workflows' 'topic-antigravity' 'topic-antigravity-skills' 'topic-claude-code' 'topic-claude-code-skills' 'topic-codex-cli' 'topic-codex-skills' 'treat':259 'updat':189 'use':76,107,244 'user':135 'valid':269 'verifi':192 'without':159,206","prices":[{"id":"47e239dd-8b6c-475b-9340-f6c892ac83ad","listingId":"315df255-60e6-42e7-a2d0-4916c70132b6","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"sickn33","category":"antigravity-awesome-skills","install_from":"skills.sh"},"createdAt":"2026-04-18T20:38:28.098Z"}],"sources":[{"listingId":"315df255-60e6-42e7-a2d0-4916c70132b6","source":"github","sourceId":"sickn33/antigravity-awesome-skills/code-refactoring-refactor-clean","sourceUrl":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/code-refactoring-refactor-clean","isPrimary":false,"firstSeenAt":"2026-04-18T21:34:37.565Z","lastSeenAt":"2026-05-18T18:50:48.366Z"},{"listingId":"315df255-60e6-42e7-a2d0-4916c70132b6","source":"skills_sh","sourceId":"sickn33/antigravity-awesome-skills/code-refactoring-refactor-clean","sourceUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/code-refactoring-refactor-clean","isPrimary":true,"firstSeenAt":"2026-04-18T20:38:28.098Z","lastSeenAt":"2026-05-07T22:40:46.042Z"}],"details":{"listingId":"315df255-60e6-42e7-a2d0-4916c70132b6","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"sickn33","slug":"code-refactoring-refactor-clean","github":{"repo":"sickn33/antigravity-awesome-skills","stars":37911,"topics":["agent-skills","agentic-skills","ai-agent-skills","ai-agents","ai-coding","ai-workflows","antigravity","antigravity-skills","claude-code","claude-code-skills","codex-cli","codex-skills","cursor","cursor-skills","developer-tools","gemini-cli","gemini-skills","kiro","mcp","skill-library"],"license":"mit","html_url":"https://github.com/sickn33/antigravity-awesome-skills","pushed_at":"2026-05-18T08:24:49Z","description":"Installable GitHub library of 1,400+ agentic skills for Claude Code, Cursor, Codex CLI, Gemini CLI, Antigravity, and more. Includes installer CLI, bundles, workflows, and official/community skill collections.","skill_md_sha":"17b1502c2a12df56ab77722c5afdfe64dd411ef4","skill_md_path":"skills/code-refactoring-refactor-clean/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/code-refactoring-refactor-clean"},"layout":"multi","source":"github","category":"antigravity-awesome-skills","frontmatter":{"name":"code-refactoring-refactor-clean","description":"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."},"skills_sh_url":"https://skills.sh/sickn33/antigravity-awesome-skills/code-refactoring-refactor-clean"},"updatedAt":"2026-05-18T18:50:48.366Z"}}