civitai

civitai is a skill for Claude Code from artokun/comfyui-mcp. It costs 76 tokens per session (1,137 once invoked), scanned A, original, MIT.

A workflow for finding models on Civitai, a community website that shares AI models, then downloading and using them in ComfyUI. It covers checkpoints, LoRAs, embeddings, VAEs, ControlNets, and other model types.

In plain words
What is it for?
Searching Civitai, filtering by model family, downloading model files, finding trigger words, listing installed models, and using them in ComfyUI generation workflows.
Why use it?
It connects model discovery, installation, and use, while helping match a downloaded model to the checkpoint family and folder it requires.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the comfy plugin — 42 skills, 11 commands, 4 agents, 2 hooks shipped together

Good fit Searching Civitai, filtering by model family, downloading model files, finding trigger words, listing installed models, and using them in ComfyUI generation workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/artokun/comfyui-mcp/civitai
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add artokun/comfyui-mcp --skill civitai
Clone the repo
git clone --depth 1 https://github.com/artokun/comfyui-mcp

Made for: Claude Code.

Or install comfy, the plugin that ships this one along with the rest of its 42 skills, 11 commands, 4 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for civitai

README.md
[![agentmods](https://agentmods.dev/badge/skills/artokun/comfyui-mcp/civitai/github.svg)](https://agentmods.dev/skills/artokun/comfyui-mcp/civitai)
Your own site
<a href="https://agentmods.dev/skills/artokun/comfyui-mcp/civitai"><img src="https://agentmods.dev/badge/skills/artokun/comfyui-mcp/civitai/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for civitai

Your own site · 80×15
<a href="https://agentmods.dev/skills/artokun/comfyui-mcp/civitai"><img src="https://agentmods.dev/badge/skills/artokun/comfyui-mcp/civitai.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,137 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.01137
Opus 5 $0.00038 $0.00568
Sonnet 5 $0.00015 $0.00227
Haiku 4.5 $0.00008 $0.00114

Measured 11d ago against content hash 75d1b62cbd44, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

civitai scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/civitai/SKILL.md · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Civitai + comfyui-mcp

comfyui-mcp has native Civitai search built in (download_model action:"search_civitai") plus the local half of the loop: download, wire, queue, tag. The full flow (find, install, generate) needs no other server and no API key, and works on every backend, including small local models behind the compact router.

The built-in flow (default path)

download_model({ action: "search_civitai", query, types: ["LORA"], base_models: ["Flux.1 D"] })
        │                    each hit: model_id · model_version_id · trigger words
        ▼
download_model({ action: "download_civitai", model_version_id, target_subfolder: "loras" })
        │
        ▼
list_local_models({ action: "list" })  →  panel_add_node loader / generate_image   # use it
  • ALWAYS filter base_models when the user's checkpoint family is known. A Flux LoRA will not load on an SDXL checkpoint (see model-compatibility). CivitAI labels: Flux.1 D, SDXL 1.0, SD 1.5, Pony, Illustrious, Wan Video.
  • target_subfolder must match the model type: checkpoints, loras, vae, controlnet, embeddings, upscale_models, and so on.
  • Results are SFW-only by default (nsfw: true to opt in).
  • Each hit carries trigger words. Put them in the prompt after installing.
  • Prefer model_version_id over model_id. A Civitai page can list several versions and the user usually means a specific one.

Search needs no API key. CIVITAI_API_TOKEN (from civitai.com/user/account) unlocks gated/early-access downloads and gated search results. Set it once, in panel Settings under "Set CivitAI token…" or in env.

Recipes

"Find me a good anime LoRA for Flux and install it"

  1. download_model({ action: "search_civitai", query: "anime style", types: ["LORA"], base_models: ["Flux.1 D"] }).
  2. Present the top 3 to 5 with name, creator, base model, downloads, and the version id. Let the user pick.
  3. download_model({ action: "download_civitai", model_version_id, target_subfolder: "loras" }).
  4. In the panel, panel_add_node a LoraLoader, panel_set_widget the lora_name, wire it between checkpoint and sampler, and use the hit's trigger words in the prompt. Headless: generate_image(action="image") / build the workflow.

Read the full file on GitHub · 87 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 87 lines · 76 tokens per session scan A 75d1b62cbd44

Subscribe to this mod's changes

civitai is a skill published in the GitHub repository artokun/comfyui-mcp (739 stars, last pushed yesterday), licensed MIT. It adds 76 tokens to every session and 1,137 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

minimax-h3

Use when writing or debugging prompts for MiniMax H3 (Hailuo 3) video-with-audio generation, running the open weights locally in ComfyUI, choosing a quant or an acceleration LoRA for the VRAM you have, wiring reference-to-video with images, video or audio, or when a generated clip produces gibberish speech, drifts off…

SlavaSexton/ComfyUI-Agent-Kit · 102 tokens

seedance

Use when writing or debugging prompts for ByteDance Seedance video models (Seedance 2.5, 2.0, 2.0 Mini, 1.5 Pro, 1.0) on Dreamina, Jimeng AI, Doubao, BytePlus ModelArk or ComfyUI, when a generated video drifts off the reference face, grows unwanted subtitles or watermarks, duplicates a character, jumps at an extension…

SlavaSexton/ComfyUI-Agent-Kit · 105 tokens

Prompt craft for ComfyUI generation

Use when writing prompts for ComfyUI image or video models: choosing tags vs literary format, fixing composition and anatomy artifacts, picking samplers per LoRA, and writing short movement prompts for video. Neutral examples only.

howdeploy/deploychan_mcp · 52 tokens

emotion-to-camera-language

A guide for turning vague visual feelings—such as cinematic, atmospheric, elegant, or healing—into concrete image or video prompt details. It uses lighting direction, depth of field, camera position, and the subject’s state.

L-Trunks/ai-film-skills · 202 tokens

comfyui-lora-training

Prepare datasets and configure LoRA training for character consistency. Covers FLUX (AI-Toolkit, SimpleTuner, FluxGym) and SDXL (Kohyass) training with step-by-step guidance. Use when training custom character LoRAs.

MCKRUZ/ComfyUI-Expert · 58 tokens

comfyui-prompt-engineer

Craft model-specific prompts optimized for the target checkpoint and identity method. Handles FLUX, SDXL, SD1.5, and Wan video models with proper syntax, quality tags, and negative prompts. Use when generating or refining prompts for ComfyUI workflows.

MCKRUZ/ComfyUI-Expert · 60 tokens