---
name: Brooks Sweep
slug: brooks-sweep
category: Quality
description: Brooks Sweep runs a unified analysis across code decay, architecture, tech debt, and test quality, then applies fixes directly to the codebase. Use it when asked to sweep the codebase, fix everything, auto-fix all issues, or clean up the whole project in one command.
github: "https://github.com/hyhmrright/brooks-lint/tree/main/skills/brooks-sweep"
language: JavaScript
stars: 1383
forks: 61
install: "npx degit https://github.com/hyhmrright/brooks-lint/tree/main/skills/brooks-sweep ~/.claude/skills/brooks-sweep"
installs_to: ~/.claude/skills/brooks-sweep
source_path: skills/brooks-sweep/SKILL.md
collection_size: 9
category_size: 1354
collection_url: "https://dirskills.com/collections/hyhmrright/brooks-lint"
added: 2026-08-19T07:27:53.113Z
last_synced: 2026-08-19T07:27:53.113Z
canonical_url: "https://dirskills.com/skills/brooks-sweep"
---

# Brooks Sweep

Brooks Sweep runs a unified analysis across code decay, architecture, tech debt, and test quality, then applies fixes directly to the codebase. Use it when asked to sweep the codebase, fix everything, auto-fix all issues, or clean up the whole project in one command.

**Install:**

```bash
npx degit https://github.com/hyhmrright/brooks-lint/tree/main/skills/brooks-sweep ~/.claude/skills/brooks-sweep
```

## README

# Brooks-Lint — Full Sweep & Auto-Fix

## Setup

Read in order:

1. `../_shared/common.md` — Iron Law, Project Config, Report Template, Health Score
2. `../_shared/source-coverage.md` — book coverage, exceptions, tradeoffs
3. `../_shared/decay-risks.md` — production risk symptoms
4. `../_shared/test-decay-risks.md` — test risk symptoms
5. `sweep-guide.md` (this directory) — the unified scan and fix process

## Process

**Scope:** if the user did not specify a project or directory, apply Auto Scope Detection
(`../_shared/common.md`) first.

1. Show the pre-flight consent notice and wait for one-time approval (Step 0 of the guide)
2. Enumerate scope and initialize pipeline state (Step 1 of the guide)
3. Run the four dimensions in sequence — review, test, debt, audit — each scanning, classifying, fixing, and verifying (Steps 2–5 of the guide)
4. Iterate over modified files and their consumers until a clean round or the cap (Step 6 of the guide)
5. Aggregate residual and unresolvable items and output the Full Sweep Report (Steps 7–8 of the guide)

**Mode line in report:** `Full Sweep`
