ai-simplify-sweep

Solid

Sweeps stale code complexity on demand via an /ai-simplify wrapper, gates the diff, and opens a draft PR for human review. Trigger for 'run the simplify sweep', 'simplification sweep', 'simplify pass'. Never auto-merges, never runs unattended. Not for in-flight feature work; use /ai-simplify instead. Not for security cleanup; use /ai-security instead.

AI & Automation 52 stars 3 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 89/100

Stars 20%
57
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Simplify Sweep ## Purpose Codebases accumulate entropy: dead branches, redundant guards, copy-pasted helpers, layers of indirection. `/ai-simplify` already exists to fight that, but it requires manual invocation and humans rarely remember. This skill is a manual wrapper that runs simplify, gates the diff, and opens a draft PR so a human reviews the proposed reductions before merge. It has no scheduler — an operator triggers it. ## When to Use - Periodic manual maintenance pass (weekly cadence recommended). - Before a release-cut to clear obvious simplifications. - NOT for in-flight feature work — those should call `/ai-simplify` directly. ## Hard Rules - Never auto-merge. The PR is always opened with `--draft`. - Never run aggressive refactors. Conservative defaults only — guard clauses, early returns, dead-code removal, single-call-site inlines. - If the simplify diff is empty, exit cleanly with a status event; do NOT open an empty PR. ## Process ### Step 1 — Invoke `/ai-simplify` in non-interactive mode Read `.agents/skills/ai-simplify/SKILL.md` (when present) to confirm whether an explicit `--auto` flag exists. If not, invoke with conservative defaults equivalent to: ``` /ai-simplify --conservative ``` Capture the diff. If the diff is empty, emit a `framework_operation` event with `operation=simplify_sweep_no_op` and exit 0. ### Step 2 — Gate the diff If the diff is non-empty, run the standard pre-commit gate locally: ```bash ai-eng gate run --cache-aware -...

Details

Author
arcasilesgroup
Repository
arcasilesgroup/ai-engineering
Created
4 months ago
Last Updated
4 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category