civitai-review

Runs five parallel review agents over Next.js feature segments and consolidates findings into a fix loop.

7.2k|734|Updated Oct 11, 2022
One-click install
npx skills add https://github.com/civitai/civitai --skill civitai-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: civitai-review
Source: https://github.com/civitai/civitai/tree/main/.claude/skills/civitai-review
Command: npx skills add https://github.com/civitai/civitai --skill civitai-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Feature work in the Civitai main Next.js app (src/) often ships without a structured review covering reuse, correctness, performance, tests, and intent, letting defects like N+1 queries, auth scoping gaps, and vacuous tests reach production.

Core Features & Use Cases

  • Five parallel review lanes: Launches reuse, correctness/safety, performance, test, and intent review agents simultaneously against a scoped diff, each with Civitai-specific knowledge of services, components, and traps.
  • Scoped diffing against the real base: Determines the actual integration branch base (not main) via the PR, so unrelated commits do not pollute the review.
  • Consolidated three-section report: Separates intent findings, ranked code findings, and pre-existing duplication mapping, with deduplication and disproval of false positives.
  • Explicit fix loop: Reviewers report and never patch; the implementer fixes, and only touched lanes re-run against the updated diff until no unresolved findings remain.
  • Use Case: Before calling a feature segment done, run this skill to fan out all five agents over the segment's diff, chase any silent lanes, consolidate findings, and drive the fix loop to ship.

Quick Start

Run the civitai-review skill over the current feature segment's diff against its PR base branch and consolidate the five agents' findings before committing.

Frequently Asked Questions about civitai-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a multi-agent code review on a Next.js feature branch?

Scope the diff against the PR's actual base branch, then launch all five review lanes (reuse, correctness, performance, tests, intent) in a single message so they run in parallel. Consolidate their reports into intent findings, ranked code findings, and a duplication map before starting the fix loop.

What does the civitai-review skill check before shipping a segment?

It checks component and service reuse, auth scoping, money paths, PII and NSFW gating, N+1 queries, unindexed queries, cache stampedes, bundle weight, vacuous tests, and whether the PR actually delivers the requested intent. A segment is not done until all findings are resolved or declined with accepted reasons.

Why does the review fail when the branch is based on an integration branch?

The skill and its agents are tracked in the repo, so a worktree at a commit predating their merge contains neither the skill nor the agent definitions. Run git checkout origin/main -- .claude in the detached review worktree to bring them in before spawning any agents.

What should I do when a review agent goes idle without reporting?

Re-ping the silent lane directly; measured across review rounds, re-pinging recovered every idle agent. Account for every lane by name before consolidating, because a silent lane is indistinguishable from one that found nothing and can hide the sharpest finding.

Can this skill review SvelteKit apps like the moderator or auth apps?

No. The five agents only cover the main Next.js app under src/ and produce noise on SvelteKit code. For apps/moderator, apps/auth, or apps/creator-studio, use the svelte-review skill instead.