/ios-skills:cleansefrom ios-skills
Reviews code for readability and simplifies it by flattening control flow, stripping noise, simplifying logic, and improving naming. Useful for cleanup, handoff, or making code easier to understand.
Ships in ios-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole 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.
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
code-review, refactoring, readability, code-simplification, cleanup
npx claudepluginhub jordancoin/ios-skills-collection --plugin ios-skills206 skills in this plugin
/aso-appstore-screenshotsGenerate high-converting App Store screenshots by analyzing your app's codebase, discovering core benefits, and creating ASO-optimized screenshot images using Nano Banana Pro./critical-reasoningApply critical rationalist epistemology (Popper, Deutsch) to evaluate reasoning, identify errors, and refine understanding. Use when the user explicitly requests help with reasoning - phrases like "help me think this through", "does this make sense", "any flaws in this", "what am I missing", "critique this", "is this reasoning sound", "stress test this idea", "devil's advocate", or any request to evaluate arguments, identify logical problems, or improve thinking. Also use when errors in reasoning are significant enough to materially affect the user's goals, even if not explicitly requested./writing-for-interfacesOther plugins' skills for the same job