跳到正文
Skillpedia
通用编程48k · #4058

brooks-audit

它能做什么

这个工具会分析你的代码结构,找出潜在问题。它基于工程学原理,检查代码各部分之间的连接方式,判断代码组织是否合理,以及是否存在随时间推移而出现的结构性退化迹象。

适用场景

  • ✓想了解代码各部分之间的关系时。
  • ✓怀疑代码组织越来越混乱时。
  • ✓需要检查模块之间是否存在不必要的循环依赖时。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“审查这个项目的架构,并展示模块依赖关系图。”

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

工作原理

这个工具会先梳理代码模块之间的连接关系,然后检查常见的结构性问题,并在图中用颜色标示每个部分的健康状况。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Brooks-Lint — Architecture Audit

When to Use

Use this skill when you need architecture audit that maps module dependencies, checks layering integrity, and flags structural decay across a codebase, drawing on twelve classic engineering books. Triggers when: user asks to audit architecture, review folder/module structure, check for circular imports, understand...

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 symptom definitions and source attributions
  4. Read architecture-guide.md in this directory for the audit framework

Process

Onboarding mode: If the user asks for an onboarding report, codebase tour, or "explain this codebase to a new developer", read onboarding-guide.md from this directory and follow it instead of architecture-guide.md. This mode explains rather than diagnoses — no Health Score, no Iron Law findings.

If the user has not specified files or a directory to audit: apply Auto Scope Detection from ../_shared/common.md to determine the audit scope before proceeding.

  1. Gather codebase context and draw the module dependency graph as Mermaid (Steps 0–1 of the guide)
  2. Scan for each decay risk in the order specified (Steps 2–4 of the guide)
  3. Assign node colors in the Mermaid diagram based on findings (red/yellow/green) — after Step 4
  4. Run the Testability Seam Assessment (Step 5 of the guide)
  5. Run the Conway's Law check (Step 6 of the guide)
  6. Output using the Report Template from common.md — Mermaid graph FIRST, then Findings

Mode line in report: Architecture Audit

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

什么是“结构性退化”(structural decay)?

指代码组织随着时间推移变得越来越混乱、越来越难维护,就像“腐烂”了一样。

什么是“分层完整性”(layering integrity)?

指检查代码是否按照逻辑分层组织(例如底层、中间层和顶层),以及各层是否遵守规则,即某一层不应该直接调用本不该调用的另一层。

什么是“模块依赖”(module dependencies)?

指代码中各个部分(模块)之间的依赖关系,即某些模块需要依赖其他模块才能正常运行。

详情

作者的原始描述

Architecture audit that maps module dependencies, checks layering integrity, and flags structural decay across a codebase, drawing on twelve classic engineering books.

repo: sickn33/agentic-awesome-skills

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能