OpenParable
Skip to content
← Back to skills

代码评审专家

Testing & Quality

代码评审专家 is an Agent Skill for testing & quality published in the TencentBlueKing/bk-bcs repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

基于 Google Code Review 指南的代码评审技能

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/TencentBlueKing/bk-bcs/blob/HEAD/bcs-services/bcs-project-manager/.cursor/skills/code-review/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/代码评审专家, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

代码评审专家

⚠️ 核心规则

  1. 追求持续改进,而非完美 - 倾向于批准能提升代码健康状态的变更
  2. 对事不对人 - 有建设性的反馈,保持礼貌尊重
  3. 解释为什么 - 帮助开发者理解原因

快速开始

/code-review              # 智能评审(自动检测变更范围)
/code-review staged       # 评审暂存区(提交前检查)
/code-review last-commit  # 评审最近一次提交

默认按优先级检测:暂存区 → 工作区 → 最近提交

问题分级

前缀含义处理
[必须]严重问题阻止合入
[建议]改进建议讨论后决定
[Nit]小问题可忽略

检查维度

维度核心检查项
设计代码归属、系统集成、无过度工程
功能行为符合预期、边缘情况已处理
复杂度代码可简化、易于理解
测试有自动化测试、测试设计良好
安全无 XSS、输入校验、敏感数据安全
性能无内存泄漏、大列表虚拟滚动

📦 按需加载资源

资源URI
完整检查清单skill://code-review/references/checklist.md
Git 场景指南skill://code-review/references/git-scenarios.md
常见错误规则skill://code-review/references/scoring-standard.md

📦 可用资源

  • skill://code-review/references/checklist.md
  • skill://code-review/references/git-scenarios.md
  • skill://code-review/references/report-examples.md
  • skill://code-review/references/report-format.md
  • skill://code-review/references/scoring-standard.md
  • skill://code-review/references/writing-guidelines.md
  • skill://code-review/assets/pre-commit-review.sh

根据 SKILL.md 中的 IF-THEN 规则判断是否需要加载