Skip to content
Machine Learning
Skill

/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,

From plugin
civitai
7.3k54 skills17 agents3 commands

Claude Code

$ npx -y skills add civitai/civitai --skill civitai-review --agent claude-code

SKILL.md

civitai-review.SKILL.md
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
Read more
@civitai
Ships withcivitai

A repository of models, textual inversions, and more

7.3k54 skills17 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
7.3k
Star history of civitai/civitai on GitHub, a chart by star-history.com

Other skills on civitai.

add-ecosystem

add-ecosystem

Add a new ecosystem and base model to basemodel.constants.ts. Use when onboarding a new model family from providers like Baidu,โ€ฆ

@civitai@civitaiInstall Skill
add-generation-support

add-generation-support

Wire an existing ecosystem into the generation system. Adds generation support to basemodel.constants.ts, creates graph andโ€ฆ

@civitai@civitaiInstall Skill
add-prompt-enhancement-guide

add-prompt-enhancementโ€ฆ

Author a prompt-enhancement system prompt for a new ecosystem and register/update it on the orchestrator's prompt-analysisโ€ฆ

@civitai@civitaiInstall Skill
add-trainer-model

add-trainer-model

Add a new trainable base model to BOTH trainers end-to-end โ€” the in-app trainer (main Next.js app, src/) and the Training Studioโ€ฆ

@civitai@civitaiInstall Skill
add-training-support

add-training-support

Wire an existing ecosystem into the LoRA training system so it appears as a trainable base model in the training form. Adds theโ€ฆ

@civitai@civitaiInstall Skill
app-assistant-trace

app-assistant-trace

Trace a submitted App Block back to the App Assistant chats that built it and diagnose why it came out the way it did (e.g. whyโ€ฆ

@civitai@civitaiInstall Skill

More skills from other plugins.

analyze-ci

analyze-ci

Analyze failed GitHub Action jobs. Takes one or more GitHub URLs (job, workflow-run, or PR) and summarizes each failure with rootโ€ฆ

mlflow2w29k
@mlflow@mlflowInstall Skill
hf-cli

hf-cli

Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, andโ€ฆ

skills4w11k
@huggingface@huggingfaceInstall Skill
feast-architecture

feast-architecture

Internals of the Feast codebase โ€” how each component works, where the key abstractions live, and the data flow through theโ€ฆ

feast2w7.4k
@feast-dev@feast-devInstall Skill
accessing-mlflow

accessing-mlflow

Query and browse evaluation results stored in MLflow. Use when the user wants to look up runs by invocation ID, compare metricsโ€ฆ

@nvidia@nvidiaInstall Skill

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.