simplify

Solid

Discovers incidental complexity, duplication, and dead code in a codebase and produces a ranked, behavior-preserving reduction plan — optionally applying safe changes. Dispatches four parallel read-only discovery lenses (clone detection, dead code, complexity hotspots, wrong abstraction), synthesizes into a prioritized reduction plan, and gates apply mode behind /refactor and a hard test check.

AI & Automation 45 stars 11 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 79/100

Stars 20%
55
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

## Sub-agent contract /contract ### Overview `/simplify` is a discovery-and-prioritization skill, not a correctness auditor (that is `/review`'s job) and not a blind executor (that is `/refactor`'s job). It answers: *what incidental complexity, duplication, and dead weight exists in this code, and what is safe to remove?* Default mode is **read-only**: a ranked reduction plan is emitted but nothing is changed. Writes only happen when `--apply` is explicitly passed. Scope is **diff-bounded by default** (`git diff origin/main`, or working-tree/HEAD if no remote). Pass `--all` for a whole-repo sweep (where duplication and dead-code analysis pay off most). Pass an explicit `[target]` path or PR reference to override both. Code with no test coverage is safe to *analyze* but must never be *auto-applied* — the skill surfaces that gap and recommends `/simplify [target] --all` after adding tests, or produces the plan and stops. --- ## Argument parsing | Argument | Effect | |---|---| | *(none)* | Scope = `git diff origin/main` (working-tree fallback) | | `[target]` | Explicit path, glob, or PR ref | | `--all` | Whole-repo sweep; excludes `node_modules/`, `dist/`, generated files | | `--apply` | Opt-in write mode; default is read-only plan | Parse arguments before dispatching Wave 1. Resolve scope to a concrete file list or diff stat and attach it to every sub-agent prompt. --- ## Wave 1 — Parallel discovery (read-only) Dispatch all four lenses simultaneously as `research-agen...

Details

Author
griffinwork40
Repository
griffinwork40/agent-afk
Created
1 months ago
Last Updated
today
Language
TypeScript
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category