disable-model-invocation: true name: simplify description: Use when the user wants recently modified code simplified without changing behavior. Apply the repository's current standards, improve clarity, remove unnecessary complexity, and keep the work scoped to code touched in the current session unless the user asks for a broader pass.
Simplify
Use this skill to refine recently changed code without expanding scope.
Default rules:
- work on code touched in the current task
- preserve behavior exactly
- prefer readability over shorter code
- follow the active
AGENTS.mdand local conventions
Priorities:
- Remove unnecessary branching, nesting, abstraction, and duplication.
- Prefer explicit names and straightforward control flow.
- Consolidate related logic when that makes the code easier to read.
- Remove comments that restate the code.
- Avoid dense one-liners and nested ternaries.
Process:
- Identify the changed files or hunks.
- Read enough surrounding code to understand the local pattern.
- Make the smallest forward-only change that improves clarity.
- Re-run relevant validation after edits.
- Summarize only meaningful simplifications.
Do not widen the pass into untouched areas unless the user asks for it.