跳到正文
cccskills
免费在 GitHub 公开

review-code

Review behavior, risk, performance, and test coverage before style nits.

中文简介正在准备中。当前显示原文说明。

PacificStudio/openase星标 269(GitHub 269 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md2.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Review Code

Overview

Conduct a thorough code review for quality, security, performance, and maintainability. Focus on the real risks first, then provide concrete, severity-rated feedback with file and line references where possible.

When To Use

  • Before merging a pull request.
  • After implementing a feature or refactor.
  • When the user asks for a review of changed files or a branch.
  • When the code looks correct at first glance but may still hide regressions or design debt.

Review Workflow

  1. Identify the review scope.

    • Review the current diff, named files, or the whole change set.
    • Prefer reviewing the actual changed surface before expanding further.
  2. Check behavioral correctness first.

    • Regressions against existing behavior.
    • Missing edge-case handling.
    • Broken invariants or data consistency risks.
  3. Review the main quality categories.

    • Security risks.
    • Code quality and complexity.
    • Performance concerns.
    • Error handling and observability.
    • Maintainability, coupling, and testability.
  4. Evaluate the test story.

    • Are the important paths covered?
    • Are the tests proving behavior rather than implementation trivia?
    • Is there an obvious missing regression test for the change?
  5. Rate findings by severity.

    • CRITICAL: must fix before merge; security or correctness issue with serious impact.
    • HIGH: should fix before merge; likely bug, major regression risk, or serious design flaw.
    • MEDIUM: worthwhile fix; non-blocking but meaningful quality issue.
    • LOW: suggestion, cleanup, or style improvement.
  6. Report findings in priority order.

    • File and line reference.
    • What is wrong.
    • Why it matters.
    • Concrete fix guidance.

Review Categories

  • Security: secrets, unsafe input handling, authz gaps, injection, XSS, CSRF.
  • Code quality: complexity, duplication, large functions, fragile branching.
  • Performance: avoidable repeated work, inefficient algorithms, N+1 patterns, unnecessary re-renders.
  • Maintainability: unclear naming, tight coupling, hidden assumptions, hard-to-test logic.
  • Reliability: missing error handling, weak retries, silent failures, incomplete logging.

Operating Rules

  • Lead with findings, not praise.
  • Prioritize behavior and risk before style nits.
  • Prefer evidence and concrete examples over general taste.
  • If there are no findings, say so explicitly and still mention residual risks or test gaps.
  • Keep recommendations actionable enough that another engineer can implement them directly.

Default Deliverable Shape

Return these sections:

  1. Findings - ordered by severity, each with file and line references.
  2. Open Questions / Assumptions - only if they affect confidence.
  3. Residual Risks - what was not fully proven by the review.
  4. Short Summary - brief overall assessment after the findings.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Diagnose and strengthen a repository's harness layer: AGENTS.md rules, knowledge layout, architecture boundaries, lint and type gates, API and generated-client contracts, test scaffolding, structured logging, and technical-debt tracking. Use when Codex needs to audit drift-prone semantics that are repeated across code, docs, schemas, generated artifacts, frontend/backend boundaries, or CI, then design or implement guardrails with progressive disclosure and zero-tolerance contract checks.

中文简介正在准备中。当前显示原文说明。

PacificStudio/openase2692026年8月9日 更新

commit

免费

Create a well-formed git commit from current changes using session history for rationale and summary; use when asked to commit, prepare a commit message, or finalize staged work.

中文简介正在准备中。当前显示原文说明。

PacificStudio/openase2692026年8月9日 更新

commit

免费

Write concise Conventional Commit messages that match the actual scope of the change.

中文简介正在准备中。当前显示原文说明。

PacificStudio/openase2692026年8月9日 更新

create-pr

免费

Prepare a crisp pull request summary with scope, validation, and rollout notes.

中文简介正在准备中。当前显示原文说明。

PacificStudio/openase2692026年8月9日 更新

Clarify ambiguous requests with a focused, Socratic interview before planning or implementation.

中文简介正在准备中。当前显示原文说明。

PacificStudio/openase2692026年8月9日 更新

Create or update a branch-scoped Coolify review environment with one command, and delete it with one command. Use when a ticket must deploy a preview before human review, while keeping the workflow simple and fast.

中文简介正在准备中。当前显示原文说明。

PacificStudio/openase2692026年8月9日 更新

查看 PacificStudio 的全部技能

报告此技能的问题