brooks-sweep
What it does
This tool analyzes your code for issues like decay, poor architecture, technical debt, and test failures. It attempts to automatically fix simpler problems and asks for your permission to fix more complex ones.
When to use it
- βWhen your code is becoming difficult to understand or maintain.
- βBefore adding significant new features.
- βIf you suspect there are many hidden errors in the code.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/brooks-sweep/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βPlease analyze and fix my code for quality issues.β
5 new skills a week. 1 minute to read.
How it works
The tool checks your code in four areas: overall quality, tests, technical debt, and audit. It automatically applies safe fixes and asks for your approval for riskier ones, always verifying that the fixes work.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Brooks-Lint β Full Sweep & Auto-Fix
When to Use
Use this skill when you need full-sweep mode: runs a unified analysis across all quality dimensions β code decay, architecture, tech debt, and test quality β then applies fixes directly to the codebase. Safe changes are auto-applied; risky changes are confirmed before execution. Drawing on twelve classic...
Setup
- Read
../_shared/common.mdfor the Iron Law, Project Config, Report Template, and Health Score rules - Read
../_shared/source-coverage.mdfor book-level coverage, exceptions, and tradeoffs - Read
../_shared/decay-risks.mdfor production risk symptom definitions - Read
../_shared/test-decay-risks.mdfor test risk symptom definitions - Read
sweep-guide.mdin this directory for the unified scan and fix process
Process
If the user has not specified a project or directory: apply Auto Scope Detection
from ../_shared/common.md to determine the review scope before proceeding.
- Show pre-flight consent notice and wait for the user's one-time approval (Step 0 of the guide)
- Enumerate scope and initialize the
unresolvable/non_critical_rounds/fix_logstate (Step 1 of the guide) - Run the four dimensions in sequence β review, test, debt, audit β each scanning, classifying, applying Safe + Extended-Safe fixes, and verifying via the project test command (Steps 2β5 of the guide)
- Iterate: re-scan modified files + same-module + static consumers; converge on a clean round, retire 3-retry failures to the
unresolvableset, cap non-critical rounds at 3 (Step 6 of the guide) - Aggregate residual and unresolvable items and output the Full Sweep Report (Steps 7β8 of the guide)
Mode line in report: Full Sweep
Limitations
- Use this skill only when the task clearly matches its upstream source and local project context.
- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
FAQ
What are 'safe changes' and 'risky changes'?
Safe changes are those the tool is highly confident won't break the code. Risky changes are those that might have a larger impact, so they ask for your permission before being applied.
What happens if the tool can't fix an issue?
Issues that couldn't be automatically resolved are logged for you to review later.
Do I need to approve every fix?
No, only fixes considered risky. Safe ones are applied automatically.
Details
Original description by the author
Full-sweep mode: runs a unified analysis across all quality dimensions β code decay, architecture, tech debt, and test quality β then applies fixes directly to the codebase. Safe changes are auto-applied; risky changes are confirmed before execution.
Popularity
- GitHub stars
- 48k
- Ranking position
- #4063
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
test-driven-development
311kTeaches your agent to write a failing test first, watch it fail, then write the smallest code that passes, before building any feature or fix.
verification-before-completion
311kTeaches your agent to run real checks and read their output before claiming that a task, fix, or build is complete or passing.
migrate-to-shoehorn
310kReplaces risky type casts in your test files with the shoehorn library, so tests can use partial data and still pass type checks.