← ClaudeAtlas

dev-qualitylisted

Pre-wrap quality gate. Runs /claude-code-hermit:simplify for a cleanup pass on the working-tree diff (including untracked files), re-runs commands.test, and reports results. Suggests /code-review for a deeper review. Run this before committing.
gtapps/claude-code-hermit · ★ 60 · Code & Development · score 81
Install: claude install-skill gtapps/claude-code-hermit
# /dev-quality Run a cleanup pass on the working-tree changes before declaring the task done. Invokes `/claude-code-hermit:simplify` — three parallel reviewers (reuse, quality, efficiency) propose edits; the skill applies the edits it picks (per its Principles) and reports totals. Then re-runs the configured test command. Call this at task wrap-up, before committing. ## Prerequisites - Verify `.claude-code-hermit/sessions/` exists. If not: tell the operator to run `/claude-code-hermit:hatch` and `/claude-code-dev-hermit:hatch` first. - Read `.claude-code-hermit/config.json` once. Cache `commands.test` (if unset, the test step is skipped — `/claude-code-hermit:simplify` still runs) and `claude-code-dev-hermit.protected_branches` (default `["main", "master"]` if absent). ## Plan ### Argument Optional `--cwd <path>`. When set, all git operations and the test re-run target `<path>` instead of `$PWD`. `<path>` must be a git working tree. Use this for nested-repo workflows (see CLAUDE-APPEND §Implementation Flow). State (`last-test.json`, hermit dir) still resolves from `$PWD`. In the gates below, use `git -C "<path>"` for every git invocation when `--cwd` is set, otherwise omit the `-C` and run against `$PWD` as today. Below this is written as `git -C "$TARGET"` with `$TARGET` standing for either form. ### Gate 0 — preconditions ```bash git -C "$TARGET" status --porcelain ``` Empty output → working tree is clean (no modified, staged, or untracked-but-not-ignored files).