💻

Code评论AndQuality

👤 ҉Breeze🌔 📦 v1.0.0 ⭐ 3.9 ⬇️ 140 下载
💻 开发编程 免费

📖 技能介绍


name: Code评论AndQuality slug: code-review-and-quality version: 1.0.0 displayName: Code评论AndQuality description: > Code评论AndQuality专用技能,帮助AI Agent高效完成相关任务。 summary: "Code评论AndQuality专用技能,帮助AI Agent高效完成相关任务。" license: MIT category: 开发者工具 framework: - Claude Code - Codex - Hermes Agent - OpenClaw - QClaw - WorkBuddy platform: multi-platform homepage: "https://github.com/1991513ccie-png" repository: "https://github.com/1991513ccie-png"


Code Review and Quality

Overview

Multi-dimensional code review with quality gates. Every change gets reviewed before merge — no exceptions. Review covers five axes: correctness, readability, architecture, security, and performance.

The approval standard: Approve a change when it definitely improves overall code health, even if it isn't perfect. Perfect code doesn't exist — the goal is continuous improvement. Don't block a change because it isn't exactly how you would have written it. If it improves the codebase and follows the project's conventions, approve it.

When to Use

  • Before merging any PR or change
  • After completing a feature implementation
  • When another agent or model produced code you need to evaluate
  • When refactoring existing code
  • After any bug fix (review both the fix and the regression test)

The Five-Axis Review

Every review evaluates code across these dimensions:

1. Correctness

Does the code do what it claims to do?

  • Does it match the spec or task requirements?
  • Are edge cases handled (null, empty, boundary values)?
  • Are error paths handled (not just the happy path)?
  • Does it pass all tests? Are the tests actually testing the right things?
  • Are there off-by-one errors, race conditions, or state inconsistencies?

2. Readability & Simplicity

Can another engineer (or agent) understand this code without the author explaining it?

  • Are names descriptive and consistent with project conventions? (No temp, data, result without context)
  • Is the control flow straightforward (avoid nested ternaries, deep callbacks)?
  • Is the code organized logically (related code grouped, clear module boundaries)?
  • Are there any "clever" tricks that should be simplified?

    发现更多技能插件,请访问7w4.net。

  • Could this be done in fewer lines? (1000 lines where 100 suffice is a failure)
  • Are abstractions earning their complexity? (Don't generalize until the third use case)
  • Would comments help clarify non-obvious intent? (But don't comment obvious code.)
  • Are there dead code artifacts: no-op variables (_unused), backwards-compat shims, or // removed comments?
  • Is a new conditional bolted onto an unrelated flow? That's a design smell, not a nit — push the logic into its own helper, state, or policy instead of tangling an existing path.
  • Do repeated conditionals on the same shape appear? They signal a missing model or dispatcher. A "temporary" branch is usually permanent debt.

3. Architecture

Does the change fit the syst

(为兼容发布已截断)

🤖 AI 评测

这是一个用于代码审查的技能,设计思路清晰,审查标准全面,能覆盖代码质量的主要方面。它避免了过于严苛的评审标准,更加务实。不足之处是文档内容不够完整,缺少使用示例和具体操作指引,实用性有待加强。整体质量中等偏上,框架设计不错,但还需要更多实际内容来支撑。

📊 多维度评分

适应性3.9
规范性3.8
有效性4.2
可靠性3.4
可信度4.4

📁 包含文件 (1 个)

📄 SKILL.md 3 KB