💻

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

    本技能來自小蔥技能站7w4.net。

  • 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?
  • 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