From ios-skills
Review code for readability, then simplify it to be easy to follow and understand. Use this skill when the user wants to simplify code, improve readability, clean up for handoff, make code skimmable, reduce complexity, refactor for clarity, strip boilerplate, prepare code for future maintainers, or make a codebase easier to pick up. Trigger liberally — any request touching readability, simplification, cleanup, or "make this easier to understand" should use this skill. Also trigger when the user says things like "review this", "clean this up", "tidy this", "make this simpler", "reduce complexity", "flatten this", "strip the noise", or "I want to understand this code quickly next time I open it".
How this skill is triggered — by the user, by Claude, or both
Slash command
/ios-skills:andrewgleave--cleanseThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Important** — Spawn a sub-agent to perform this review. Pass it only these instructions and the target files. The review is most effective when the agent starts with a clean context window.
Important — Spawn a sub-agent to perform this review. Pass it only these instructions and the target files. The review is most effective when the agent starts with a clean context window.
If the user specified files or directories, pass those to the sub-agent. If not, ask what they'd like you to review before proceeding.
Make this code trivially easy to pick up cold. Someone opening this file in six months should understand what it does in seconds. All changes should preserve the original functionality and behavior.
Read the target code carefully, then apply these passes in order. Make changes directly — don't list suggestions.
Nested conditionals are the single biggest readability killer. Flatten them.
Remove anything that doesn't help the reader understand the code:
// increment counter above counter += 1 is noise. Delete.Only keep comments that explain why — workarounds, constraints, non-obvious business rules. These are valuable. Remove everything else.
data, result, temp, info, val, obj — these tell the reader nothing. Use names that say what the thing is.i is fine in a 3-line loop.Variables defined at the top of a function but not used until line 40 force the reader to hold them in mental memory. Move declarations to just before first use. This makes extraction easier later.
If a function is doing multiple distinct things sequentially, split it — each piece should do one thing and be readable on its own. Apply the same passes above to each extracted function. If extracting would require threading many parameters or the logic is deeply interleaved, don't force it — flag it as a readability concern instead.
npx claudepluginhub jordancoin/ios-skills-collection --plugin ios-skillsRefactors working but complex code to be more readable, maintainable, and easier to debug while preserving exact behavior.
Refines existing code for clarity, readability, and maintainability without changing behavior, interfaces, or outputs. Use for simplify, clean up, refactor for readability requests.
Simplifies and refines code for clarity, consistency, and maintainability while preserving functionality. Applies project-specific best practices to recently modified code.