Code simplifier

From elie222/inbox-zero · View interactive version

Code simplifier is an AI agent skill from the GitHub repository elie222/inbox-zero. Simplify and refine recently modified code for clarity, consistency, and maintainability while preserving exact behavior. Use when asked to simplify, polish, refactor lightly, or clean up current-session changes before review or PR.

How to use this skill

Skill file

Code Simplifier

Refine recently modified code without changing what it does. Prioritize readable, explicit code over overly compact solutions.

Reference @AGENTS.md and any more specific local instructions for project conventions.

Scope

Focus on code touched in the current session or current branch diff unless the user explicitly asks for a broader pass.

Do not introduce broad refactors, formatting churn, dependency changes, or unrelated edits.

Rules

  1. Preserve functionality exactly.
  1. Apply project standards.
  1. Enhance clarity.
  1. Maintain balance.

Workflow

  1. Inspect the current diff and identify recently modified sections.
  2. Look for low-risk simplifications that improve clarity or consistency.
  3. Apply only changes that preserve behavior.
  4. Run focused validation when practical for the files touched.
  5. Report significant changes and validation performed.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.