pi-simplify
v0.2.1
Published
A Pi extension that reviews recently changed code for clarity, consistency, and maintainability.
Maintainers
Readme
pi-simplify
A Pi extension that reviews recently changed code for clarity, consistency, and maintainability improvements.
Installation
pi install npm:pi-simplifyUsage
Review all uncommitted changes
/simplifyReview only staged changes
/simplify --stagedReview specific files
/simplify src/foo.ts src/bar.tsDiff against a specific branch
/simplify --ref=mainWhat it does
When invoked, /simplify detects changed files (via git diff) and instructs the agent to review them with these principles:
- Preserve functionality: never change what the code does
- Apply project standards: follow conventions from CLAUDE.md / AGENTS.md
- Enhance clarity: reduce complexity, eliminate redundancy, improve naming
- Maintain balance: avoid over-simplification
The agent reads each file, applies improvements one at a time, runs tests to verify nothing breaks, and summarizes the changes.
License
MIT
