Agent Skills › civitai/civitai › onboard-generator-model

onboard-generator-model

GitHub

编排新生成器模型上线流程,协调多个子技能完成从环境配置、描述编写到部署发布的各阶段任务。

.claude/skills/onboard-generator-model/SKILL.md civitai/civitai

Trigger Scenarios

添加新的生成器模型 更新官方模型的版本

Install

npx skills add civitai/civitai --skill onboard-generator-model -g -y
More Options

Non-standard path

npx skills add https://github.com/civitai/civitai/tree/main/.claude/skills/onboard-generator-model -g -y

Use without installing

npx skills use civitai/civitai@onboard-generator-model

指定 Agent (Claude Code)

npx skills add civitai/civitai --skill onboard-generator-model -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": "onboard-generator-model",
    "description": "Take a new model from nothing to mod-testable in the live generator, then hand off for launch. Orchestrates the child skills in order — add-ecosystem, write-model-description, official-model-admin, generation-coverage, generation-gate-rules, add-generation-support, add-prompt-enhancement-guide and generator-launch — and stops at each deploy. Use when onboarding a new generator model, or a new version of an official one."
}

Onboard Generator Model

This skill only orchestrates. It decides which child skills run, in what order, and where to stop and wait for a deploy. Each child skill owns its own commands, rules and safeguards, so read a child's SKILL.md when you reach its phase.

The reasoning behind the order is in docs/features/generator-model-onboarding.md.

End state: a Draft version, owned by CivitaiOfficial, that moderators can generate with on the live site and nobody else can see. Then you hand the user the launch instructions. Nothing in this flow publishes.

Child skills

Phase Skill Role
1 add-ecosystem Ecosystem and base-model records in the constants
2 write-model-description Draft or review the model description
2, 3 official-model-admin Create the Draft model and version, and write the description once the user approves it
3 generation-coverage EcosystemCheckpoints row, plus a cache bust
4 generation-gate-rules Hide it from everyone except moderators
5 add-generation-support Wire it into both generator lanes
6 add-prompt-enhancement-guide Prompt-enhancement guide for a new ecosystem
7, 8 generator-launch Readiness check, then the post-deploy instructions

Supporting skills: deploy-status (the deploy stops), postgres-query (used by generation-coverage), mod-actions (the API key every script uses).

Phase 0 — Classify

Ask for the model name and a reference link, plus the Civitai model URL if the model already exists.

First work out the kind: api-only (the provider runs it, no files) or hosted-weights (we run it from files on the version). Settle it with the "Versions: API-only or hosted weights" steps in official-model-admin: gather the evidence, then have the user confirm. Never guess it. Settle the kind before the case, because the kind decides the case.

Then work out the case:

Case Phases Deploys
A. New ecosystem 1 → deploy → 2–7 → deploy → 8 2
B. New base model in an existing ecosystem 1 → deploy → 2–5, 7 → deploy → 8 2
C. New model, existing base model 2–5, 7 → deploy → 8 1
D. New version of an existing official model 2–5, 7 → deploy → 8 1

Choosing the case: new ecosystem, new base model, or neither

Adding a base model or an ecosystem costs a second deploy and is hard to undo once resources are published against it. So the default is neither. Go down this list and take the first rule that matches:

  1. API-only, and the model's line already has an ecosystem → C or D. Add a new version under the existing base model. Don't add a base model or an ecosystem: nobody trains resources against an API-only model, so there's nothing compatibility could apply to. For example, later Nano Banana releases stay under the one Nano Banana base model.
  2. API-only, and it's the first model from its line → A. It still needs an ecosystem to generate under. Name it for the line, not the release (MuseImage, not MuseImage1), so later releases fit under rule 1.
  3. Hosted weights, and existing resources work on it → B. Existing resources (LoRAs, embeddings and other addons) in the ecosystem run on the new checkpoint, so add a base model inside the existing ecosystem. Example: SDXL 0.9 → SDXL 1.0 → SDXL 1.0 LCM, all in ECO.SDXL. If the new checkpoint is a drop-in release that creators won't need to tell apart, prefer C.
  4. Hosted weights, and existing resources do not work on it → A. Create a new versioned ecosystem. Example: LTXV → LTXV2 → LTXV 2.3 → LTXV 2.5, each its own ecosystem. Apply the compatibility test in add-ecosystem ("The test: does this need its own ecosystem?"). It judges compatibility by the weights actually shipped, not the vendor's family name, and when you're unsure it says to split.

Show the user which rule matched and the evidence for it: the kind, whether the line already has an ecosystem, and for hosted weights, why existing resources do or don't work on it. The user confirms the case. Never guess it, just as you never guess the kind.

The kind also changes Phase 3. A hosted-weights version adds a stop for its files — a server-side Hugging Face import, or a browser upload by the user.

Show the user the case, the kind, the phases and where the run will stop, for deploys and for uploads. Get their confirmation before continuing.

Phases

  1. Base model (A, B). Run add-ecosystem. For B, it adds only the base-model record.

    • Decline its offer to chain add-generation-support: generation support needs the version ID, and that doesn't exist yet.
    • Put this in its own PR.
    • Stop until it is deployed to production. Check with deploy-status. Phase 3 can't create the version until the server knows the base model.
  2. Description (every case). write-model-description drafts a new description, or reviews the live one for a new version (skip this if nothing needs to change). Then official-model-admin writes it with create-model or update-description. The user approves the exact text before anything is written. Follow that skill's approval steps; don't shortcut them.

  3. Version and coverage.

    1. official-model-admin create-version --kind <kind>, using the kind from Phase 0.
    2. Hosted weights only: get the files onto the version. If the weights are on Hugging Face, ask the user to queue the repo at /moderator/huggingface-import, then attach each transferred file with official-model-admin attach-import — see "From Hugging Face" in that skill's step 4; you choose the file type, so read the filenames rather than guessing. Otherwise give the user the upload link create-version prints and stop until they say the upload is done. Either way, then run official-model-admin files --version <id> until it reports READY. If it reports NOT READY, pass its reason on to the user.
    3. generation-coverage add, labelled with the base model name.
  4. Gate, before the deploy. generation-gate-rules add:

    • case A: with --ecosystem <key>;
    • cases B, C and D: with --version <id>.
  5. Generation support. Run add-generation-support with the version ID from Phase 3. Both lanes, including its step 5g.

  6. Prompt enhancement (A only, image and video). Run add-prompt-enhancement-guide.

  7. Ship and test.

    • Run the typecheck and the tests that cover the change (named in add-generation-support).
    • Open a PR when the user asks.
    • After the deploy, run generator-launch check. Continue only when the version is Draft, covered, and canGenerate: true for you. Then ask the user to try generating with it on the live site.
  8. Hand off. Run generator-launch launch and give the user its output: publish, then remove the gate. Don't do those steps yourself.

Rules for the whole run

  • Ask before every --writable call. Each one writes to production.
  • Never continue past a deploy stop on the assumption that the deploy has probably landed. Check.
  • Never publish.
  • End the run by listing every production write it made: models and versions created, descriptions written, coverage rows, and gate-rule changes.

Version History

  • c706944 Current 2026-09-23 10:06

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/form-graph-port/SKILL.md
.claude/skills/freshdesk/SKILL.md
.claude/skills/generation-coverage/SKILL.md
.claude/skills/generation-gate-rules/SKILL.md
.claude/skills/generator-launch/SKILL.md
.claude/skills/listing-media/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/svelte-review/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/add-trainer-model/SKILL.md
.claude/skills/app-capture/SKILL.md
.claude/skills/app-taste/SKILL.md
.claude/skills/ecosystem-seo-page/SKILL.md

Metadata

Files
0
Version
b735b6b
Hash
1dc98161
Indexed
2026-09-23 10:06

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-28 23:38
浙ICP备14020137号-1