From nx
Use when code changes are ready for quality, security, or best practices review, before committing or creating a pull request
npx claudepluginhub hellblazer/nexus --plugin nxThis skill uses the workspace's default tool permissions.
Delegates to the **code-review-expert** agent (model: sonnet).
Dispatches code-reviewer subagent to review git diffs after tasks or features; automates review-fix loop with retries until zero issues.
Conducts systematic code reviews of recent git commits against project standards, generating structured feedback with blocking/non-blocking issues and checklists.
Orchestrates cross-agent code review: Claude implements plans/code, Codex CLI reviews via bash scripts. Activates on 'codex review' or Russian triggers.
Share bugs, ideas, or general feedback.
Delegates to the code-review-expert agent (model: sonnet).
digraph review_flow {
"Code changes ready?" [shape=diamond];
"Run tests first" [shape=box];
"Invoke code-review-expert" [shape=box];
"Critical findings?" [shape=diamond];
"Fix and re-review" [shape=box];
"Invoke test-validator" [shape=doublecircle];
"Code changes ready?" -> "Run tests first" [label="yes"];
"Run tests first" -> "Invoke code-review-expert";
"Invoke code-review-expert" -> "Critical findings?";
"Critical findings?" -> "Fix and re-review" [label="yes"];
"Critical findings?" -> "Invoke test-validator" [label="no"];
"Fix and re-review" -> "Invoke code-review-expert";
}
Use the Agent tool to invoke code-review-expert:
## Relay: code-review-expert
**Task**: [what needs to be done]
**Bead**: [ID] or 'none'
### Input Artifacts
- Files: [relevant files]
### Deliverable
Structured code review with severity-rated findings
### Quality Criteria
- [ ] All changed files analyzed
- [ ] Security vulnerabilities flagged
- [ ] Specific remediation guidance provided
For full relay structure and optional fields, see RELAY_TEMPLATE.md.
The code-review-expert agent uses hypothesis-driven review:
REQUIRED BACKGROUND: Use /nx:receiving-review when acting on review output.
/beads:create "..." -t bug) for critical findings that require follow-up workSession Scratch (T1): Agent uses scratch tool for ephemeral working notes during the session. Flagged items auto-promote to T2 at session end.
On successful review completion, write a T1 scratch marker so the PreToolUse verification hook can confirm review happened this session:
nx scratch put "review-completed bead={bead-id} at={ISO-timestamp}" --tags "review,{bead-id}"
Replace {bead-id} with the bead ID from the relay (e.g., nexus-4yit). Replace {ISO-timestamp} with the current UTC time in ISO 8601 format (e.g., 2026-04-01T16:00:00Z).
No bead context: If invoked without a bead ID (ad-hoc review), write the marker with bead=none:
nx scratch put "review-completed bead=none at={ISO-timestamp}" --tags "review"
The --tags flag format is a comma-separated string: --tags "review,{bead-id}" (not --tags review --tags {bead-id}).