pi-skills/simplify/SKILL.md
Use when the user asks to simplify, clean up, or improve changed code.
npx skillsauth add goofansu/pi-stuff simplifyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Improve the current changed code by making it simpler, more reusable, more maintainable, and more efficient without changing intended behavior.
The changed code should be cleaner and easier to review, with unnecessary complexity removed and behavior preserved.
A successful result may be either:
Review the current git changes.
Use:
git status --short
git diff
If there are staged changes, also inspect:
git diff --staged
If there are no git changes, review the most recently modified files that the user mentioned or that were edited earlier in the conversation.
Only edit files that are part of the current change unless an adjacent edit is clearly necessary to remove duplication or use an existing abstraction.
Evaluate the changed code through these lenses.
Look for newly added code that duplicates existing utilities, helpers, components, types, constants, or patterns.
Prefer existing project conventions over new one-off logic.
Common issues:
Look for complexity or maintainability problems.
Common issues:
Look for avoidable work introduced by the change.
Common issues:
For large or complex diffs, you may use subagents or separate review passes for reuse, quality, and efficiency. Do not use subagents mechanically for small diffs.
After editing, run the most relevant available checks, such as targeted tests, typecheck, lint, or formatting.
Prefer existing project scripts.
If validation is unavailable, too expensive, or blocked, say what you were able to check instead.
Briefly report:
If no edits were needed, say the changed code was already clean and mention what was checked.
development
Use when the user asks to research a topic online, find current information, compare options, or produce a research report.
content-media
Use when the user asks to transcribe audio files to text.
documentation
Use when the user asks to convert a URL or local document into Markdown or summarize it.
tools
Use when the user asks to load, parse, or summarize pi-share session URLs or gist IDs.