From cubic
Runs a local cubic AI code review using the CLI on uncommitted changes or the current branch diff. Surfaces issues grouped by priority and offers to fix them. Use when the user wants a pre-commit or pre-PR quality check, says "review my code", or asks "anything I should fix".
How this skill is triggered — by the user, by Claude, or both
Slash command
/cubic:run-reviewThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run a local cubic AI code review via CLI to catch issues before committing or opening a PR.
Run a local cubic AI code review via CLI to catch issues before committing or opening a PR.
-b main, -c HEAD~1).which cubic
If not found, show install options and stop:
curl -fsSL https://cubic.dev/install | bash
After installing, the user needs to authenticate with cubic auth.
git status --porcelain
cubic review -j (reviews working directory)cubic review -b -j (reviews branch vs base)cubic review -j <flags>After invoking cubic review, do not assume the result is final immediately.
issues array yet), poll until complete.-b or PR-linked context): sleep 30 seconds between retries, up to 30 retries (15 minutes total).The JSON 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 explanationIf no issues found, tell the user the code looks good.
If issues found, present them grouped by priority (P0 first). Highlight P0 and P1 as requiring immediate attention.
List each issue by number so the user can pick which to fix. For each selected issue:
## cubic Local Review
Found 4 issues:
### P0 — Critical (1)
1. **SQL injection in query builder** — `src/auth.ts:45`
Unsanitized user input passed directly to SQL query.
### P1 — High (1)
2. **Missing null check** — `src/api.ts:88`
`user.email` accessed without checking if user exists.
### P2 — Medium (1)
3. **Unhandled promise rejection** — `src/worker.ts:23`
Async function missing try/catch around external API call.
### P3 — Low (1)
4. **Unused import** — `src/utils.ts:1`
`lodash` imported but never used.
Which issues should I fix? (e.g., "1, 2" or "all P0 and P1")
npx claudepluginhub mrge-io/skills --plugin cubicProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.