本文へ移動
cccskills
無料GitHub で公開

cc-review

Run a structured code review — produces a Review Report with CRITICAL, WARNING, and SUGGESTION findings; CRITICAL findings block merge.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md5.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Code Review Workflow

Review target: $ARGUMENTS

Specify what to review. Accepted formats:

  • A branch name: feature/my-branch
  • A file or set of files: src/api/UserController.kt
  • A pull request reference: PR #42
  • Empty — defaults to the current working diff (git diff)

Web interface scope

When the task concerns web layout, component states, feedback, motion, or a requested UI audit, apply skill web-design-engineering from the installed skill library. Use it during intake/discovery, design, test/implement, and review as applicable; keep this workflow’s gates and TDD order. Framework presence alone does not activate it; backend-only and native mobile work are excluded. Record required visual checks as pending when unavailable. Keep findings in the existing Review Report: contract failures in Spec Axis, technical issues in existing subchecks, and aesthetic preferences as suggestions; do not add an axis.

Android phone interface scope

When the task concerns concrete Jetpack Compose phone layout, component states, interaction, accessibility, visual behavior, or a requested UI audit, apply skill android-ui-design. Use it during design, test/implementation, and review as applicable while keeping this workflow's gates and TDD order. Kotlin, Compose, framework, or dependency presence alone does not activate it; non-UI Android work stays with the general android skill. Audit-only requests remain read-only, and unavailable visual or emulator checks remain pending rather than claimed complete.

Step 1 — Diff collection

Before invoking reviewer, collect the diff for the specified target.

If $ARGUMENTS is empty or not provided:

  • Use git diff HEAD as the review target

If $ARGUMENTS is a branch name:

  • Use git diff main...$ARGUMENTS (or develop if main is not the base)

If $ARGUMENTS is a PR reference:

  • Retrieve the PR diff and the PR description for context

If $ARGUMENTS is a file path:

  • Use git diff HEAD -- $ARGUMENTS

Show the diff summary (files changed, lines added/removed) before invoking reviewer.


Step 2 — Security and code review

Security review (security-reviewer)

Invoke security-reviewer before reviewer when the change touches:

  • Authentication or authorization logic
  • Payment or financial processing
  • Credentials, tokens, secrets, or API keys
  • SQL injection, XSS, or other injection vectors
  • Supply-chain dependencies (new packages, lockfile changes)
  • OWASP Top 10 categories

security-reviewer performs deep security analysis and can apply a security veto that overrides majority consensus:

  • When securityVeto: true and verdict is REJECTED, the veto forces the final status to REJECTED regardless of other reviewers' opinions
  • The veto agent ID is recorded in vetoByAgentId for traceability

If security-reviewer applies a veto, the review is BLOCKED — all CRITICAL findings must be resolved before proceeding.

Code review (reviewer)

Invoke reviewer with:

  • The full diff
  • The Task Card or PR description (if available)
  • The target specification from $ARGUMENTS
  • The security-reviewer report (if one was generated)

reviewer must evaluate the diff against the following checklist:

Correctness

  • Does the implementation match the stated intent?
  • Are there logic errors, off-by-one errors, or unhandled edge cases?

Architecture alignment

  • Does the change follow existing module boundaries?
  • Does it introduce unplanned coupling or layering violations?

Security

  • Are inputs validated before use?
  • Is there any credential, token, or secret in the diff?
  • Are there SQL injection, XSS, or injection risks?

Performance

  • Does the change introduce N+1 queries, blocking I/O, or O(n^2) loops?

Test coverage

  • Do tests exist for the new or changed behavior?
  • Are assertions meaningful (not just checking that no exception is thrown)?

Documentation

  • Are public interfaces documented?
  • Is CHANGELOG updated if behavior changed?

Step 3 — Review Report

reviewer produces a structured Review Report with findings in three categories:

## Review Report

### CRITICAL

[Findings that must be fixed before merge. Each finding includes:

- Location (file:line)
- Description of the problem
- Suggested resolution]

### WARNING

[Findings that should be resolved before merge but are not blockers in
exceptional cases with human approval. Same format as CRITICAL.]

### SUGGESTION

[Optional improvements — style, readability, future-proofing. These do not block
merge.]

### Summary

- Files reviewed: N
- Total findings: N (X critical, Y warnings, Z suggestions)
- Merge recommendation: APPROVED | BLOCKED

Step 4 — Merge decision

If any CRITICAL findings exist:

  • The Review Report status is BLOCKED
  • Report all CRITICAL findings to the human
  • Do not proceed until each CRITICAL finding is resolved
  • After resolution, invoke /cc:review again on the same target

If no CRITICAL findings exist:

  • The Review Report status is APPROVED
  • Report any WARNINGs and SUGGESTIONs for human awareness
  • The human makes the final merge decision

Completion

Deliver the complete Review Report. Never summarize or omit findings. Every finding must include a location and an actionable description.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use when adding monitoring, metrics, logging, or tracing to Spring AI or LLM integration code. Covers token tracking, latency measurement, cost estimation, and prompt/response logging. Use when user mentions AI monitoring, token costs, or LLM observability.

日本語の概要は準備中です。原文の説明を表示しています。

lgzarturo/springboot-course32026年10月12日 更新

android

無料

Provides expert knowledge for building modern native Android apps using Kotlin, Jetpack Compose, Material Design 3, MVI architecture, Hilt dependency injection, and Media3/ExoPlayer.

日本語の概要は準備中です。原文の説明を表示しています。

lgzarturo/springboot-course32026年10月12日 更新

Design, implement, review, and audit Android Jetpack Compose UI/UX for phone interfaces. Use when a request concerns concrete Compose layout, components, interaction, accessibility, or visual behavior. Do not activate for framework or dependency presence alone; non-UI Android work is excluded.

日本語の概要は準備中です。原文の説明を表示しています。

lgzarturo/springboot-course32026年10月12日 更新

Provides expert knowledge for designing, implementing, and managing REST API versioning strategies with deprecation workflows.

日本語の概要は準備中です。原文の説明を表示しています。

lgzarturo/springboot-course32026年10月12日 更新

astro

無料

Provides expert knowledge for building Astro 5+ sites with Islands Architecture, Content Collections, TypeScript, and performance-first rendering strategies.

日本語の概要は準備中です。原文の説明を表示しています。

lgzarturo/springboot-course32026年10月12日 更新

Audits token storage mechanisms to prevent XSS-based JWT theft.

日本語の概要は準備中です。原文の説明を表示しています。

lgzarturo/springboot-course32026年10月12日 更新

lgzarturo のスキルをすべて見る

このスキルの問題を報告する