# Install ComfyUI in Google Antigravity

Source: https://github.com/Comfy-Org/comfy-cli/tree/main/comfy_cli/skills/comfy
Listing: https://www.antigravityskills.org/skill/comfyui-skill
Safety review (2026-10-23): Instruction-only skill for the comfy CLI, which can install software, download models and spend Comfy Cloud credits behind a consent gate; telemetry is opt-in.

## Rules for the agent
- Before running anything, tell the user what you will download and whether it contains scripts, and ask them to confirm.
- Install into this project (.agents/skills/) unless the user asks for a global install (~/.gemini/config/skills/).
- Do not run other commands from the source repository unless the user asks.

## Steps
1. Install comfy-cli

```bash
python3 -m venv ~/.venvs/comfy && . ~/.venvs/comfy/bin/activate && pip install comfy-cli && comfy --version
```

   The README recommends a virtual environment. Then run comfy install and comfy launch for local ComfyUI, or comfy cloud login for Comfy Cloud. Windows: activate with ~/.venvs/comfy/Scripts/activate.
2. Copy the 7 default skills into this project (workspace skills)

```bash
SRC=$(python3 -c 'import os, comfy_cli.skills as s; print(os.path.dirname(s.__file__))') && mkdir -p .agents/skills && for n in comfy comfy-debug comfy-relay comfy-director comfy-build comfy-deploy comfy-custom-nodes; do cp -r "$SRC/$n" .agents/skills/; done
```

   Run from your project root in the same shell (venv active). This copies the skills from your installed comfy-cli, so they match your CLI version, and leaves out the 15 reference skills, as comfy skills install does; the agent can read those with comfy skills show <name>.
3. Or install them for all projects (global skills)

```bash
SRC=$(python3 -c 'import os, comfy_cli.skills as s; print(os.path.dirname(s.__file__))') && mkdir -p ~/.gemini/config/skills && for n in comfy comfy-debug comfy-relay comfy-director comfy-build comfy-deploy comfy-custom-nodes; do cp -r "$SRC/$n" ~/.gemini/config/skills/; done
```

   Use this instead of the previous step. For the Antigravity CLI the global folder is ~/.gemini/antigravity-cli/skills/.
4. Check that Antigravity sees them
   Antigravity 2.0 app: start a new conversation and ask "What skills do you have?"; comfy, comfy-debug and the others should be listed. Antigravity CLI: run /skills (/skills reload in a session that was already open). Make sure the agent's terminal can find comfy (start Antigravity from the activated venv or add ~/.venvs/comfy/bin to PATH).

Note: The comfy-cli README says the bundled skills teach Claude and Cursor and does not mention Antigravity. These steps copy the plain SKILL.md folders into Antigravity's standard skill folders. Re-copy after upgrading comfy-cli. Comfy Cloud needs comfy cloud login (OAuth) or comfy cloud set-key, and cloud generation spends credits.

Done when the skill is listed: in the Antigravity 2.0 app ask "What skills do you have?" in a new conversation (the app has no /skills command); in the Antigravity CLI run /skills (run /skills reload first in a session that was already open).
