PierceS1/PS1 / .claude/skills/code-simplifier
code-simplifier
UnverifiedUse this skill after completing code changes to review for reuse, quality, and efficiency. Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality.
Code Simplifier
After completing code changes, review your work for opportunities to simplify and improve.
What to Check
Reuse
- Are there existing utilities, helpers, or patterns in the codebase that do the same thing?
- Did you duplicate logic that already exists elsewhere?
- Can any new helpers be consolidated with existing ones?
Quality
- Is the code consistent with surrounding patterns and conventions?
- Are variable/function names clear and descriptive?
- Is control flow straightforward? Flatten nested conditionals with guard clauses and early returns.
- Are there unnecessary abstractions or over-engineering?
- Is error handling appropriate — not too much, not too little?
Efficiency
- Are there redundant operations (duplicate API calls, repeated computations, unnecessary loops)?
- Could any logic be simplified with built-in language features or standard library tools?
- Are imports clean and minimal?
Process
- Review all files you modified in this session
- For each file, check against the criteria above
- Fix any issues found — do not just flag them
- Keep changes minimal and focused: only simplify, do not add features or refactor beyond what's needed
Scope
- Focus on code you wrote or modified in this session
- Do not refactor unrelated code
- Preserve all existing functionality — simplification must not change behavior
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 465k | Updated | Claude CodeCodex | Verified | Install |
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 465k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |