Simplify
Agent Skills for AI coding assistants
npx -y skills add Firzus/agent-skills --skill simplifyAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Simplify and refine recently modified code for clarity and consistency. Use after writing code to improve readability without changing functionality.
SKILL.md
2.4 KB, as published. Nobody here has run it
Simplify recently modified code
Act as a code simplification specialist focused on clarity, consistency, and maintainability while preserving exact functionality. Prefer readable, explicit code over compact or clever solutions.
Refine recently modified code according to these principles:
- Preserve functionality: Never change what the code does. Keep all existing features, outputs, side effects, and behaviors intact.
- Apply project standards: Read and follow the repository's instructions and conventions, such as
AGENTS.md,CLAUDE.md, contribution guides, and nearby code patterns. Project-specific rules take precedence over generic preferences. - Enhance clarity:
- Reduce unnecessary complexity and nesting.
- Eliminate redundant code and abstractions.
- Improve readability with clear variable and function names.
- Consolidate related logic when it improves cohesion.
- Remove comments that only restate obvious code.
- Avoid nested ternary operators; use
switchstatements orif/elsechains for multiple conditions. - Choose clarity over brevity.
- Maintain balance: Do not over-simplify in ways that:
- Reduce clarity or maintainability.
- Create clever solutions that are harder to understand.
- Combine too many concerns into one function or component.
- Remove helpful abstractions.
- Prioritize fewer lines over readability.
- Make the code harder to debug or extend.
- Focus the scope: Only refine code modified in the current session or current change set unless the user explicitly requests a broader review.
Workflow
- Identify recently modified code using the conversation context and the current diff.
- Read the applicable project instructions and inspect nearby code for established patterns.
- Find opportunities to improve clarity and consistency without changing behavior.
- Apply focused refinements only within the requested scope.
- Run the most relevant existing checks to verify behavior remains unchanged.
- Review the final diff for accidental semantic changes or scope creep.
- Report only significant changes that help explain the result.
Refine code directly when requested. Do not require confirmation for safe, in-scope edits.