simplify

Solid

Optional pre-review quality pass — behavior-preserving fixes for reuse, dead weight, altitude, and clarity. Bug hunting is /code-review's job.

AI & Automation 1 stars 0 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 80/100

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

Skill Content

Simplify recently changed code while preserving exact behavior: same output for every input, same error behavior, same side effects and ordering. Prioritize readable, explicit code over compact code — fewer lines is not the goal. ## Step 1: Resolve the scope 1. **If the user named a scope** (a file, a directory, "the function I just wrote"), use it as authoritative — do not widen it. 2. **Otherwise**, use the diff between the current branch and its merge-base with the default branch (`git diff <default-branch>...`). With no base ref, fall back to staged + unstaged changes (`git diff HEAD`). 3. **Outside a git repository**, use the files edited earlier in this conversation. If the scope comes up empty, stop and ask the user what to simplify. **Preflight:** the reviewers hunt in _code_. If the scope is documentation-only, or only generated, vendored, lockfile, or mechanical churn (formatting, lint autofix, mass rename), stop with a one-line note that there is nothing to simplify. On a mixed diff, narrow the scope to the code files and continue. Gate on the _kind_ of change only — a user-named scope always runs. ## Step 2: Launch three reviewers in parallel Dispatch one subagent per persona, in parallel where the harness supports it, sequentially otherwise. For each, read its file and pass the **full file content verbatim** as the subagent's prompt, together with the resolved scope (the full diff or file set) — paraphrasing from memory loses the gating rules that keep t...

Details

Author
toverux
Repository
toverux/grimoire
Created
2 weeks ago
Last Updated
yesterday
Language
Shell
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category