Agent Skill · cubic

run-review

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".

Provider: cubic Path in repo: run-review/SKILL.md

Skill body

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

Inputs

Instructions

1. Check the CLI is installed

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.

2. Determine what to review

git status --porcelain

3. Wait for review completion

After invoking cubic review, do not assume the result is final immediately.

4. Parse results

The JSON output contains an issues array. Each issue has:

5. Present issues

If 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.

6. Offer to fix

List each issue by number so the user can pick which to fix. For each selected issue:

  1. Read the file and surrounding context to understand the root cause
  2. Validate the issue is real — if it’s a false positive, explain why and skip it
  3. Fix it in the simplest, cleanest way possible without refactoring unrelated code

Output Format

## 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")

Skill frontmatter

allowed-tools: Bash

Work with this as data

Every skill here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for agent skills

4 MCP tools reach this
  • find_skillsBrowse and filter every skill in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This skill
curl "https://apis.io/api/v1/skills/run-review"
All agent skills
curl "https://apis.io/api/v1/skills?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.