Command Palette

Search for a command to run...

Назад к скиллам
скилл № 78373

civitai-review

Run the Civitai review agents (reuse, reduction, safety, security, performance, tests, intent; plus comments when recording) over a feature segment in the…

БесплатноБез исполняемых скриптов
civitaiот civitai★ 7 333 звезды на GitHub

Установить civitai-review в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

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 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 seven 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,
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл civitai-review?

Run the Civitai review agents (reuse, reduction, safety, security, 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-review?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл civitai-review запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить civitai-review с