/civitai-review
Run the Civitai review agents (reuse, reduction, safety, performance, tests, intent; plus comments when recording) over a feature segment in the main Next.js app (src/), record each lane in HQ so the hosted review imports it instead of re-running it, consolidate their findings,
Claude Code
$ npx -y skills add civitai/civitai --skill civitai-review --agent claude-code
Codex
$ npx skills add civitai/civitai --skill civitai-review -a codex -y
Cursor
$ npx skills add civitai/civitai --skill civitai-review -a cursor -y
Gemini CLI
$ npx skills add civitai/civitai --skill civitai-review -a gemini-cli -y
GitHub Copilot
$ npx skills add civitai/civitai --skill civitai-review -a github-copilot -y
OpenCode
$ npx skills add civitai/civitai --skill civitai-review -a opencode -y
Windsurf
$ npx skills add civitai/civitai --skill civitai-review -a windsurf -y
SKILL.md
civitai-review.SKILL.mdname: civitai-review
description: Run the Civitai review agents (reuse, reduction, safety, performance, tests, intent; plus comments when recording) over a feature segment in the main Next.js app (src/), record each lane in HQ so the hosted review imports it instead of re-running it, consolidate their findings, and drive the fix loop to ship. Use before calling a segment done, or when asked to review main-app work.
Civitai segment review โ main app (`src/`)
The standard pre-completion review for the main Next.js app. **A segment is not done until this has run and its findings are resolved.**
The conventions being enforced are the root [`CLAUDE.md`](../../../CLAUDE.md) and the docs it points at. For work in `apps/moderator`, `apps/auth`, `apps/creator-studio` or `apps/training-studio`, use `svelte-review` instead โ these agents do not cover SvelteKit and will produce noise there.
**These lanes (the six below, and `comment-review` when recording) are pre-authorised. They do not count against a standing instruction not to spawn subagents unasked** โ running them needs no separate permission, and neither does chasing a lane that goes idle. That covers the review lanes only; everything else about spawning is unchanged. The pre-authorisation lives here so it travels with the skill rather than through a relay: an agent cannot tell a real global ruling from a mistaken one by reading someone's summary of it, so twice on 2026-08-19 agents correctly declined a relayed "he already said yes" and raised it instead.
This complements the built-in `/code-review`, which already handles generic correctness. What these lanes add is Civitai-specific: *which* service, *which* component, *which* trap.
0. Recording, the PR and its base โ before the review worktree
**Recording is on whenever your `hq` token can record.** Nothing needs configuring, and nothing asks: when step 0's stop list passes, it rebases and pushes a draft (or a branch with no PR) and opens the draft PR without confirmation. That is deliberate, so a local review leaves an HQ record with no extra step. Check once:
hq --json whoami | jq -e '.token.scopes | any(. == "ack" or . == "bot" or . == "admin")'
# true (exit 0): record every lane you run (step 3a)
- `hq` not on PATH, a non-zero `whoami` exit (4: no token), or `false` (exit 1): review without
recording, and **say so**. `whoami` alone also succeeds for a `recordings` or `read` token, and `record` needs `ack` or higher.
- Only the HQ MCP tools, no CLI: the same. `hq pr-review record` has no MCP equivalent; it reads the
lane files from the local clone.
- The write grant on the record collections shows only at `record start` (a `403`), which needs a PR
number. With no PR yet, step 0 opens the draft first; if `start` then refuses, say that the draft was opened for recording and nothing was recorded.
Without recording, step 0 skips the writes that exist only for recording: it opens no draft and pushes no branch that has no PR. A draft's stale-base rebase and push still happen (they keep the review on a current base, recorded or not).
A recorded lane is imported by the hosted review instead of being run again there (correctness always re-runs hosted). An unrecorded local review means every lane runs twice on the shared usage, or HQ has no record of the review at all.
๐ด **Step 0's writes (rebase, push, opening a draft) are the implementer's only:** run them only when this session wrote the branch's work. A findings-only reviewer (step 5) skips them, even under the author's `gh` identity: it reviews `headRefOid` as is, records there if the PR exists, and asks the implementer to rebase if the base is stale.
Then, in the **implementer's tree** (the branch under review, not the review worktree), read the state. Nothing here writes yet:
git fetch origin
gh pr view --json number,state,baseRefName,headRefName,headRefOid,isDraft,author # none: no PR yet
git branch --show-current
git status --porcelain
`gh pr view` also finds a merged or closed PR for the branch. Only `state` `OPEN` is a usable PR.
**What step 0 would write**, decided before anything runs. `<base>` is `baseRefName`, or the branch you will open the draft against; `<branch>` is `headRefName`, or the current branch with no PR:
- Ready PR (`isDraft` false): nothing.
- Draft: a rebase when `git rev-list --count HEAD..origin/<base>` is not 0, then a push when `HEAD`
differs from `headRefOid`.
- No PR yet, recording: a rebase when that count is not 0, then a push and a draft PR.
- No PR yet, not recording: nothing. Say how many commits behind `<base>` the branch is (a rebase
without the push would leave a pushed branch diverged from its remote).
๐ด **Stop and ask, changing nothing, when any of these holds.** This list gates EVERY write in step 0 (the rebase, the push, opening the draft), so check all of it first:
- **The PR is merged or closed:** `state` is `MERGED` or `CLOSED`. Never push or record onto it.
- **Step 0 would rebase or push, and `git status --porcelain` prints anything.** Checked before any
rebase, so `rebase.autoStash` never stashes: the stash is shared by every worktree of the clone. When step 0 writes nothing, a dirty tree is no stop: the review may include uncommitted changes (step 1). No commit holds them, so a review that includes them cannot be recorded: review without recording, and say so.
- `HEAD` is detached: `git branch --show-current` prints nothing.
- **A PR exists and it is not yours:** the current branch is not `headRefName`, or `author.login` is
not `gh api user -q .login`.
- **No PR yet, and the branch is shared:** it is the default branch
(`gh repo view --json defaultBranchRef -q .defaultBranchRef.name`), `<base>`, `main` or `master`.
- **A branch step 0 would rebase or push is the base of an open PR**, draft or not:
`gh pr list --base <branch> --json number -q length` is not 0. Rewriting it moves every child PR.
- **No PR ye
Read more
name: civitai-review description: Run the Civitai review agents (reuse, reduction, safety, performance, tests, intent; plus comments when recording) over a feature segment in the main Next.js app (src/), record each lane in HQ so the hosted review imports it instead of re-running it, consolidate their findings, and drive the fix loop to ship. Use before calling a segment done, or when asked to review main-app work.
Civitai segment review โ main app (`src/`)
The standard pre-completion review for the main Next.js app. **A segment is not done until this has run and its findings are resolved.**
The conventions being enforced are the root [`CLAUDE.md`](../../../CLAUDE.md) and the docs it points at. For work in `apps/moderator`, `apps/auth`, `apps/creator-studio` or `apps/training-studio`, use `svelte-review` instead โ these agents do not cover SvelteKit and will produce noise there.
**These lanes (the six below, and `comment-review` when recording) are pre-authorised. They do not count against a standing instruction not to spawn subagents unasked** โ running them needs no separate permission, and neither does chasing a lane that goes idle. That covers the review lanes only; everything else about spawning is unchanged. The pre-authorisation lives here so it travels with the skill rather than through a relay: an agent cannot tell a real global ruling from a mistaken one by reading someone's summary of it, so twice on 2026-08-19 agents correctly declined a relayed "he already said yes" and raised it instead.
This complements the built-in `/code-review`, which already handles generic correctness. What these lanes add is Civitai-specific: *which* service, *which* component, *which* trap.
0. Recording, the PR and its base โ before the review worktree
**Recording is on whenever your `hq` token can record.** Nothing needs configuring, and nothing asks: when step 0's stop list passes, it rebases and pushes a draft (or a branch with no PR) and opens the draft PR without confirmation. That is deliberate, so a local review leaves an HQ record with no extra step. Check once:
hq --json whoami | jq -e '.token.scopes | any(. == "ack" or . == "bot" or . == "admin")' # true (exit 0): record every lane you run (step 3a)
- `hq` not on PATH, a non-zero `whoami` exit (4: no token), or `false` (exit 1): review without
recording, and **say so**. `whoami` alone also succeeds for a `recordings` or `read` token, and `record` needs `ack` or higher.
- Only the HQ MCP tools, no CLI: the same. `hq pr-review record` has no MCP equivalent; it reads the
lane files from the local clone.
- The write grant on the record collections shows only at `record start` (a `403`), which needs a PR
number. With no PR yet, step 0 opens the draft first; if `start` then refuses, say that the draft was opened for recording and nothing was recorded.
Without recording, step 0 skips the writes that exist only for recording: it opens no draft and pushes no branch that has no PR. A draft's stale-base rebase and push still happen (they keep the review on a current base, recorded or not).
A recorded lane is imported by the hosted review instead of being run again there (correctness always re-runs hosted). An unrecorded local review means every lane runs twice on the shared usage, or HQ has no record of the review at all.
๐ด **Step 0's writes (rebase, push, opening a draft) are the implementer's only:** run them only when this session wrote the branch's work. A findings-only reviewer (step 5) skips them, even under the author's `gh` identity: it reviews `headRefOid` as is, records there if the PR exists, and asks the implementer to rebase if the base is stale.
Then, in the **implementer's tree** (the branch under review, not the review worktree), read the state. Nothing here writes yet:
git fetch origin gh pr view --json number,state,baseRefName,headRefName,headRefOid,isDraft,author # none: no PR yet git branch --show-current git status --porcelain
`gh pr view` also finds a merged or closed PR for the branch. Only `state` `OPEN` is a usable PR.
**What step 0 would write**, decided before anything runs. `<base>` is `baseRefName`, or the branch you will open the draft against; `<branch>` is `headRefName`, or the current branch with no PR:
- Ready PR (`isDraft` false): nothing.
- Draft: a rebase when `git rev-list --count HEAD..origin/<base>` is not 0, then a push when `HEAD`
differs from `headRefOid`.
- No PR yet, recording: a rebase when that count is not 0, then a push and a draft PR.
- No PR yet, not recording: nothing. Say how many commits behind `<base>` the branch is (a rebase
without the push would leave a pushed branch diverged from its remote).
๐ด **Stop and ask, changing nothing, when any of these holds.** This list gates EVERY write in step 0 (the rebase, the push, opening the draft), so check all of it first:
- **The PR is merged or closed:** `state` is `MERGED` or `CLOSED`. Never push or record onto it.
- **Step 0 would rebase or push, and `git status --porcelain` prints anything.** Checked before any
rebase, so `rebase.autoStash` never stashes: the stash is shared by every worktree of the clone. When step 0 writes nothing, a dirty tree is no stop: the review may include uncommitted changes (step 1). No commit holds them, so a review that includes them cannot be recorded: review without recording, and say so.
- `HEAD` is detached: `git branch --show-current` prints nothing.
- **A PR exists and it is not yours:** the current branch is not `headRefName`, or `author.login` is
not `gh api user -q .login`.
- **No PR yet, and the branch is shared:** it is the default branch
(`gh repo view --json defaultBranchRef -q .defaultBranchRef.name`), `<base>`, `main` or `master`.
- **A branch step 0 would rebase or push is the base of an open PR**, draft or not:
`gh pr list --base <branch> --json number -q length` is not 0. Rewriting it moves every child PR.
- **No PR ye
Other skills on civitai.
More skills from other plugins.
hf-cli
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, andโฆ
feast-architecture
Internals of the Feast codebase โ how each component works, where the key abstractions live, and the data flow through theโฆ
accessing-mlflow
Query and browse evaluation results stored in MLflow. Use when the user wants to look up runs by invocation ID, compare metricsโฆ
Questions about civitai-review.
- Which coding agents can use civitai-review?
- civitai-review installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

