Agent skill

Civitai

by artokun in artokun/comfyui-mcp

Discover Civitai models with the BUILT-IN downloadmodel action:"searchcivitai" and install/generate them locally.

MITAuto-check passedAI & LLM Engineering

Install Civitai

skills CLI
$ npx skills add artokun/comfyui-mcp --skill civitai -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install artokun/comfyui-mcp civitai --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/artokun/comfyui-mcp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugin/skills/civitai .claude/skills/civitai && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
civitai
GitHub stars
803
Token cost
~1.1k tokens
SKILL.md length
446 words
Files
1
Skills in repo
42
Repo updated
First seen
Licence
MIT

At a glance

Discover Civitai models with the BUILT-IN downloadmodel action:"searchcivitai" and install/generate them locally.

  • Works in 4 steps: download_model({ action:… → Present the top 3 to 5 with name,… → download_model({ action:… → …
  • Tasks that involve Diffusion and image models
  • SKILL.md covers The built-in flow (default path), Recipes, Optional: the official Civitai… and See also, plus 1 more section
  • Calls claude; reaches mcp.civitai.com; needs CIVITAI_API_TOKEN

What it does

Civitai is an agent skill from artokun/comfyui-mcp. Discover Civitai models with the BUILT-IN downloadmodel action:"searchcivitai" and install/generate them locally. Find a checkpoint/LoRA/embedding on Civitai, download it into ComfyUI, and use its trigger words. Optionally pair the official Civitai MCP for community features (images browsing, posting, collections).

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering Diffusion and image models, Fine-tuning and Embeddings. It works with Model Context Protocol and ComfyUI. The repository describes itself as: Local-first, agent-native control plane for ComfyUI — MCP server + sidebar agent that generates images, video & audio, authors and runs workflows, and edits your live graph in… The licence is MIT.

When your agent uses it

  • Tasks that involve Diffusion and image models
  • Tasks that involve Fine-tuning
  • Tasks that involve Embeddings

Example prompts

  • “searchcivitai”
  • “/civitai”

Requirements

  • A credential in CIVITAI_API_TOKEN
  • A credential in YOUR_CIVITAI_API_KEY

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

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

What it can do on your machine

Read from SKILL.md and the folder at commit 6ad6fc0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • claude

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • mcp.civitai.com

    Also links to:

    • civitai.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • CIVITAI_API_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Civitai loads about 1.1k tokens when it runs. Until then it costs about 82 tokens; SKILL.md has 446 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~82
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from artokun/comfyui-mcp at commit 6ad6fc0, republished under its MIT licence (© artokun). 446 words, ~1,073 tokens.

Download SKILL.mdSave it as .claude/skills/civitai/SKILL.md (or your agent's skills folder).
name
civitai
description
Discover Civitai models with the BUILT-IN download_model action:"search_civitai" and install/generate them locally. Find a checkpoint/LoRA/embedding on Civitai, download it into ComfyUI, and use its trigger words. Optionally pair the official Civitai MCP for community features (images browsing, posting, collections).

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.

"Download this Civitai page for me" (user pastes a URL)

  • Parse the modelVersionId from the URL if present; otherwise pass the model id from the URL to action:"download_civitai" (it resolves the latest version). A raw civitai.com/api/download/... URL also works via action:"download" with CIVITAI_API_TOKEN set.
Show full SKILL.md (148 more words)Show less

Optional: the official Civitai MCP (community surface)

For features beyond search and install (browsing example images and their generation params, collections, posting, reviews, bounties), pair the official remote server. It is no longer auto-bundled; add it once:

bash
claude mcp add --transport http civitai https://mcp.civitai.com/mcp \
  --header "Authorization: Bearer YOUR_CIVITAI_API_KEY"

Then mcp__civitai__* tools appear alongside comfyui-mcp's. Its discovery results hand off identically (modelVersions[].id → action:"download_civitai").

That server also exposes write/social tools (post, comment, review, DM, follow). Those publish on the user's behalf, so show what you're about to post and get an explicit yes first. This skill covers discovery, local install, and generation; don't post or message without being asked.

See also

  • model-registry for curated direct download URLs (HF + Civitai notes)
  • model-compatibility for base-model / VAE / CLIP pairing (why a LoRA won't load)
  • prompt-engineering because Civitai image params are a prompt goldmine

Sources

© artokun, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugin/skills/civitai of artokun/comfyui-mcp.

Open the folder on GitHubat commit 6ad6fc0

Compare with similar skills

Civitai next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Civitai compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Civitai this skillartokun/comfyui-mcp803—~1.1kAutomated safety check: PassMIT
Setupguaardvark/guaardvark258—~1.2kAutomated safety check: PassMIT
ComfyComfy-Org/comfy-skills222—~1.4kAutomated safety check: PassMIT
Workflow Assistantfilliptm/ComfyUI_FL-MCP127—~3.6kAutomated safety check: PassMIT
Comfyui Skill OpenclawHuangYuChuh/ComfyUI_Skills_OpenClaw413—~2.7kAutomated safety check: PassApache-2.0
ComfyUI Custom Node BuilderConstantineB6/comfy-pilot230—~897Automated safety check: PassMIT

Similar skills

  • Setup

    guaardvark/guaardvark

    Connect this agent to a running Guaardvark (self-hosted AI studio) and check what it can do right now.

    258 GitHub stars~1.2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Comfy

    Comfy-Org/comfy-skills

    Generate images, video, audio, and 3D with Comfy Cloud — search hundreds of models and workflow templates, run custom ComfyUI workflows, and manage generation jobs through the hosted Comfy Cloud MCP…

    222 GitHub stars~1.4k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Workflow Assistant

    filliptm/ComfyUI_FL-MCP

    A skill your agent uses when working with ComfyUI workflows through FL-MCP or similar MCP tools: inspect, explain, create, edit, debug, compact, validate, queue, screenshot, or organize node graphs…

    127 GitHub stars~3.6k tokensUpdated 26 days ago
    Agent WorkflowsAuto-check passed
  • Comfyui Skill Openclaw

    HuangYuChuh/ComfyUI_Skills_OpenClaw

    Run registered ComfyUI workflows through the fast comfyui-skill CLI, and use the official local Comfy MCP for live template, node, model, validation, and orchestration capabilities.

    413 GitHub stars~2.7k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • ComfyUI Custom Node Builder

    ConstantineB6/comfy-pilot

    Helps an agent write ComfyUI custom nodes in Python, including wrapping an existing script, mapping data types and handling image batches.

    230 GitHub stars~897 tokensUpdated 7 mo ago
    AI & LLM EngineeringAuto-check passed
  • Cast

    guaardvark/guaardvark

    Build consistent characters, environments and props in Guaardvark's Cast Library and train LoRAs for them locally (reference photos → vision bible → sample plan → approved samples → training).

    258 GitHub stars~673 tokensUpdated today
    AI & LLM EngineeringAuto-check passed

More from artokun/comfyui-mcp

All 42 skills in this repo
  • AI Toolkit Trainer

    artokun/comfyui-mcp

    Train custom LoRAs with ostris AI-Toolkit. An agent skill from artokun/comfyui-mcp.

    803 GitHub stars~2.7k tokensUpdated 6 days ago
    Auto-check passed
  • Anima Base

    artokun/comfyui-mcp

    Anime/illustration text-to-image (ANIMA 1.0, ~2B Cosmos DiT).

    803 GitHub stars~4k tokensUpdated 6 days ago
    Auto-check passed
  • Color Correction

    artokun/comfyui-mcp

    Diagnose and fix video/image color OBJECTIVELY with the getimage (action:"analyzecolor") tool (scopes/stats such as black/white points, contrast, saturation, clipping, cast) instead of eyeballing a…

    803 GitHub stars~2.4k tokensUpdated 6 days ago
    Auto-check passed
  • Comfyui Frontend Extensions

    artokun/comfyui-mcp

    Authoring ComfyUI v2 frontend extensions with @comfyorg/extension-api, covering defineNode/defineExtension/defineWidget, shell UI (sidebar tabs, commands, hotkeys), typed events, and handles.

    803 GitHub stars~5.4k tokensUpdated 6 days ago
    Auto-check passed
  • Comfyui Launch Flags

    artokun/comfyui-mcp

    Pick the right ComfyUI startup flags for VRAM, attention, caching, and speed.

    803 GitHub stars~3.1k tokensUpdated 6 days ago
    Auto-check passed
  • Installer Packs

    artokun/comfyui-mcp

    A skill your agent uses when installing a model family from an installer pack, or when building/deriving a new pack from an upstream installer or a workflow JSON.

    803 GitHub stars~952 tokensUpdated 6 days ago
    Auto-check passed

Questions about Civitai

What does Civitai do?

Discover Civitai models with the BUILT-IN downloadmodel action:"searchcivitai" and install/generate them locally. Civitai is an agent skill from artokun/comfyui-mcp. Discover Civitai models with the BUILT-IN downloadmodel action:"searchcivitai" and install/generate them locally.

When should I use Civitai?

Civitai fits situations like: tasks that involve Diffusion and image models; tasks that involve Fine-tuning; tasks that involve Embeddings.

How do I install Civitai in Claude Code?

Run `npx skills add artokun/comfyui-mcp --skill civitai -a claude-code`. Or copy the skill folder (plugin/skills/civitai in artokun/comfyui-mcp) into .claude/skills/civitai in your project. Claude Code loads it when a task matches its description.

How do I install Civitai in Codex?

Run `npx skills add artokun/comfyui-mcp --skill civitai -a codex`. Or copy the skill folder (plugin/skills/civitai in artokun/comfyui-mcp) into .agents/skills/civitai in your project. Codex loads it when a task matches its description.

Can I use Civitai in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add artokun/comfyui-mcp --skill civitai -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/civitai, .gemini/skills/civitai, .github/skills/civitai and .opencode/skills/civitai in your project.

What does Civitai need to run?

Going by SKILL.md and its folder, Civitai needs the command-line tools its instructions call (claude) and credentials named CIVITAI_API_TOKEN. Our summary lists: A credential in CIVITAI_API_TOKEN; A credential in YOUR_CIVITAI_API_KEY.

Does Civitai access the network?

SKILL.md names 2 domains. In commands or code: mcp.civitai.com; the agent is likely to contact it when it follows the instructions. As links in the text: civitai.com. This is read from the text; nothing was executed.

Is Civitai safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Civitai use?

Civitai is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Civitai use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Civitai?

Skills that share tags, products or a category with Civitai: Setup (guaardvark/guaardvark, 258 stars), Comfy (Comfy-Org/comfy-skills, 222 stars), Workflow Assistant (filliptm/ComfyUI_FL-MCP, 127 stars) and Comfyui Skill Openclaw (HuangYuChuh/ComfyUI_Skills_OpenClaw, 413 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Civitai?

artokun (a GitHub user) maintains it in artokun/comfyui-mcp, which has 803 GitHub stars. The repository holds 42 skills in this directory. The repository was last updated on October 5, 2026.

Source: artokun/comfyui-mcp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.