{"id":"cb66ec25-4bdf-44fb-97ef-9d7055e2cb7e","shortId":"YuQJ7x","kind":"skill","title":"codebase-cleanup-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- Cleaning up large codebases with accumulated debt\n- Removing duplication and simplifying modules\n- Preparing a codebase for new feature work\n- Aligning implementation with clean code standards\n\n## Do not use this skill when\n\n- You only need a tiny targeted fix\n- Refactoring is blocked by policy or deadlines\n- The request is 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- Identify high-impact refactor candidates and risks.\n- Break work into small, testable steps.\n- Apply changes with a focus on readability and stability.\n- Validate with tests and targeted regression checks.\n- If detailed patterns are required, open `resources/implementation-playbook.md`.\n\n## Safety\n\n- Avoid large rewrites without agreement on scope.\n- Keep changes reviewable and reversible.\n\n## Output Format\n\n- Cleanup plan with prioritized steps\n- Key refactor targets and rationale\n- Expected impact and risk notes\n- Test/verification plan\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":["codebase","cleanup","refactor","clean","antigravity","awesome","skills","sickn33","agent-skills","agentic-skills","ai-agent-skills","ai-agents"],"capabilities":["skill","source-sickn33","skill-codebase-cleanup-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/codebase-cleanup-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 · 34882 github stars · SKILL.md body (1,848 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-04-24T12:50:48.390Z","embedding":null,"createdAt":"2026-04-18T21:34:44.247Z","updatedAt":"2026-04-24T12:50:48.390Z","lastSeenAt":"2026-04-24T12:50:48.390Z","tsv":"'accumul':85 'agreement':206 'align':99,145 'analyz':26,63 'appli':178 'argument':162 'ask':273 'avoid':202 'best':24,61,147 'block':120 'boundari':281 'break':172 'candid':169 'chang':179,210 'check':193 'clarif':275 'clean':5,14,41,51,80,102 'cleaner':141 'cleanup':3,216 'clear':248 'code':9,15,31,42,46,52,68,103,137,155 'codebas':2,83,94 'codebase-cleanup-refactor-clean':1 'context':131 'criteria':284 'deadlin':124 'debt':86 'describ':252 'design':18,55 'detail':195,236 'document':129 'documentation-on':128 'duplic':88 'engin':23,60,160 'enhanc':154 'environ':264 'environment-specif':263 'exampl':239 'expect':226 'expert':11,48,269 'featur':97 'fix':117 'focus':149,182 'format':215 'help':135 'high':166 'high-impact':165 'identifi':164 'impact':167,227 'implement':100 'improv':33,70,152 'input':278 'instruct':163 'keep':209 'key':221 'larg':82,203 'limit':240 'maintain':36,73,143 'make':139 'match':249 'miss':286 'modern':21,58 'modul':91 'need':113,134 'new':96 'note':230 'open':199 'output':214,258 'over-engin':158 'pattern':19,56,196,237 'perform':38,75 'permiss':279 'plan':217,232 'polici':122 'practic':25,62,148,151 'prepar':92 'principl':16,53 'priorit':219 'provid':30,67 'qualiti':35,72,156 'rational':225 'readabl':184 'refactor':4,10,28,39,47,65,118,136,168,222 'regress':192 'remov':87 'request':126 'requir':161,198,277 'resourc':233 'resources/implementation-playbook.md':200,234 'revers':213 'review':211,270 'rewrit':204 'risk':171,229 'safeti':201,280 'scope':208,251 'simplifi':90 'skill':78,109,243 'skill-codebase-cleanup-refactor-clean' 'small':175 'softwar':22,59 'solid':17,54 'source-sickn33' 'special':12,49 'specif':265 'stabil':186 'standard':104 'step':177,220 'stop':271 'substitut':261 'success':283 'target':116,191,223 'task':247 'test':189,267 'test/verification':231 'testabl':176 'tini':115 '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':256 'use':76,107,241 'user':133 'valid':187,266 'without':157,205 'work':98,173","prices":[{"id":"7e51aaaf-5b86-467b-ab2d-a13629da9637","listingId":"cb66ec25-4bdf-44fb-97ef-9d7055e2cb7e","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-18T21:34:44.247Z"}],"sources":[{"listingId":"cb66ec25-4bdf-44fb-97ef-9d7055e2cb7e","source":"github","sourceId":"sickn33/antigravity-awesome-skills/codebase-cleanup-refactor-clean","sourceUrl":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/codebase-cleanup-refactor-clean","isPrimary":false,"firstSeenAt":"2026-04-18T21:34:44.247Z","lastSeenAt":"2026-04-24T12:50:48.390Z"},{"listingId":"cb66ec25-4bdf-44fb-97ef-9d7055e2cb7e","source":"skills_sh","sourceId":"sickn33/antigravity-awesome-skills/codebase-cleanup-refactor-clean","sourceUrl":"https://skills.sh/sickn33/antigravity-awesome-skills/codebase-cleanup-refactor-clean","isPrimary":true,"firstSeenAt":"2026-04-23T00:40:55.543Z","lastSeenAt":"2026-04-23T00:40:55.543Z"}],"details":{"listingId":"cb66ec25-4bdf-44fb-97ef-9d7055e2cb7e","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"sickn33","slug":"codebase-cleanup-refactor-clean","github":{"repo":"sickn33/antigravity-awesome-skills","stars":34882,"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-04-24T06:41:17Z","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":"3be2cbf5329bfce4f686ac1bb952524c3882e853","skill_md_path":"skills/codebase-cleanup-refactor-clean/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/codebase-cleanup-refactor-clean"},"layout":"multi","source":"github","category":"antigravity-awesome-skills","frontmatter":{"name":"codebase-cleanup-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/codebase-cleanup-refactor-clean"},"updatedAt":"2026-04-24T12:50:48.390Z"}}