---
name: rba-review
description: >-
  Quick entry-point for all RBA code review skills. Dispatches to the appropriate
  skill based on what you pass: a branch/diff for a full PR review, a file path for
  a targeted check, or a mode flag (--security, --perf, --a11y, --standards, --summary)
  to run a single focused review dimension.
argument-hint: "[branch | file | 'diff' | --security | --perf | --a11y | --standards | --summary]"
allowed-tools: Read, Glob, Grep, Bash(git diff *), Bash(git status *), Bash(git log *)
---

# /rba-review — RBA Code Review Dispatcher

Dispatch to the appropriate review skill based on `$ARGUMENTS`:

## Routing Logic

| Input | Dispatches to |
|-------|--------------|
| A git branch name (contains `/` or matches known branch patterns) | `pr-reviewer` skill — full review |
| `diff` or no argument | `pr-reviewer` skill on current diff |
| `--security` + optional path | `security-scan` skill |
| `--perf` + optional path | `perf-audit` skill |
| `--a11y` + optional path | `a11y-linter` skill |
| `--standards` + optional path + optional platform name | `standards-check` skill |
| `--summary` + optional pasted findings | `review-summary` skill |
| A file path only | Detect type: `.tsx/.jsx/.cshtml/.html` → `a11y-linter`; `.cs/.csproj` → `standards-check` + `security-scan`; otherwise `pr-reviewer` |

## Behaviour

1. Parse `$ARGUMENTS` using the routing table above.
2. State which skill you are dispatching to and why.
3. Run that skill's complete methodology — do not shortcut.
4. If the input is ambiguous between two skills, run `pr-reviewer` (broadest coverage)
   and note which other skills to run for deeper analysis.

## Quick Reference

```
/rba-review                          # Review current staged changes
/rba-review feature/PROJ-123-login   # Full review of a branch vs main
/rba-review --security src/Api/      # Security scan of the API layer
/rba-review --perf                   # Performance audit of current diff
/rba-review --a11y components/       # A11y lint of all components
/rba-review --standards sitecore     # Helix standards check
/rba-review --summary                # Summarise pasted review outputs
```
