Skip to content
Productivity
Skill

/code-simplifier

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.

From plugin
inbox-zero
13k26 skills2 agents

Claude Code

$ npx -y skills add elie222/inbox-zero --skill code-simplifier --agent claude-code

SKILL.md

code-simplifier.SKILL.md
name: code-simplifier
description: 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.

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.

  • Keep features, outputs, side effects, data contracts, permissions, and error behavior intact.
  • Change how code is expressed, not what it does.

2. Apply project standards.

  • Use TypeScript with strict null checks.
  • Keep imports at the top of files.
  • Import directly from original sources; do not add barrel files or re-export patterns.
  • Prefer existing local patterns, frameworks, and helper APIs.
  • Infer types from Zod schemas with `z.infer<typeof schema>` instead of duplicating types.
  • Keep helper functions at the bottom of files.
  • Add comments only for why, not what.
  • Follow repository React, API route, server action, logging, and testing conventions when touching those areas.

3. Enhance clarity.

  • Reduce unnecessary complexity and nesting.
  • Remove redundant code and weak abstractions.
  • Improve names when intent becomes clearer.
  • Consolidate related logic only when it improves maintainability.
  • Avoid nested ternaries; prefer straightforward control flow, a small helper, a switch, or a lookup table.

4. Maintain balance.

  • Do not prioritize fewer lines over readability.
  • Do not create clever dense one-liners.
  • Do not combine too many concerns into one function or component.
  • Do not remove helpful abstractions that make the code easier to understand or extend.

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.

Read more
@elie222
Ships withinbox-zero

The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.

13k26 skills2 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
13.1k
Star history of elie222/inbox-zero on GitHub, a chart by star-history.com

Other skills on inbox-zero.

agent-browser

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…

@elie222@elie222Install Skill
create-pr

create-pr

Review the working tree, commit it safely, and open a GitHub pull request. Use when the user asks to create, open, raise, or…

@elie222@elie222Install Skill
e2e

e2e

Run and debug E2E flow tests. Use when triggering E2E tests, checking test status, debugging failures with Axiom logs, or setting…

@elie222@elie222Install Skill

More skills from other plugins.

i-have-adhd

i-have-adhd

Shape output for a reader with ADHD: lead with the next action, number multi-step work, restate state across turns, suppress…

@ayghri@ayghriInstall Skill
ab-test-analysis

ab-test-analysis

Analyze A/B test results with statistical significance, sample size validation, confidence intervals, and ship/extend/stop…

pm-skills13d28k
@phuryn@phurynInstall Skill
distilly

distilly

Set up the owner profile so a personal agent knows who it works for (first-run setup, \"get to know me\"), or distill colleague,…

Questions about code-simplifier.

Which coding agents can use code-simplifier?
code-simplifier installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.