跳到正文
Skillpedia
测试48k · #4063

brooks-sweep

它能做什么

这个工具会检查你的代码,找出衰退、架构不佳、技术债务和测试失败等问题。它会尝试自动修复较简单的问题,对于较复杂的问题,则会先征求你的同意。

适用场景

  • ✓当你的代码越来越难理解或维护时。
  • ✓在添加重要的新功能之前。
  • ✓如果你怀疑代码中隐藏着许多错误时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/brooks-sweep/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/brooks-sweep/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请分析并修复我的代码中的质量问题。”

每周 5 个新技能,1 分钟读完。

工作原理

这个工具会从四个方面检查你的代码:整体质量、测试、技术债务和审计。它会自动应用安全的修复,对风险较高的修复则会征求你的批准,并且始终验证修复后的代码能否正常运行。

技术内容(原始 SKILL.md)

作者在 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

  1. Read ../_shared/common.md for the Iron Law, Project Config, Report Template, and Health Score rules
  2. Read ../_shared/source-coverage.md for book-level coverage, exceptions, and tradeoffs
  3. Read ../_shared/decay-risks.md for production risk symptom definitions
  4. Read ../_shared/test-decay-risks.md for test risk symptom definitions
  5. Read sweep-guide.md in 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.

  1. Show pre-flight consent notice and wait for the user's one-time approval (Step 0 of the guide)
  2. Enumerate scope and initialize the unresolvable / non_critical_rounds / fix_log state (Step 1 of the guide)
  3. 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)
  4. Iterate: re-scan modified files + same-module + static consumers; converge on a clean round, retire 3-retry failures to the unresolvable set, cap non-critical rounds at 3 (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

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.
常见问题

什么是“安全的更改”和“有风险的更改”?

安全的更改是指工具非常有把握不会破坏代码的修改。有风险的更改可能产生较大影响,因此在应用前会先征求你的许可。

如果工具无法修复某个问题,会怎样?

无法自动解决的问题会被记录下来,供你之后查看。

我需要批准每一个修复吗?

不需要。只有被认为有风险的修复需要你批准,安全的修复会自动应用。

详情

作者的原始描述

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.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4063
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能