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

brooks-lint

它能做什么

这是一个借鉴 12 本软件工程经典书籍中的理念来分析代码的程序。它能发现重复代码、复杂依赖等设计问题,这些问题是常见工具往往会漏掉的。

适用场景

  • ✓想在基础检查之外,获得关于代码结构的反馈时。
  • ✓进行大规模代码修改之前,想先找出薄弱环节时。
  • ✓代码能正常运行,但感觉结构混乱、组织不佳时。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“审查这段代码,告诉我它是否遵循了良好的设计实践。”

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

工作原理

它会将你的代码与《代码整洁之道》《程序员修炼之道》等著名编程书籍中的原则进行对照。它会找出不良的编码模式,并提出架构方面的改进建议。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Brooks Lint

Overview

Brooks Lint is a Claude Code skill that reviews your code through the lens of 12 classic software engineering books. Instead of checking style rules, it asks: "What would the authors of The Pragmatic Programmer, Clean Code, and Designing Data-Intensive Applications say about this code?"

It synthesizes the principles from landmark engineering books into actionable, structured feedback — catching design smells, tight coupling, missing abstractions, and architectural risks that linters and AI tools typically miss.

Named after Fred Brooks, author of The Mythical Man-Month — because the hardest bugs are conceptual, not syntactic.

The 12 Books

Book Key Principles Applied
The Pragmatic Programmer DRY, orthogonality, tracer bullets
Clean Code Naming, function size, comment clarity
The Mythical Man-Month Conceptual integrity, second-system effect
Designing Data-Intensive Applications Data consistency, fault tolerance, scalability
A Philosophy of Software Design Deep modules, information hiding, complexity
Refactoring Code smells, extract method, encapsulation
Working Effectively with Legacy Code Seams, characterization tests, dependency breaking
Domain-Driven Design Ubiquitous language, bounded contexts, aggregates
Release It! Stability patterns, timeouts, bulkheads, circuit breakers
Structure and Interpretation of Computer Programs Abstraction, recursion, metalinguistic abstraction
The Art of UNIX Programming Modularity, composability, rule of least surprise
Extreme Programming Explained YAGNI, simple design, collective ownership

When to Use This Skill

  • Use when you want architectural feedback beyond what linters provide
  • Use before major refactors to identify structural debt
  • Use when reviewing code that "works but feels wrong"
  • Use when onboarding to a codebase to quickly map risk areas
  • Use for design reviews before starting a new module or service

How It Works

Brooks Lint applies each book's core principles as a review lens:

  1. Smell detection: Flags violations of DRY, SRP, Law of Demeter, etc.
  2. Coupling analysis: Identifies tight dependencies and missing abstraction layers
  3. Naming critique: Applies Clean Code naming rules to variables, methods, classes
  4. Architecture review: Checks for DDIA-style data consistency and fault tolerance gaps
  5. Stability patterns: Flags missing timeouts, retries, and circuit breakers (Release It!)
  6. Complexity scoring: Applies APOSD complexity metrics to identify over-engineered sections

Installation

# Install via Claude Code plugin marketplace
# Search: "brooks-lint" in Claude Code > Extensions

# Or install via NPX (Antigravity)
npx agentic-awesome-skills --claude
# Then invoke: @brooks-lint

Examples

Example 1: Review a Service Class

@brooks-lint review src/services/PaymentService.ts

Brooks Lint output:

[Pragmatic Programmer] DRY violation: payment validation logic duplicated in 3 places
[Clean Code] Method processPayment() does 4 things — violates Single Responsibility
[Release It!] No timeout on external payment gateway call — risk of cascade failure
[DDIA] No idempotency key — retry on network error will double-charge
[APOSD] PaymentService knows too much about UserRepository — high coupling

Example 2: Full Codebase Architecture Review

@brooks-lint analyze the overall architecture of this codebase

Example 3: Pre-Refactor Review

@brooks-lint what are the biggest design smells in this module before I refactor it?

Review Categories

Category Books Applied What It Catches
DRY / Duplication PP, Refactoring Copy-paste code, shared logic not extracted
Naming Clean Code, DDD Unclear names, domain language violations
Coupling APOSD, PP Tight dependencies, missing interfaces
Stability Release It! Missing timeouts, no retry logic, no circuit breakers
Data Integrity DDIA Race conditions, non-idempotent operations
Complexity APOSD, SICP Over-engineering, unnecessary abstraction
Legacy Debt WELC Hard-to-test code, missing seams
Domain Clarity DDD, XP Anemic models, missing bounded contexts

Best Practices

…

常见问题

为什么叫“Brooks Lint”?

它以 Fred Brooks 命名,他是《人月神话》的作者。他认为,最难解决的 bug 并非拼写错误,而是概念上的问题。

它能发现哪些问题?

它能发现重复代码(DRY 原则)、命名不当、代码各部分之间耦合过紧,以及可能在未来引发问题的架构缺陷等。

它能取代人工审查吗?

不能。它是一个有用的工具,适合基于既定原则提供第二种意见,但关键决策仍应由人来做出。

详情

作者的原始描述

AI code reviewer grounded in classic software engineering books for catching design smells, coupling issues, and architectural risks.

repo: sickn33/agentic-awesome-skills

热度

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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能