code-review
Review a merge request for security, performance, architecture, style, and improvements
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Review a merge request for security, performance, architecture, style, and improvements
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Diagnose and fix a failing SonarQube quality gate on the current branch's merge request — resolves the project + PR, reads the failing conditions, then fixes new violations and coverage gaps. Use when the user says "fix the sonarqube gate", "the sonar quality gate is failing", or after a pipeline reports a red SonarQube check.
Generate conventional commit with staged changes
Research a task and write a phased plan to .plan/<slug>.md without implementing it. Use when the user wants to plan a feature or change before building, asks to "make a plan", or when a task is large enough to design before touching code. Replaces built-in plan mode.
Explore several design solutions for a task and compare their trade-offs without implementing anything. Use when the user wants to weigh approaches before committing, asks to "explore options", "compare designs", or "what are my options" for a change.
Implement a piece of work based on a spec or set of tickets.
Create unpublished inline DRAFT review comments on a GitLab merge request diff via the GitLab API. Use when a code review has produced findings that should be attached to exact diff lines as drafts (not published) so the human can review and submit them in one batch. Carries a ready-to-post dataset for Phoenix MR !145 (View360 view-based rework).
| name | code-review |
| allowed-tools | Bash(git:*), Bash(gh:*), Bash(glab:*) |
| description | Review a merge request for security, performance, architecture, style, and improvements |
git rev-parse --abbrev-ref HEADgit diff --stat origin/main...HEAD 2>/dev/null || git diff --stat main...HEAD 2>/dev/null || echo "no diff available - provide branch or use gh/glab"git diff --name-only origin/main...HEAD 2>/dev/null || git diff --name-only main...HEAD 2>/dev/null || echo "no diff available"git log --oneline origin/main...HEAD 2>/dev/null || git log --oneline main...HEAD 2>/dev/null || echo "no commits diff available"Perform a thorough code review of the merge request changes. If the context above shows "no diff available", ask the user which branch or MR to review, or use gh pr diff / glab mr diff to get the changes.
Review process:
Check every changed line at trust boundaries:
exec, spawn, ProcessBuilder, shell strings) with user-supplied inputeval, dynamic imports from user input)innerHTML, dangerouslySetInnerHTML, v-html, document.write with unsanitized datajavascript: / data: URLs from user input in href/srcHttpOnly, Secure, SameSite)eval-based parsing)useMemo/computed/OnPush — per the project's framework)Judge against the project's established patterns, discovered in step 2:
fetch callsConformance with this project's standards (lint config, formatter, neighbouring code):
any/unchecked casts where the project is strictly typed; null contracts consistent with the codebase<button>/<a>; images have alt text; form inputs have labels; keyboard focus not broken — accessibility basics are style-level, missing them on new UI is a findingNice-to-have, non-blocking:
console.log, commented-out code)Produce the review as a structured report using this format:
## MR Review: <short summary of what the MR does>
### Overview
<1-3 sentences describing the MR's purpose and scope>
### P1 — Security
<findings or "No issues found.">
### P2 — Performance
<findings or "No issues found.">
### P3 — Architecture & Correctness
<findings or "No issues found.">
### P4 — Code Style
<findings or "No issues found.">
### P5 — Minor Improvements
<findings or "No suggestions.">
### Verdict
<One of: APPROVE, APPROVE WITH COMMENTS, REQUEST CHANGES>
<1-2 sentence rationale>
For each finding, use this format:
- **[severity]** `file/path.ext:line` — description of the issue
> suggestion or fix
Where severity is: blocker, critical, major, minor, info
Severity mapping:
blocker or criticalcritical or majormajor or minorminorinfoVerdict rules:
blocker or critical → REQUEST CHANGESmajor or below → APPROVE WITH COMMENTSminor / info → APPROVE