From cubic
Run a headless cubic AI code review on local changes using the CLI.
How this command is triggered — by the user, by Claude, or both
Slash command
/cubic:run-reviewThe summary Claude sees in its command listing — used to decide when to auto-load this command
# cubic Run Review Run a headless cubic AI code review on local changes using the CLI. ## Arguments User-provided flags: $ARGUMENTS ## Instructions 1. **Check CLI is installed**: Run `which cubic`. If not found, stop and show the user this install command: After installing, the user needs to authenticate by running `cubic auth` and following the browser login flow. Once done, they can re-run this command. 2. **Run the review** (always include `-j` for JSON output): - If the user provided flags (e.g. `-b main`, `-c HEAD~1`, `-p "..."`), pass them through: `cubic review -j <...
Run a headless cubic AI code review on local changes using the CLI.
User-provided flags: $ARGUMENTS
Check CLI is installed: Run which cubic. If not found, stop and show the user this install command:
curl -fsSL https://cubic.dev/install | bash
After installing, the user needs to authenticate by running cubic auth and following the browser login flow. Once done, they can re-run this command.
Run the review (always include -j for JSON output):
-b main, -c HEAD~1, -p "..."), pass them through: cubic review -j <user flags>git diff --stat
cubic review -j (reviews working directory)cubic review -b -j (falls back to branch vs base review)Parse the JSON output: The output contains an issues array. Each issue has:
priority: P0 (critical), P1 (high), P2 (medium), P3 (low)file: File pathline: Line numbertitle: Issue titledescription: Detailed explanationPresent results: Group issues by priority. For each issue show the file, line, title, and description. Highlight P0/P1 issues as requiring immediate attention.
If no issues found: Congratulate the user — the code looks good.
Offer to fix: List each issue by number (e.g. "1. P0 — SQL injection in auth.ts:45") and ask which ones the user wants you to fix. Then for each selected issue:
npx claudepluginhub mrge-io/skills --plugin cubic