run-reviewlisted
Install: claude install-skill mrge-io/skills
# Run Local Code Review
Run a local cubic AI code review via CLI to catch issues before committing or opening a PR.
## When To Activate
- User says "review my code", "check my changes", "run a review", or "anything I should fix"
- User is about to commit or open a PR and wants a quality check
- User asks to "scan for issues", "check for problems", or "review before merging"
- User wants to validate local changes against cubic's AI review
## Inputs
- **Flags** (optional): Pass-through flags for the cubic CLI (e.g., `-b main`, `-c HEAD~1`).
## Instructions
### 1. Check the CLI is installed
```bash
which cubic
```
If not found, show install options and stop:
```bash
curl -fsSL https://cubic.dev/install | bash
```
After installing, the user needs to authenticate with `cubic auth`.
### 2. Determine what to review
```bash
git status --porcelain
```
- If there are uncommitted changes -> `cubic review -j` (reviews working directory)
- If clean working tree -> `cubic review -b -j` (reviews branch vs base)
- If user provided flags -> `cubic review -j <flags>`
### 3. Wait for review completion
After invoking `cubic review`, do not assume the result is final immediately.
- If output indicates queued/running status (or no final `issues` array yet), poll until complete.
- **Local review window**: sleep 15 seconds between retries, up to 20 retries (5 minutes total).
- **GitHub/branch review window** (`-b` or PR-linked context): sleep 30 seconds between retries, up to 30 ret