Skip to content
Machine Learning
Skill

/official-model-admin

Create a Draft CivitaiOfficial model and version through the API, work out whether the version is API-only or needs hosted model files (and either import those from Hugging Face or walk the user through uploading them), update an existing model's description, or transfer a model

From plugin
civitai
7.3k52 skills17 agents3 commands

Claude Code

$ npx -y skills add civitai/civitai --skill official-model-admin --agent claude-code

SKILL.md

official-model-admin.SKILL.md
name: official-model-admin
description: Create a Draft CivitaiOfficial model and version through the API, work out whether the version is API-only or needs hosted model files (and either import those from Hugging Face or walk the user through uploading them), update an existing model's description, or transfer a model to CivitaiOfficial. Every description write requires the user's approval of the exact text, enforced by an approval hash. Use when setting up an official model or version for review before publishing, or when an official model's description needs to change. Called by onboard-generator-model; usable on its own.

Official Model Admin

Creates and edits models and versions on the site through the API. **It never publishes.** Everything it creates stays `Draft` until a human publishes it.

node .claude/skills/official-model-admin/model.mjs <command> [flags]
node .claude/skills/official-model-admin/model.mjs whoami     # API target, your user id, moderator check

Setup

  • It uses `CIVITAI_API_KEY` from `.claude/skills/mod-actions/.env`.
  • The key must belong to a moderator, and its scopes must cover model writes (or it must be a full-access key).
  • `CIVITAI_API_URL` defaults to `https://civitai.com`.
  • `evidence` reads the database through `postgres-query`.

Every write is a dry run unless you pass `--writable`. **Ask the user before each `--writable` call.** They write to production.

Descriptions: the user approves the exact text first

This applies to `create-model` and `update-description`.

1. Draft the HTML, usually with the `write-model-description` skill, and save it to a scratchpad file. 2. Run the command **without** `--writable`:

  • `create-model` prints the full HTML. Show the user the description itself, rendered as readable text, not a summary of it.
  • `update-description` prints a diff against the live description. Show the user that diff, and the full new text if the diff is large.

3. The dry run ends with an **approval hash**. Ask the user to approve the text **exactly as shown**. If they ask for edits, change the file and run the dry run again, which produces a new hash, then ask again. 4. Once they've approved, re-run with `--writable --approved <hash>`.

The script refuses a hash that doesn't match the current file. For an update, it also refuses if the live description has changed since the dry run. So nothing gets written that the user didn't see.

Versions: API-only or hosted weights

Every version is one of two kinds, and **the kind has to be settled before `create-version`**:

| Kind | Who runs the model | Files | `usageControl` | Examples | | --- | --- | --- | --- | --- | | `api-only` | the provider, behind its API | none; the upload wizard skips the files step | `ExternalGeneration` | Seedance, Qwen 3, Muse Image, ChatGPT Images, the MiniMax H3 API version | | `hosted-weights` | our cluster, from files on the version | required | `Download`, or `Generation` if downloads shouldn't be offered | Ideogram 4.0, LTXV 2.5, Mage Flow, the MiniMax H3 hosted version |

1. Gather evidence

node .claude/skills/official-model-admin/model.mjs evidence --ecosystem <EcosystemRecord.key> --base-model "<BaseModelRecord.name>"

It reports two things:

  • **The ecosystem's handler engines.**
  • `comfy` or `*-comfy` means hosted weights.
  • Closed-provider engines (`openai`, `google`, `seedance`, `kling`, `fal`, and so on) mean API-only.
  • Model-family engines (`wan`, `ltx2`, `flux2`, `qwen`) run either way, so they settle nothing.
  • **How existing CivitaiOfficial versions of that base model are set up.**

Neither is decisive on its own. The base model doesn't settle it, because MiniMax H3 has one version of each kind. Files don't settle it either, because some older `ExternalGeneration` versions have files attached that are never used.

For a **new ecosystem** there is no handler yet. In that case, check `@civitai/orchestration-client`:

  • a `Comfy*` input type means hosted weights;
  • a provider-specific input with a provider engine means API-only.

2. Decide with the user

Show the user the evidence and your recommendation, then ask the deciding question:

> Does the provider publish weights that we download and run (e.g. on Hugging Face), or is the model only reachable through the provider's own API?

**Never pick the kind silently**, and never pick it from the engine name alone. For hosted weights, also ask whether downloads should be offered. If not, pass `--no-download`, which gives `Generation`.

3. Create the version

node .claude/skills/official-model-admin/model.mjs create-version --model-id <id> --name "<Version name>" \
  --base-model "<BaseModelRecord.name>" --kind <api-only|hosted-weights> [--no-download] --writable
  • `--base-model` is the base model's **name** (`BaseModelRecord.name`, which is what `ModelVersion.baseModel` stores), not the ecosystem key.
  • `Unknown base model: <name>` means the constants that add the base model aren't deployed on the server the API is running on. Deploy them first.

4. Hosted weights only: get the files uploaded

Two routes. When the weights live on Hugging Face, our servers can fetch them and you attach the result yourself; otherwise the user uploads through the wizard.

From Hugging Face

Ask the user to queue the repo at **`/moderator/huggingface-import`** — paste the model URL, check the **Group name** (prefilled from the repo; it is what the batch is filed under, and nothing renames it after Import), tick the files, Import. The transfer runs server-side on a cron, so it takes as long as it takes; nothing downloads to anyone's machine. Then:

node .claude/skills/official-model-admin/model.mjs hf-imports --repo <owner/name>
node .claude/skills/official-model-admin/model.mjs attach-import --import <id> --version <id> --type Model --fp bf16 --writable

`hf-imports` lists each transferred file with its size, state, group and a sugg

Read more
@civitai
Ships withcivitai

A repository of models, textual inversions, and more

7.3k52 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-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-capture

app-capture

Deterministically drive a first-party Civitai App Block in the operator's browser and produce store-ready screenshots,…

@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…

mlflow6d29k
@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…

skills3w11k
@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…

feast9d7.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 official-model-admin.

Which coding agents can use official-model-admin?
official-model-admin 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.