Token导航 LogoToken导航

Agent Skill · 研究检索

pragmatic-clean-code-reviewer(务实干净的代码审查者)

pragmatic-clean-code-reviewer 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

pragmatic-clean-code-reviewer 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 54,679。

总安装 499周安装 20GitHub Stars 151下载 162核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:pragmatic-clean-code-reviewer(务实干净的代码审查者)
来源仓库:https://github.com/zhen-bo/pragmatic-clean-code-reviewer
仓库路径:skills/pragmatic-clean-code-reviewer
安装命令:
npx skills add https://github.com/zhen-bo/pragmatic-clean-code-reviewer --skill pragmatic-clean-code-reviewer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/zhen-bo/pragmatic-clean-code-reviewer --skill pragmatic-clean-code-reviewer

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选代码审查相关的最佳实践或工具。适合在 Codex、Claude、Cursor、Gemini CLI 中辅助代码质量评估。通过 npx skills add 命令从 GitHub 安装并使用。需确认权限范围和维护状态,避免触发联网或文件操作。建议结合原始 README 核验具体审查标准和返回内容。

来源仓库内路径:skills/pragmatic-clean-code-reviewer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/zhen-bo/pragmatic-clean-code-reviewer --skill…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

pragmatic-clean-code-reviewer 怎么安装?

在终端执行 npx skills add https://github.com/zhen-bo/pragmatic-clean-code-reviewer --skill pragmatic-…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

pragmatic-clean-code-reviewer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

pragmatic-clean-code-reviewer 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

pragmatic-clean-code-reviewer 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

pragmatic-clean-code-reviewer 用的人多吗?

公开数据是累计安装 499 次,近一周安装 20 次,下载 162 次,GitHub 151 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

pragmatic-clean-code-reviewer 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
pragmatic-clean-code-reviewer

务实干净的代码审查者 · 本页

499151只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Pragmatic Clean Code Reviewer

Strict code review following Clean Code, Clean Architecture, and The Pragmatic Programmer principles.

Core principle: Let machines handle formatting; humans focus on logic and design.

⚠️ MANDATORY FIRST STEP: Project Positioning

STOP! Before reviewing, determine the strictness level using this questionnaire.

Q1: Who will use this code?

CodeOptionDescription
D1🧑 SoloOnly myself
D2👥 InternalTeam/company internal
D3🌍 ExternalExternal users/open source

Q2: What standard do you want?

CodeOptionDescription
R1🚀 ShipJust make it work
R2📦 NormalBasic quality
R3🛡️ CarefulCareful review
R4🔒 StrictHighest standard

Q3: How critical? (Conditional)

Only ask if: (D2 or D3) AND (R3 or R4)
CodeOptionDescription
C1🔧 NormalGeneral feature, can wait for fix
C2💎 CriticalCore dependency, outage if broken

Quick Lookup Table

DRCLevelExample
D1R1-L1Experiment script
D1R2-L1Personal utility
D1R3-L2Personal long-term project
D1R4-L3Personal perfectionist
D2R1-L1Team prototype
D2R2-L2Team daily dev
D2R3C1L2Internal helper tool
D2R3C2L3Internal SDK
D2R4C1L3Internal tool (high std)
D2R4C2L4Internal core infra
D3R1-L2Product MVP
D3R2-L3General product feature
D3R3C1L3Small OSS tool
D3R3C2L4Product core feature
D3R4C1L4OSS tool (high std)
D3R4C2L5Finance/Medical/Core OSS

For detailed explanations: See positioning.md

Fallback: If the user skips positioning or says "just review it," default to L3 (Team) and note in the report header: **Project Positioning:** L3 Team (default — user skipped calibration).

Level Definitions

LevelNameKey Question
L1🧪 LabDoes it run?
L2🛠️ ToolCan I understand it next month?
L3🤝 TeamCan teammates take over?
L4🚀 InfraWill others suffer if I break it?
L5🏛️ CriticalCan it pass audit?

Review Workflow

Follow this sequence for every review:

  1. Calibrate — Ask Q1/Q2/Q3 → determine strictness level (or apply L3 fallback)
  2. Scope — Confirm what to review: PR diff (changed files + immediate context), module, or specific files. If PR exceeds the level's size limit, flag it as an issue
  3. Language check — Identify paradigm; read language-adjustments.md if language is NOT Java/C#
  4. Review — Walk through the 15-Point Checklist against the code
  5. Classify — Assign severity to each finding (see Severity Classification below)
  6. Assess — Add Effort/Benefit to Critical and Important issues
  7. Report — Generate report using the template
  8. Verdict — Apply verdict criteria to reach conclusion
Review type adjustments: For bug fixes, emphasize correctness and regression tests. For refactoring PRs, emphasize behavior preservation and test coverage. For new features, emphasize design and architecture. For test code, relax DRY tolerance.
Priority order: security > correctness > design > style. Rules serve the code, not vice versa.

Strictness Matrix & Metric Thresholds

Quick reference:

  • Function length: L2(≤80) → L3(≤50) → L4(≤30) → L5(≤20)
  • Parameter count: L2(≤7) → L3(≤5) → L4(≤3) → L5(≤2)
  • Test coverage: L2(30%) → L3(60%) → L4(80%) → L5(95%)

For complete matrices: See positioning.md

⚠️ Measurement Rules (MUST follow)

  1. Count logic lines only — exclude docstrings, comments, blank lines
  2. Metrics are conversation starters, not hard gates
  3. Do NOT report as issues (function length):

- Single-responsibility functions that cannot be meaningfully decomposed - Pure data builders, large switch/match statements, configuration mappings - A clear 60-line function beats three confusing 20-line functions *(exemption rationale, not default tolerance)*

  1. Do NOT report as issues (parameter count): *(Pragmatic adjustment—original book has no explicit exemptions)*

- Functions where most parameters have default values (count required params only) - Internal/private classes not directly instantiated by users - Configuration functions (e.g., configure_logging(level="INFO",...)) - Factory/Builder patterns controlled by framework

  1. Do NOT report as issues (DRY/duplication):

- DRY tolerance = max allowed repetitions. Report when occurrences exceed this number: - L5: max 1 → report on 2nd occurrence - L4: max 2 → report on 3rd occurrence - L3: max 3 → report on 4th occurrence - L2: max 4 → report on 5th occurrence - L1: N/A (no limit) - Accidental duplication *(all levels)*: Similar code representing different business knowledge—do NOT report even if exceeds tolerance. Quick test: "If one changes, must the other ALWAYS change?" If no → accidental duplication → keep separate. - Same file *(L1-L3 only)*: Duplicates within same file are lower risk - See principles-spectrum.md for DRY vs WET guidance


Language-Aware Review

Before reviewing, identify the language paradigm:

ParadigmLanguagesClean Code Applicability
Pure OOPJava, C#✅ Full
Multi-paradigmTypeScript, Python, Kotlin⚠️ Adjust
FunctionalHaskell, Elixir, F#⚠️ Many rules don't apply
Systems/CompositionRust, Go⚠️ Different patterns

For language-specific adjustments: See language-adjustments.md


15-Point Review Checklist

1. Correctness & Functionality

  • Logic implements requirements correctly? (PP-75)
  • Boundary conditions and error handling complete? (CC-153, PP-36)
  • Security vulnerabilities? (PP-72, PP-73)

2. Readability & Maintainability

  • Names reveal intent? (CC-4, PP-74)
  • Functions small and do one thing? (CC-20, CC-21)
  • Comments explain "Why" not "What"? (CC-39, CC-43)

3. Design & Architecture

  • Follows SRP? (CA-8, CC-110)
  • Avoids duplication (DRY)? (PP-15, CC-37)
  • Dependency direction correct? (CA-12, CA-31)

4. Testing

  • New code has tests? (PP-91, CC-194)
  • Tests readable and independent? (CC-102, CC-106)

5. Advanced Checks (L3+)

  • Concurrency safe? (PP-57, CC-137)
  • Security validated? (PP-72, PP-73)
  • Resources released? (PP-40)
  • Algorithm complexity appropriate? (PP-63, PP-64)

Common Code Smells

SmellRuleQuick Check
Long functionCC-20Exceeds level threshold? (See Metric Thresholds + Measurement Rules)
Too many paramsCC-26, CC-147Exceeds level threshold? (See Metric Thresholds + Measurement Rules)
Magic numbersCC-175Unnamed constants?
Feature envyCC-164Using other class's data?
God classCC-109, CA-8Multiple responsibilities?
Train wreckCC-81, PP-46a.b().c().d()?

For full symptom lookup: See quick-lookup.md


Red Flags - Investigate Further

⚠️ Language-aware: Some red flags are paradigm-dependent. Always check language-adjustments.md first.

If you notice any of these, consult the reference files:

  • Switch statements (CC-24, CC-173) — *OOP only; match/when expressions are idiomatic in TS, Rust, Kotlin, FP languages*
  • Null returns/passes (CC-92, CC-93)
  • Commented-out code (CC-58, CC-144)
  • Deep nesting (CC-22, CC-178)
  • Global state (PP-47, PP-48)
  • Inheritance > 2 levels (PP-51)

DO NOT Review (Machine's Job)

These should be caught by Linter/Formatter:

  • Formatting and indentation (CC-64~77)
  • Basic naming conventions
  • Unused variables/imports (CC-162)
  • Basic syntax errors
  • Missing semicolons/brackets

Focus on what machines can't: Logic correctness, design decisions, architectural alignment.


Severity Classification

LevelCriteriaExamples
🔴 CriticalSecurity vulnerabilities, data loss/corruption risks, logic bugs affecting correctness, crashes on production pathsSQL injection, unvalidated auth, off-by-one on financial calculation
🟡 ImportantDesign principle violations, metric threshold breaches, maintainability risks, missing tests for critical pathsSRP violation, function with 10 params at L3, no test for core logic

Rules:

  • Security issues are always Critical regardless of project level
  • Severity is determined by the issue's *nature*, not by the effort to fix it
  • Items below Important threshold are not reported — if an issue isn't worth actioning, omit it entirely

Report Format

Before reporting: Apply Measurement Rules exemptions. Do NOT include exempt items (e.g., pure data builders exceeding line limits) in any issue category—omit them entirely.
Empty sections: If a severity tier has no issues, omit that section entirely from the report. Do not output a section header with "None" or "No issues found."
Allowed sections only: The report must contain exactly these sections: Critical Issues, Important Issues, Verdict. Do not add any other sections. Do not include praise, strengths, or positive observations anywhere in the report.
## 📋 Code Review Report

**Project Positioning:** [Level] (e.g., L3 Team)
**Review Scope:** [files/commits reviewed]

### 🔴 Critical Issues (Must Fix)
- **[file:line] Issue description**
  - Rule: XX-## (Rule Name)
  - Principle: Brief explanation of why this matters
  - Suggestion: How to fix it
  - Effort: [Low/Medium/High]
    - [reason derived from effort questions below]
  - Benefit: [Low/Medium/High]
    - [reason derived from benefit questions below]

### 🟡 Important Issues (Should Fix)
- **[file:line] Issue description**
  - Rule: XX-## (Rule Name)
  - Principle: Brief explanation of why this matters
  - Suggestion: How to fix it
  - Effort: [Low/Medium/High]
    - [reason derived from effort questions below]
  - Benefit: [Low/Medium/High]
    - [reason derived from benefit questions below]

---

- **[file:line] Issue description**
  - Rule: XX-## (Rule Name)
  - Principle: Brief explanation of why this matters
  - Suggestion: How to fix it
  - Effort: [Low/Medium/High]
    - [reason derived from effort questions below]
  - Benefit: [Low/Medium/High]
    - [reason derived from benefit questions below]

### 📝 Verdict
[✅ Ready to merge / ⚠️ Needs fixes / 🚫 Major rework needed]

Verdict Criteria

Apply the first matching condition from top to bottom.
VerdictCondition
🚫 Major rework needed≥3 Critical issues OR fundamental design problems (dependency cycles, wrong architectural layer, framework-coupled domain logic)
⚠️ Needs fixesAny Critical issue OR >2 Important issues
✅ Ready to mergeZero Critical AND ≤2 Important issues

Effort & Benefit (Critical/Important only)

Add Effort and Benefit lines to each Critical and Important issue to help teams prioritize fix order. Each rating must include 1-3 nested bullet reasons derived from the questions below.

  • Effort — how hard to fix

- Low: a few lines, < 30 min - Medium: moderate refactor, 30 min - 4 h - High: architectural change or wide-reaching modification, > 4 h

  • Benefit — value gained after fixing (trigger frequency × impact scope)

- High: hot path + severe consequence (data loss, security breach, outage) - Medium: common path + moderate impact, or edge case + severe consequence - Low: edge case + minor impact (UI glitch, degraded experience)

Before assigning ratings, reason through these questions:

For Effort:

  • How many files need changes? (1 file = likely Low, 3+ files = likely Medium+)
  • Does the fix cross module/layer boundaries? (yes = Medium+)
  • Does existing test coverage need updating? (significant test changes = add one level)

For Benefit:

  • Is this code on a hot path (called frequently)? (yes = High trigger frequency)
  • What's the worst-case consequence if this issue triggers? (data loss/security = High impact)
  • Can users work around it? (no workaround = higher impact)

If uncertain, default to the more extreme rating (Low or High), not Medium. Medium should be a deliberate choice, not a fallback.

Express your reasoning as nested bullets under each rating line. Simple issues need 1 bullet; complex issues need 2-3 bullets. Reason bullets must derive from the questions above -- do not use generic justifications.

Report Example

## 📋 Code Review Report

**Project Positioning:** L3 Team
**Review Scope:** src/services/user.ts, src/utils/helpers.ts

### 🔴 Critical Issues (Must Fix)
- **[user.ts:45] SQL query built with string concatenation**
  - Rule: PP-72 (Keep It Simple and Minimize Attack Surfaces)
  - Principle: String concatenation in SQL queries creates injection vulnerabilities
  - Suggestion: Use parameterized queries: `db.query('SELECT * FROM users WHERE id = ?', [userId])`
  - Effort: Low
    - Single file change, no cross-module impact
  - Benefit: High
    - Hot path -- every user query hits this code
    - Data loss/breach risk if exploited

### 🟡 Important Issues (Should Fix)
- **[helpers.ts:120] Function `processUserData` has 8 parameters**
  - Rule: CC-26 (Function Arguments) + CC-147 (Too Many Arguments)
  - Principle: Many parameters increase cognitive load and make testing difficult. L3 threshold is ≤5.
  - Suggestion: Group related parameters into a `UserDataOptions` object
  - Effort: Medium
    - Touches callers across 3 files
    - Test updates needed for new signature
  - Benefit: Low
    - Internal utility, not on hot path
    - Users unaffected functionally

---

- **[user.ts:200] Duplicate validation logic (3rd occurrence)**
  - Rule: PP-15 (DRY) + CC-37 (Don't Repeat Yourself)
  - Principle: L3 allows max 3 repetitions. This is the 3rd occurrence -- consider extracting.
  - Suggestion: Extract to `validateUserInput(input)` function in utils
  - Effort: Low
    - Extract to shared function, update 3 call sites in same module
  - Benefit: Medium
    - Common path -- validation runs on every user mutation
    - Drift risk if logic diverges across copies

### 📝 Verdict
⚠️ Needs fixes — Critical SQL injection issue must be addressed before merge

When to Load References

Reference FileLoad When
language-adjustments.mdLanguage is NOT Java/C# — always check for non-OOP paradigms
positioning.mdUser wants detailed level explanation or edge-case mapping
principles-spectrum.mdEncountering DRY/YAGNI/abstraction-timing edge cases
quick-lookup.mdSymptom spotted that isn't covered by the 15-point checklist
clean-code.mdNeed to cite or explain a CC-## rule in detail
clean-architecture.mdNeed to cite or explain a CA-## rule in detail
pragmatic-programmer.mdNeed to cite or explain a PP-## rule in detail
principles-glossary.mdNeed full definition of SOLID, LoD, CQS, or component principles

Do NOT load all references at once. Use the rule prefix (PP/CC/CA) to pick the right file.


Rule Reference Codes

PrefixSourceReference
PP-##The Pragmatic Programmerpragmatic-programmer.md
CC-##Clean Codeclean-code.md
CA-##Clean Architectureclean-architecture.md

Common Principles Quick Reference

AcronymMeaningRule
YAGNIYou Aren't Gonna Need ItPP-43
KISSKeep It SimpleCC-130, PP-72
DRYDon't Repeat YourselfPP-15, CC-37
SOLID5 Design PrinciplesCA-8~12
LoDLaw of DemeterPP-46, CC-80

Component Principles (REP, CCP, CRP, ADP, SDP, SAP): See principles-glossary.md

For DRY vs WET guidance: See principles-spectrum.md

适合场景

01

研究助手

02

事实核查

03

知识库问答

04

带来源的搜索总结

能力概览

能力 1

组合搜索和大模型调用

能力 2

支持多来源检索和总结

能力 3

强调引用来源和事实核查

能力 4

适合研究型 Agent 流程

平台分布

Codex

37.56%
按下载量换算61

Claude

29.5%
按下载量换算48

Cursor

20.95%
按下载量换算34

Gemini CLI

9.8%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills