Agent Skillscivitai/civitai › svelte-review

svelte-review

GitHub

对 SvelteKit 应用代码片段执行标准化审查,协调正确性、惯用法和抽象三个子代理,合并并去重发现的问题。若涉及迁移,额外进行功能一致性检查,确保提交前质量达标。

.claude/skills/svelte-review/SKILL.md civitai/civitai

Trigger Scenarios

完成 Svelte 功能开发后 要求审查 Svelte 应用工作时

Install

npx skills add civitai/civitai --skill svelte-review -g -y
More Options

Non-standard path

npx skills add https://github.com/civitai/civitai/tree/main/.claude/skills/svelte-review -g -y

Use without installing

npx skills use civitai/civitai@svelte-review

指定 Agent (Claude Code)

npx skills add civitai/civitai --skill svelte-review -a claude-code -g -y

安装 repo 全部 skill

npx skills add civitai/civitai --all -g -y

预览 repo 内 skill

npx skills add civitai/civitai --list

SKILL.md

Frontmatter
{
    "name": "svelte-review",
    "description": "Run the three SvelteKit review agents (correctness, Svelte 5 idiom + UI conventions, abstraction) over a feature segment in apps\/moderator, apps\/auth or apps\/creator-studio, and consolidate their findings. Use before calling a segment done, or when asked to review Svelte app work."
}

SvelteKit segment review

The standard pre-completion review for the SvelteKit apps. A segment is not done until this has run and its findings are resolved.

The conventions being enforced are docs/svelte-app-standard.md plus the reviewed app's own CLAUDE.md.

These three lanes 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.

1. Scope the segment

Work out exactly what is under review and say so before spawning anything:

git diff --stat main...HEAD -- apps/<app>
git status --short

A "segment" is one slice of work — a page, a panel group, a service and its route. If the diff spans several unrelated slices, review them one at a time; findings from a mixed diff are hard to act on. Include uncommitted changes: the review exists to run before the commit.

Name the app. All three agents take the app directory as their scope, and the UI half of the idiom review differs per app — apps/auth uses neither @civitai/ui nor text-dark-2 yet.

2. Fan out

Agent Reviews
svelte-correctness-review Logic, data shape, auth scope, failure paths
svelte-idiom-review Svelte 5 idiom + the shared UI/styling conventions
svelte-abstraction-review Duplication, missing components, placement

Give each the same scope: the app directory, the file list, and any context it can't recover from the code — what the segment is meant to do, and what was deliberately left out.

Running them serially is the safe default. Three at once is heavy, and on one occasion coincided with the session dying mid-review; serial has been reliable. Spawn them together only when the segment is small.

The three overlap at the edges by design; deduplicate at step 4.

3. If the segment was PORTED, add a fourth pass

The three above compare the code to itself and to the standard. None of them opens the source, so all three pass cleanly over a faithful implementation of the wrong thing.

If this segment was ported from Retool or from the main Next.js app, run one more agent whose only question is: walk the source item by item — is each behaviour present, and does it match? Give it the source of truth and the built files. For Retool that is docs/moderator-app/retool-exports/<app>.md, which carries each query's SQL — it lands with the Retool migration branch, so it may not exist yet on main.

This is not optional pedantry: on one page the three code reviews returned 14 findings and missed four absent capabilities that the fidelity pass found in a single run.

4. Consolidate

Merge into one ranked list. Do not relay three reports.

  • Drop what you can disprove. Read the code for anything that sounds wrong; agents produce plausible-but-false findings, and a fix applied to a non-bug is a new bug.
  • Deduplicate across agents — the same defect often surfaces as correctness and idiom.
  • Rank by consequence: an operator shown false information, or an action that doesn't do what the screen says, outranks everything. Style findings go last.
  • Separate fix now from note and move on, and put the second group somewhere durable rather than in chat where it evaporates.

Present the list and ask before applying fixes, unless the invoking request already said to fix them.

5. Close out

pnpm --filter ./apps/<app> run typecheck   # svelte-check alone; read WARNING lines too

Use check only if the route tree changed (added/removed/renamed a +page/+server/+layout), which is the only time the generated $types go stale. Never run build as a check.

Then look at the page in a browser. Typecheck passes on plenty of pages that render blank — several of the worst bugs in these apps were invisible to it.

Do not commit unless asked.

Version History

  • 4214ecb Current 2026-08-20 18:49

Same Skill Collection

.claude/skills/add-ecosystem/SKILL.md
.claude/skills/add-generation-support/SKILL.md
.claude/skills/add-prompt-enhancement-guide/SKILL.md
.claude/skills/add-training-support/SKILL.md
.claude/skills/axiom/SKILL.md
.claude/skills/browser-automation/SKILL.md
.claude/skills/civitai-orchestration/SKILL.md
.claude/skills/civitai-review/SKILL.md
.claude/skills/cleanup/SKILL.md
.claude/skills/clickhouse-query/SKILL.md
.claude/skills/clickup/SKILL.md
.claude/skills/cloudflare/SKILL.md
.claude/skills/component-preview/SKILL.md
.claude/skills/deploy-status/SKILL.md
.claude/skills/dev-server/SKILL.md
.claude/skills/discord/SKILL.md
.claude/skills/feature-walkthrough/SKILL.md
.claude/skills/feedback-triage/SKILL.md
.claude/skills/flipt/SKILL.md
.claude/skills/freshdesk/SKILL.md
.claude/skills/meilisearch-admin/SKILL.md
.claude/skills/metabase/SKILL.md
.claude/skills/mod-actions/SKILL.md
.claude/skills/moderator-page-migration/SKILL.md
.claude/skills/postgres-query/SKILL.md
.claude/skills/quick-mockups/SKILL.md
.claude/skills/redis-inspect/SKILL.md
.claude/skills/retool-migration/SKILL.md
.claude/skills/retool-query/SKILL.md
.claude/skills/scaffold-civitai-app/SKILL.md
.claude/skills/stripe/SKILL.md
.claude/skills/ux-design/SKILL.md
.claude/skills/write-model-description/SKILL.md
.claude/skills/xguard-manager/SKILL.md
apps/event-engine/.claude/skills/agent-review/SKILL.md
apps/event-engine/.claude/skills/clickhouse-query/SKILL.md
apps/event-engine/.claude/skills/clickup/SKILL.md
apps/event-engine/.claude/skills/postgres-query/SKILL.md
apps/event-engine/.claude/skills/redis-inspect/SKILL.md
.claude/skills/ecosystem-seo-page/SKILL.md

Metadata

Files
0
Version
dc828b5
Hash
17d1875d
Indexed
2026-08-20 18:49

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 05:16
浙ICP备14020137号-1 $Гость$