원클릭으로
code-review
Review code changes for bugs, pattern violations, security, and quality. Use when reviewing PRs, code changes, or before commits.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Review code changes for bugs, pattern violations, security, and quality. Use when reviewing PRs, code changes, or before commits.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Validate and lint code after changes. Use after editing Rust/shell script files, when user mentions compilation errors, linting, clippy warnings, shellcheck issues, or before commits/PRs. Ensures all code passes checks and has zero warnings.
Format Rust and shell script code automatically. Use immediately after editing .rs/.sh files or the install script, when user mentions formatting, code style, or before commits/PRs. Ensures consistent code style following project conventions.
Load relevant coding patterns based on user query or work context. Use when asking about coding patterns, standards, or before implementing code.
Validate pattern doc format against the specification. Use when reviewing PRs, after editing pattern docs, or before commits
Run targeted tests to validate changes. Use filters to target specific tests when needed.
Generate and validate conventional commit messages with Rust workspace scope rules. Use when user says "commit", "git commit", "/commit", asks for help with commit messages, or requests to amend a commit. Enforces crate-based scoping and validates message accuracy against changesets.
| name | code-review |
| description | Review code changes for bugs, pattern violations, security, and quality. Use when reviewing PRs, code changes, or before commits. |
This skill provides comprehensive code review guidance for evaluating changes to the codebase.
Use this skill when you need to:
Please review this code change and provide feedback on:
Look for common programming errors such as:
min vs max, first vs last, flipped orderingIdentify panic branches that cannot be locally proven to be unreachable:
unwrap or expect callsNote: This overlaps with the error handling patterns documented in docs/code/errors-handling.md. Verify compliance with the project's error handling standards.
Find dead code that is not caught by warnings:
pubtodo!() or dbg!() macros left in production codeCheck for performance issues:
Look for inconsistencies between comments and code:
Verify backwards compatibility is maintained:
Deserialize structs that break existing dataIF NOT EXISTSEnsure documentation is up-to-date:
Review for security vulnerabilities:
Evaluate test coverage and quality:
Review the changeset against coding pattern groups. Follow these three steps in order.
Run the Glob tool with pattern docs/code/*.md. For each file, extract the first kebab-case segment of the filename (everything before the first -, or the whole name if there is no -). Group files that share the same first segment. Files whose first segment is unique form a single-file group.
Examples of current groups:
errors — errors-handling, errors-reportingrust — rust-modules, rust-modules-members, rust-types, rust-documentation, rust-service, rust-crate, rust-workspacetest — test-strategy, test-files, test-functionslogging — logging, logging-errorsapps — apps-cliservices — servicesextractors — extractorsFor every applicable group from Step 1, spawn a general-purpose Task agent. Send all Task tool calls in a single message so they run concurrently.
Each agent's prompt MUST include:
docs/code/errors-handling.md, docs/code/errors-reporting.md).git diff main...HEAD (or the appropriate base) via the Bash tool.No violations found for group: <group>.Example prompt for the errors group:
You are a code-review agent. Your job is to check a code diff for violations of the coding patterns in your assigned group.
Your group: errors
Step 1: Read these pattern docs using the Read tool:
docs/code/errors-handling.mddocs/code/errors-reporting.mdStep 2: Get the diff by running:
git diff main...HEADStep 3: Review every changed line in the diff against every rule in the pattern docs you read. Only flag actual violations — do not flag code that is compliant.
Step 4: Return your findings as a list. Each item must include:
- File path and line number(s)
- The specific rule violated (quote or paraphrase from the pattern doc)
- Brief explanation of why it is a violation
If no violations are found, return:
No violations found for group: errors
After all Task agents complete, compile their results into the review output. Deduplicate any overlapping findings. Omit groups that reported no violations.
When reviewing PRs, validate documentation alignment:
docs/features/*.md): Invoke /feature-fmt-check to validate format compliancedocs/code/*.md): Invoke /code-pattern-fmt-check to validate format compliance/feature-validate to verify feature documentation aligns with actual code implementationProcess:
docs/features/ or docs/code//feature-fmt-check skill for format validation/code-pattern-fmt-check skill for format validation/feature-validate to verify alignmentPattern violations should be treated seriously as they:
Always run the pattern violation review (section 10) as part of every code review.
Review items in this priority order:
After completing the code review:
docs/code/ when flagging violations/code-format, /code-check, and /code-test skills to validate fixes