at-simplify

Refactor changed code to reduce duplication, complexity, and wasted work.

180|Updated Jul 7, 2026
One-click install
npx skills add https://github.com/kairyou/agent-tools --skill at-simplify-kairyou
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: at-simplify
Source: https://github.com/kairyou/agent-tools/tree/main/skills/workflow/at-simplify
Command: npx skills add https://github.com/kairyou/agent-tools --skill at-simplify-kairyou

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Code changes often accumulate duplication, unnecessary complexity, and inefficient patterns that slip through review. This Skill systematically cleans up diffs, PRs, branches, or working-tree changes by finding reuse opportunities, simplifications, efficiency issues, and shallow fixes, then applying the improvements directly. ## Core Features & Use Cases - Four-Angle Parallel Review: Launches four concurrent review agents covering reuse, simplification, efficiency, and altitude (root-cause depth), each returning findings with file, line, and concrete cost. - Flexible Review Scope: Works on commit ranges, PRs, branches, file paths, staged changes, or uncommitted working-tree changes via git diff. - Automatic Fix Application: Deduplicates findings and applies fixes directly, skipping anything that would change intended behavior or fall outside the reviewed diff. - Use Case: Before merging a feature branch, run the Skill against the branch diff to catch copy-pasted logic, redundant state, and bandaid fixes, then have them cleaned up in one pass. ## Quick Start Ask the agent to run at-simplify on the current branch changes to find and fix duplication, complexity, and inefficiency before committing.

Frequently Asked Questions about at-simplify

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

FAQPage Schema
How do I refactor code changes before committing?▼

Run at-simplify against your working-tree or staged changes. It gathers the git diff, reviews it from four cleanup angles in parallel, and applies fixes for duplication, complexity, and inefficiency directly.

How to review a pull request for code quality issues?▼

Pass the PR reference as an argument to at-simplify. It reviews that target instead of the local diff, checking for reuse opportunities, redundant state, wasted computation, and shallow fixes, then applies safe improvements.

What is the difference between at-simplify and at-review?▼

at-simplify focuses on code quality: duplication, complexity, efficiency, and fix depth. at-review hunts correctness bugs and regressions. Use at-review for bug detection and at-simplify for cleanup and refactoring.

Can at-simplify change the behavior of my code?▼

No. It skips any finding whose fix would change intended behavior, require changes well outside the reviewed diff, or that it judges to be a false positive, and notes the skip in its summary.

What kinds of issues does at-simplify detect?▼

It detects re-implemented existing helpers, redundant or derivable state, copy-paste variation, dead code, repeated I/O, sequential independent operations, closure-based memory retention, and special-case bandaids over shared infrastructure.