skills/code-review/SKILL.md
Standalone code review methodology for structured, severity-classified code assessment
npx skillsauth add josstei/maestro-gemini code-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Activate this skill when performing standalone code reviews via the /maestro:review command or during orchestration quality gates (post-phase checks and final completion gate). This skill provides the methodology for scoping, executing, and reporting code reviews.
Determine review scope using the following priority order:
glob tool to resolve them to concrete file paths before delegating to the code_reviewer agentgit diff --staged produces output, review staged changesgit diff HEAD~1Always confirm the detected scope with the user before proceeding.
If scope is provided as file paths and a git diff is empty for some paths (for example, new unstaged files), include those files' current contents directly in review context so they are still reviewed.
code_reviewer agent with:
When delegating to the code_reviewer agent, include:
Issues that could cause security vulnerabilities, data loss, or system crashes:
Issues that cause bugs, design flaws, or significant maintainability problems:
Issues related to style, naming, or minor convention violations:
Optional improvements that enhance readability or maintainability:
Present findings in a structured table followed by a summary:
## Code Review Results
**Scope**: [description of what was reviewed]
**Files Reviewed**: [count]
**Total Findings**: [count by severity]
### Findings
| # | Severity | File | Line | Description | Suggested Fix |
|---|----------|------|------|-------------|---------------|
| 1 | Critical | path/to/file.ts | 42 | [description] | [fix] |
| 2 | Major | path/to/file.ts | 87 | [description] | [fix] |
### Summary
[1-2 paragraph summary of overall code quality, patterns observed, and priority actions]
Every finding must:
Do NOT report:
Calibrate the depth and focus of review based on the type of change being reviewed:
When reviewing a diff that contains multiple change types (new files + modifications + deletions), apply the appropriate calibration to each file independently. Do not apply "new file" depth to a file that only had a minor modification.
When reviewing multiple files, identify and consolidate findings that share the same root cause.
### Systemic Finding: [Pattern Violation Name]
- **Severity**: [Critical | Major | Minor | Suggestion]
- **Description**: [What the pattern violation is and why it matters]
- **Affected Locations**:
- `path/to/file1.ext:line` — [brief context]
- `path/to/file2.ext:line` — [brief context]
- `path/to/file3.ext:line` — [brief context]
- **Remediation**: [Single recommendation that addresses all instances]
This produces cleaner, more actionable review output by surfacing systemic issues as patterns rather than repeating the same finding across multiple files.
tools
Manages orchestration session state, tracking, and resumption
data-ai
Generates detailed implementation plans from finalized designs
tools
Phase execution methodology for orchestration workflows with error handling and completion protocols
documentation
Guides structured design conversations for complex engineering tasks