← ClaudeAtlas

cubic-looplisted

Iteratively improves code by running cubic AI reviews, fixing issues, and re-reviewing until clean or a maximum number of iterations is reached. Use when the user wants to polish their changes, says "loop until clean", "keep reviewing", or wants to fully optimize code quality before merging.
mrge-io/skills · ★ 2 · AI & Automation · score 54
Install: claude install-skill mrge-io/skills
# Cubic Loop Iteratively review and fix code until cubic finds no more issues: review -> fix -> re-review -> repeat. ## When To Activate - User says "loop until clean", "keep reviewing until done", or "cubic loop" - User wants to fully optimize a PR or branch before merging - User asks to "fix everything cubic finds" or "make cubic happy" ## Inputs - **Mode** (optional): `local` (default) for CLI review, or `pr` for PR-based review. - **Max iterations** (optional): Defaults to 5. Safety cap to prevent runaway loops. ## Instructions ### 1. Determine review mode Check whether to use local CLI or PR-based review: - If user said "pr" or there's an open PR for the current branch -> PR mode - Otherwise -> local CLI mode For **local mode**, verify the CLI is installed: ```bash which cubic ``` If not found, show install instructions and stop: ```bash curl -fsSL https://cubic.dev/install | bash ``` For **PR mode**, verify GitHub CLI access: ```bash gh auth status ``` If `gh` is missing or unauthenticated, stop and tell the user they need GitHub CLI access for PR mode. Then identify the PR: ```bash gh pr view --json number,headRefName -q '{number: .number, branch: .headRefName}' ``` ### 2. Loop (max 5 iterations) Repeat the following cycle. #### A. Run review **Local mode:** ```bash git status --porcelain # If uncommitted changes: cubic review -j # If clean working tree: cubic review -b -j ``` If local review output is queued/running (or no final `issues` array