/reviewing-code
Reviewing code by dispatching the default reviewer subagents in parallel (plus conditional specialists for lib-observability, lib-systemplane, or lib-streaming when the diff triggers them), then aggregating findings by severity into a report. Use as Gate 8 of
$ npx -y skills add LerianStudio/ring --skill reviewing-code --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/reviewing-code
Context preview
The summary Claude sees to decide when to auto-load this skill.
Reviewing code by dispatching the default reviewer subagents in parallel (plus conditional specialists for lib-observability, lib-systemplane, or lib-streaming when the diff triggers them), then aggregating findings by severity into a report. Use as Gate 8 of
SKILL.md
reviewing-code.SKILL.mdname: ring:reviewing-code
description: "Reviewing code by dispatching the default reviewer subagents in parallel (plus conditional specialists for lib-observability, lib-systemplane, or lib-streaming when the diff triggers them), then aggregating findings by severity into a report. Use as Gate 8 of ring:running-dev-cycle at epic cadence over the cumulative diff, or before merging. Report-only. Skip for a single-command Go pre-merge verdict (use ring:verifying-code)."
Code Review (Gate 8)
When to use
- Gate 8 of development cycle
- After completing major feature implementation
- Before merge to main branch
- After completing complex bug work
Skip when
- Task is purely conversational or informational with no code changes
- Changes are limited to documentation or comments with zero logic modifications
- Code has not been modified since the last completed review cycle
Sequence
**Runs after:** ring:implementing-tasks **Runs before:** ring:validating-acceptance-criteria
Related
**Complementary:** ring:running-dev-cycle, ring:implementing-tasks
Dispatch the 9 default reviewer subagents in **parallel**, plus any triggered conditional specialists. Dispatch count is dynamic: 9 + triggered specialists, max 12. Do not say or imply all 12 always dispatch.
**Announce at start:** "Using ring:reviewing-code to dispatch 9 default reviewers plus triggered conditional specialists."
**Report-only boundary:** This skill does not remediate findings, dispatch implementation work, write comments into source files, generate external artifacts, invoke secondary review tools, or re-run reviewers automatically. It only dispatches the selected reviewers once and reports their findings in the current session.
Default Reviewers (Hard Gate)
| # | Agent | Focus | |---|-------|-------| | 1 | `ring:code-reviewer` | Architecture, design patterns, code quality | | 2 | `ring:logic-reviewer` | Domain correctness, business rules, edge cases | | 3 | `ring:security-reviewer` | Vulnerabilities, authentication, OWASP risks | | 4 | `ring:test-reviewer` | Test quality, coverage, edge cases, anti-patterns | | 5 | `ring:nil-reviewer` | Nil/null pointer safety for Go and TypeScript | | 6 | `ring:dead-code-reviewer` | Orphaned code detection, reachability analysis | | 7 | `ring:perf-reviewer` | Performance hotspots, allocations, goroutine leaks, N+1 | | 8 | `ring:tenancy-reviewer` | Multi-tenant patterns, tenantId propagation, DB isolation | | 9 | `ring:commons-reviewer` | lib-commons package usage and reinvented-wheel opportunities |
Base hard gate: all 9 default reviewers must PASS.
Conditional Specialist Reviewers
Run these only when the diff matches their trigger. If triggered, include the specialist in aggregation and require PASS for overall PASS.
| Agent | Trigger | |-------|---------| | `ring:obs-reviewer` | Diff touches tracing, metrics, logging, runtime recovery/panic safety, redaction, observability constants, or goroutines with recover/SafeGo implications. | | `ring:systemplane-reviewer` | Diff touches runtime config, hot-reload knobs, admin config surface, tenant-scoped settings, or systemplane imports/config. | | `ring:streaming-reviewer` | Diff touches business events, outbox, event producers, broker publishing, CloudEvents, or event manifests/catalogs. |
Role Clarification
| Who | Responsibility | |-----|----------------| | **This Skill** | Select triggered specialists, dispatch reviewers once, aggregate findings, report all severities in-session | | **Reviewer Agents** | Analyze code, report issues with severity |
Step 1: Gather Context (Auto-Detect if Not Provided)
Auto-detect: `unit_id` (generate if missing), `base_sha` (git merge-base HEAD main), `head_sha` (git rev-parse HEAD), `implementation_files` (git diff --name-only), `implementation_summary` (git log --oneline).
Display context banner before dispatching.
Step 2: Select Reviewers and Initialize Review State
Start with the 9 default reviewers. Inspect changed files and diff content to decide which conditional specialists are triggered. Track unit_id, base/head SHA, selected reviewer list, reviewer verdicts, and aggregated issues by severity: Critical, High, Medium, Low.
Step 3: Dispatch Selected Reviewers in Parallel
STOP-CHECK BEFORE DISPATCH
Before emitting any Task call, count the reviewers you intend to launch in this turn.
- Count MUST equal `9 + triggered_specialists`.
- Count MUST be at least 9 and at most 12.
- If count < 9 or count does not include every triggered specialist -> STOP. Reconcile against the default reviewer table and trigger table above.
MUST NOT trickle-dispatch
All selected reviewers leave in the SAME TURN, before reading any reviewer output.
Forbidden sequences:
- Dispatch reviewer 1 -> read result -> dispatch reviewer 2
- Dispatch a subset -> wait -> dispatch the rest
- Dispatch conditional specialists after partial reviewer output
- Loop sequentially over the reviewer list
If you find yourself about to dispatch a reviewer in a turn AFTER any reviewer has already returned a result -> STOP. You violated parallel dispatch. Report the violation to the user and mark the gate INCOMPLETE rather than completing the trickle.
Self-verify after dispatch
After the dispatch turn, verify all selected Task calls were emitted in that single turn. If fewer than selected reviewers went out, the gate did NOT execute correctly. Mark the run INCOMPLETE and surface the dispatch failure.
Parallel dispatch — atomic batch
Emit all selected Task calls in a SINGLE TURN, as one atomic batch.
If your runtime exposes a `multi_tool_use.parallel` wrapper, use it to dispatch the complete selected pool in one wrapped invocation. The STOP-CHECK, anti-trickle, and self-verify guards remain binding regardless of runtime.
Read `reviewers/dispatch-prompts.md` for the prompt templates. Inject:
- Epic-level scope header (when `scope=epic`)
- `base_sha` / `head_sha` from cumulative_dif
Read more
name: ring:reviewing-code description: "Reviewing code by dispatching the default reviewer subagents in parallel (plus conditional specialists for lib-observability, lib-systemplane, or lib-streaming when the diff triggers them), then aggregating findings by severity into a report. Use as Gate 8 of ring:running-dev-cycle at epic cadence over the cumulative diff, or before merging. Report-only. Skip for a single-command Go pre-merge verdict (use ring:verifying-code)."
Code Review (Gate 8)
When to use
- Gate 8 of development cycle
- After completing major feature implementation
- Before merge to main branch
- After completing complex bug work
Skip when
- Task is purely conversational or informational with no code changes
- Changes are limited to documentation or comments with zero logic modifications
- Code has not been modified since the last completed review cycle
Sequence
**Runs after:** ring:implementing-tasks **Runs before:** ring:validating-acceptance-criteria
Related
**Complementary:** ring:running-dev-cycle, ring:implementing-tasks
Dispatch the 9 default reviewer subagents in **parallel**, plus any triggered conditional specialists. Dispatch count is dynamic: 9 + triggered specialists, max 12. Do not say or imply all 12 always dispatch.
**Announce at start:** "Using ring:reviewing-code to dispatch 9 default reviewers plus triggered conditional specialists."
**Report-only boundary:** This skill does not remediate findings, dispatch implementation work, write comments into source files, generate external artifacts, invoke secondary review tools, or re-run reviewers automatically. It only dispatches the selected reviewers once and reports their findings in the current session.
Default Reviewers (Hard Gate)
| # | Agent | Focus | |---|-------|-------| | 1 | `ring:code-reviewer` | Architecture, design patterns, code quality | | 2 | `ring:logic-reviewer` | Domain correctness, business rules, edge cases | | 3 | `ring:security-reviewer` | Vulnerabilities, authentication, OWASP risks | | 4 | `ring:test-reviewer` | Test quality, coverage, edge cases, anti-patterns | | 5 | `ring:nil-reviewer` | Nil/null pointer safety for Go and TypeScript | | 6 | `ring:dead-code-reviewer` | Orphaned code detection, reachability analysis | | 7 | `ring:perf-reviewer` | Performance hotspots, allocations, goroutine leaks, N+1 | | 8 | `ring:tenancy-reviewer` | Multi-tenant patterns, tenantId propagation, DB isolation | | 9 | `ring:commons-reviewer` | lib-commons package usage and reinvented-wheel opportunities |
Base hard gate: all 9 default reviewers must PASS.
Conditional Specialist Reviewers
Run these only when the diff matches their trigger. If triggered, include the specialist in aggregation and require PASS for overall PASS.
| Agent | Trigger | |-------|---------| | `ring:obs-reviewer` | Diff touches tracing, metrics, logging, runtime recovery/panic safety, redaction, observability constants, or goroutines with recover/SafeGo implications. | | `ring:systemplane-reviewer` | Diff touches runtime config, hot-reload knobs, admin config surface, tenant-scoped settings, or systemplane imports/config. | | `ring:streaming-reviewer` | Diff touches business events, outbox, event producers, broker publishing, CloudEvents, or event manifests/catalogs. |
Role Clarification
| Who | Responsibility | |-----|----------------| | **This Skill** | Select triggered specialists, dispatch reviewers once, aggregate findings, report all severities in-session | | **Reviewer Agents** | Analyze code, report issues with severity |
Step 1: Gather Context (Auto-Detect if Not Provided)
Auto-detect: `unit_id` (generate if missing), `base_sha` (git merge-base HEAD main), `head_sha` (git rev-parse HEAD), `implementation_files` (git diff --name-only), `implementation_summary` (git log --oneline).
Display context banner before dispatching.
Step 2: Select Reviewers and Initialize Review State
Start with the 9 default reviewers. Inspect changed files and diff content to decide which conditional specialists are triggered. Track unit_id, base/head SHA, selected reviewer list, reviewer verdicts, and aggregated issues by severity: Critical, High, Medium, Low.
Step 3: Dispatch Selected Reviewers in Parallel
STOP-CHECK BEFORE DISPATCH
Before emitting any Task call, count the reviewers you intend to launch in this turn.
- Count MUST equal `9 + triggered_specialists`.
- Count MUST be at least 9 and at most 12.
- If count < 9 or count does not include every triggered specialist -> STOP. Reconcile against the default reviewer table and trigger table above.
MUST NOT trickle-dispatch
All selected reviewers leave in the SAME TURN, before reading any reviewer output.
Forbidden sequences:
- Dispatch reviewer 1 -> read result -> dispatch reviewer 2
- Dispatch a subset -> wait -> dispatch the rest
- Dispatch conditional specialists after partial reviewer output
- Loop sequentially over the reviewer list
If you find yourself about to dispatch a reviewer in a turn AFTER any reviewer has already returned a result -> STOP. You violated parallel dispatch. Report the violation to the user and mark the gate INCOMPLETE rather than completing the trickle.
Self-verify after dispatch
After the dispatch turn, verify all selected Task calls were emitted in that single turn. If fewer than selected reviewers went out, the gate did NOT execute correctly. Mark the run INCOMPLETE and surface the dispatch failure.
Parallel dispatch — atomic batch
Emit all selected Task calls in a SINGLE TURN, as one atomic batch.
If your runtime exposes a `multi_tool_use.parallel` wrapper, use it to dispatch the complete selected pool in one wrapped invocation. The STOP-CHECK, anti-trickle, and self-verify guards remain binding regardless of runtime.
Read `reviewers/dispatch-prompts.md` for the prompt templates. Inject:
- Epic-level scope header (when `scope=epic`)
- `base_sha` / `head_sha` from cumulative_dif
Proven engineering practices, enforced through skills. Ring is a comprehensive skills library and workflow system for AI agents that transforms how AI assistants approach software development.
Repo: LerianStudio/ring
Other skills on ring.
- /analyzing-options
Analyzing different approaches for a task or problem with structured comparisons, effort estimates, and recommendations. Use when facing strategic decisions, architecture choices, or multiple viable approaches. Skip when there's an obvious single approach or the decision is
Open skill - /auditing-production-readiness
Auditing a service's production readiness against Ring engineering standards across base dimensions plus a conditional multi-tenant dimension, then emitting a scored report and an HTML dashboard. Use before production deploy, periodic review, onboarding, or a major release. Skip
Open skill - /cleaning-comments
Cleaning redundant and obvious comments following clean code principles while preserving meaningful documentation. Supports git scope filtering (staged, unstaged, branch, commit-range). Use when code has excessive comments, during code review, or post-refactor cleanup. Skip when
Open skill - /committing-changes
Commit changes with scope allowlist enforcement, atomic grouping, GPG-signed conventional commits, and trailer management. Detects the repo's PR-validation scope policy before proposing any message. Use when the user asks to commit or has changes ready to record. Skip when the
Open skill - /creating-handoffs
Creating a handoff document that captures session state (completed work, decisions, open items, next steps) and delivering it via Plan Mode so the user gets the native 'clear context and continue implementing' resume option. Use when ending a session, when context grows large,
Open skill - /creating-worktrees
Creating an isolated git worktree for parallel branch work: selects the directory by priority order, verifies/adds .gitignore safety, auto-installs the detected toolchain's dependencies, runs a baseline test, and reports readiness. Use before a feature that needs isolation from
Open skill

