simplify

Reviews changed code for reuse, quality, and efficiency, then fixes findings.

2|2|Updated Jun 28, 2015
One-click install
npx skills add https://github.com/camercu/dotfiles --skill simplify-camercu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: simplify
Source: https://github.com/camercu/dotfiles/tree/main/common/.config/agents/skills/simplify
Command: npx skills add https://github.com/camercu/dotfiles --skill simplify-camercu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Code changes often accumulate duplication, redundant logic, and inefficiencies that slow down comprehension and maintenance. This Skill reviews your diff with three parallel review passes and fixes the findings directly, keeping the codebase clean without altering behavior. ## Core Features & Use Cases - Three Parallel Review Agents: Runs concurrent reuse, quality, and efficiency reviews over the full git diff, covering duplication, redundant state, N+1 patterns, and leaks. - Chesterton's Fence Guardrails: Studies project conventions and git blame before touching code, and refuses to simplify load-bearing indirection, error handling, or misunderstood code. - Incremental Fix and Verify Loop: Applies fixes directly, then verifies tests pass unmodified, linters stay clean, and no dead code remains. - Use Case: After finishing a feature branch, ask for a simplification pass; the Skill reviews the diff, finds a duplicated utility and an unnecessary repeated database call, fixes both, and confirms the test suite still passes. ## Quick Start Ask the AI to simplify the code you just changed and review the current git diff for duplication, quality, and efficiency issues.

Frequently Asked Questions about simplify

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I simplify code after making changes?▼

Run the Skill against your git diff; it launches three parallel review agents covering reuse, quality, and efficiency, then fixes each finding directly. If there are no git changes, it reviews files you mentioned or edited in the conversation.

What does a code simplification review check for?▼

The review checks three dimensions: reuse (duplicated utilities and inline logic an existing helper covers), quality (redundant state, parameter sprawl, copy-paste, stringly-typed code), and efficiency (redundant computation, N+1 patterns, leaks, sequential independent operations).

When should I not simplify code?▼

Avoid simplifying when it means inlining a named helper, merging unrelated logic, removing load-bearing indirection or error handling, trading readability for line count, or touching code outside the diff. Code you do not fully understand should go back to the understanding phase first.

Does simplifying code change its behavior?▼

No. The verification phase requires existing tests to pass unmodified; tests needing changes signal that behavior changed and the simplification must be revisited. Error handling must never be removed or weakened.

Simplify vs architecture improvement: which should I use?▼

Use simplify for diff-level cleanup of reuse, quality, and efficiency within changed code. For module-level structural work such as seams, ports, and depth, use the improve-architecture skill instead, as simplification stays scoped to the diff.