AI-powered code review using Cubic CLI. Detects bugs, security vulnerabilities, and style issues before commits.
76
96%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Detect bugs, security issues, and code quality problems in local changes by running cubic review via Bash.
Cubic CLI must be installed. If cubic is not found in PATH, inform the user with installation options:
curl -fsSL https://cubic.dev/install | bashnpm install -g @cubic-dev-ai/cliDo not run the installation command automatically. Let the user decide.
If cubic returns an authentication error, inform the user to run cubic login or complete browser-based authentication.
Always pass --json for structured output. Key modes:
cubic review --json -- review uncommitted changes (default)cubic review --base main --json -- compare against a branch (PR-style)cubic review --commit HEAD~1 --json -- review a specific commitcubic review --prompt "focus area" --json -- custom review focusConstraint:
--base,--commit, and--promptare mutually exclusive.
{
"issues": [
{
"priority": "P0",
"file": "src/api/auth.ts",
"line": 45,
"title": "SQL injection vulnerability in user lookup",
"description": "User input is concatenated directly into SQL query without parameterization."
}
]
}Priority levels: P0 (critical) > P1 (high) > P2 (medium) > P3 (low).
cubic review --json (or with --base/--commit as appropriate)cubic review --json to verify fixesFor the full command reference and step-by-step workflow, use /cubic:review.