Review Code
Review for actionable defects and material engineering risk. Default to
analysis-only.
Mutation Boundary
- Do not edit files, push commits, post comments, approve, merge, or update a PR
unless the user explicitly requests that action.
- A request to "review", "audit", "inspect", or "give feedback" is read-only.
- When fixes are requested, switch to
write-code after completing enough
analysis to define the change.
Choose The Review Mode
- For code, branches, diffs, or pull requests, use the code-review workflow
below.
- For implementation plans, architecture proposals, or technical designs, read
references/plan-review.md. Review whether the
proposal is ready to execute, not whether it matches a preferred template.
- When a request includes both, review the design assumptions first, then check
whether the implementation preserves them.
For a plan or design, follow the linked reference. The mutation boundary still
applies; the remaining sections below define the code-review workflow.
Gather The Right Evidence
- Read repository guidance and identify the exact diff or files in scope.
- Inspect nearby code, tests, callers, contracts, and configuration needed to
validate suspected findings.
- Use
prflow for direct Bitbucket PR metadata, diff context, comments, checks,
pipelines, and failed logs.
- Use
twg for linked Jira requirements, Confluence designs, historical
decisions, ownership, and cross-repository context.
- For Kotlin or Kotlin-script changes, apply
kotlin-code-reviewer as a
language-specific extension to this review.
Use live CLI help through the owning skill when command syntax is uncertain.
Remote reads are allowed when needed for the review. Remote mutations still
require an explicit user request.
Review Priorities
Review in this order:
- Correctness and behavioral regressions
- Security, authorization, privacy, and data integrity
- Concurrency, resource lifecycle, failure handling, and reliability
- Public contracts, compatibility, architecture, and cross-module impact
- Missing or misleading tests for changed behavior
- Performance issues supported by a realistic execution path
- Maintainability and style only when they create material risk
Check whether each issue is introduced by the reviewed change. Verify the
execution path and surrounding code before reporting it.
Finding Threshold
Report an issue when all of these are true:
- The changed code introduces or exposes it.
- It has a concrete impact.
- The evidence is visible in the diff or supporting code.
- A reasonable correction exists.
Avoid speculative edge cases, generic best practices, unrelated legacy issues,
and preferences already enforced by repository tooling. Match existing style
unless that style causes a material defect.
Keep changes surgical when suggesting corrections. Do not turn a local defect
into an unrelated redesign. Prefer existing utilities and dependencies over new
abstractions.
Feedback Format
Lead with findings ordered by severity:
- Blocker: unsafe to merge or deploy
- High: likely correctness, security, data, or reliability failure
- Medium: real defect with narrower impact or conditions
- Low: material maintainability or test weakness
Each finding must include:
- severity and a precise title
- file and line reference
- concrete impact and triggering conditions
- evidence or reasoning that establishes the issue
- the smallest credible correction
Use code snippets only when they make the correction clearer. After findings,
list open questions or assumptions, then give a short summary. When no findings
meet the threshold, say so clearly and note any test gaps or residual risk.
1---2name: review-code3description: Use for code, branch, diff, and pull-request reviews in any language, and for technical-plan or design reviews. Performs analysis-only review by default, prioritizes correctness and production risk, adds Kotlin-specific analysis through kotlin-code-reviewer, and uses PRFlow or TWG when remote PR state or company context is needed.4---56# Review Code78Review for actionable defects and material engineering risk. Default to9analysis-only.1011## Mutation Boundary1213- Do not edit files, push commits, post comments, approve, merge, or update a PR14 unless the user explicitly requests that action.15- A request to "review", "audit", "inspect", or "give feedback" is read-only.16- When fixes are requested, switch to `write-code` after completing enough17 analysis to define the change.1819## Choose The Review Mode2021- For code, branches, diffs, or pull requests, use the code-review workflow22 below.23- For implementation plans, architecture proposals, or technical designs, read24 [references/plan-review.md](references/plan-review.md). Review whether the25 proposal is ready to execute, not whether it matches a preferred template.26- When a request includes both, review the design assumptions first, then check27 whether the implementation preserves them.2829For a plan or design, follow the linked reference. The mutation boundary still30applies; the remaining sections below define the code-review workflow.3132## Gather The Right Evidence33341. Read repository guidance and identify the exact diff or files in scope.352. Inspect nearby code, tests, callers, contracts, and configuration needed to36 validate suspected findings.373. Use `prflow` for direct Bitbucket PR metadata, diff context, comments, checks,38 pipelines, and failed logs.394. Use `twg` for linked Jira requirements, Confluence designs, historical40 decisions, ownership, and cross-repository context.415. For Kotlin or Kotlin-script changes, apply `kotlin-code-reviewer` as a42 language-specific extension to this review.4344Use live CLI help through the owning skill when command syntax is uncertain.45Remote reads are allowed when needed for the review. Remote mutations still46require an explicit user request.4748## Review Priorities4950Review in this order:51521. Correctness and behavioral regressions532. Security, authorization, privacy, and data integrity543. Concurrency, resource lifecycle, failure handling, and reliability554. Public contracts, compatibility, architecture, and cross-module impact565. Missing or misleading tests for changed behavior576. Performance issues supported by a realistic execution path587. Maintainability and style only when they create material risk5960Check whether each issue is introduced by the reviewed change. Verify the61execution path and surrounding code before reporting it.6263## Finding Threshold6465Report an issue when all of these are true:6667- The changed code introduces or exposes it.68- It has a concrete impact.69- The evidence is visible in the diff or supporting code.70- A reasonable correction exists.7172Avoid speculative edge cases, generic best practices, unrelated legacy issues,73and preferences already enforced by repository tooling. Match existing style74unless that style causes a material defect.7576Keep changes surgical when suggesting corrections. Do not turn a local defect77into an unrelated redesign. Prefer existing utilities and dependencies over new78abstractions.7980## Feedback Format8182Lead with findings ordered by severity:8384- **Blocker**: unsafe to merge or deploy85- **High**: likely correctness, security, data, or reliability failure86- **Medium**: real defect with narrower impact or conditions87- **Low**: material maintainability or test weakness8889Each finding must include:9091- severity and a precise title92- file and line reference93- concrete impact and triggering conditions94- evidence or reasoning that establishes the issue95- the smallest credible correction9697Use code snippets only when they make the correction clearer. After findings,98list open questions or assumptions, then give a short summary. When no findings99meet the threshold, say so clearly and note any test gaps or residual risk.