Skip to content
Skills Library
AI & agents · Automation

google-colab-runner

/google-colab-runner

Run video-director productions on Google Colab. It packages a manifest into a self-contained Google Colab bundle (a generated .ipynb that installs ComfyUI and custom nodes at pinned commits, downloads the open-weights models with the user's own Hugging Face token from Google Colab secrets, renders every shot, detects the GPU tier and collects outputs to Drive or a zip), or it lets the director drive a running Google Colab ComfyUI through a tunnel URL with a compute-unit estimate, the spend gate, a hard cap, drop-and-resume and teardown. Use it when the user has no local GPU, or asks to run on

Licence
MIT
Last repository change
30.10.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
15
Scripts
8
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 30.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 8 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/colab.py, scripts/comfy_client.py, scripts/notebook.py, scripts/ui_to_api/convert.mjs, scripts/ui_to_api/validate_api.py, templates/runner.py, tests/mock_comfy.py, tests/test_static.py

What it does and when to use it

Run video-director productions on Google Colab. It packages a manifest into a self-contained Google Colab bundle (a generated .ipynb that installs ComfyUI and custom nodes at pinned commits, downloads the open-weights models with the user's own Hugging Face token from Google Colab secrets, renders every shot, detects the GPU tier and collects outputs to Drive or a zip), or it lets the director drive a running Google Colab ComfyUI through a tunnel URL with a compute-unit estimate, the spend gate, a hard cap, drop-and-resume and teardown. Use it when the user has no local GPU, or asks to run on

Original author description

Run video-director productions on Google Colab. It packages a manifest into a self-contained Google Colab bundle (a generated .ipynb that installs ComfyUI and custom nodes at pinned commits, downloads the open-weights models with the user's own Hugging Face token from Google Colab secrets, renders every shot, detects the GPU tier and collects outputs to Drive or a zip), or it lets the director drive a running Google Colab ComfyUI through a tunnel URL with a compute-unit estimate, the spend gate, a hard cap, drop-and-resume and teardown. Use it when the user has no local GPU, or asks to run on

How it works

  1. Files
  2. Rules
Original SKILL.md headings · 36 lines, 532 words
SKILL.md preview
---
name: google-colab-runner
description: Run video-director productions on Google Colab. It packages a manifest into a self-contained Google Colab bundle (a generated .ipynb that installs ComfyUI and custom nodes at pinned commits, downloads the open-weights models with the user's own Hugging Face token from Google Colab secrets, renders every shot, detects the GPU tier and collects outputs to Drive or a zip), or it lets the director drive a running Google Colab ComfyUI through a tunnel URL with a compute-unit estimate, the spend gate, a hard cap, drop-and-resume and teardown. Use it when the user has no local GPU, or asks to run on Google Colab.
---

# google-colab-runner

Two modes, both from `video-director`:

| mode | command | who presses Run | QA loop |
|---|---|---|---|
| **package** | `direct.py package --target google-colab <manifest>` | the user, in Google Colab | after the run: `colab.py ingest`, then still-qa / shot-qc locally |
| **orchestrate** | `direct.py run <manifest> --target google-colab --url <tunnel>` | the user starts the notebook in `orchestrate` mode; the director submits every job | live: the director's normal judge, retry and continuity loop |

Nothing here starts a Google Colab session or spends compute units by itself, and no credential is read or stored. The Hugging Face token is the user's own, read at run time inside Google Colab from the secret `HF_TOKEN`.

## Files
| path | what |
|---|---|
| `scripts/colab.py` | `estimate`, `package`, `orchestrate`, `teardown`, `ingest` (stdlib only) |
| `scripts/notebook.py` | builds the nbformat-4 notebook and the bundle README |
| `templates/runner.py` | the bundle runner: GPU detection, tier pick, upload, submit, poll, download, resumable `state.json` |
| `scripts/comfy_client.py` | copy of comfyui-connect's client, shipped inside every bundle |
| `references/models.json` | every model file the API workflows load: target folder, pinned Hugging Face URL, size, gated flag, licence note |
| `references/custom-nodes.lock.json` | ComfyUI and node-pack commits the notebook checks out |
| `references/gpu-tiers.json` | T4 / L4 / A100 / H100 → tier, compute units per hour, speed factor (unverified) |
| `references/google-colab.md` | the runbook: step by step for an agent |
| `references/ui-to-api.md` + `ui-to-api.report.json` | how the Comfy-Org UI templates were converted to API format, and the result per template |
| `scripts/ui_to_api/` | the converter (headless ComfyUI frontend `graphToPrompt`) and the `/object_info` validator |
| `tests/mock_comfy.py`, `tests/test_static.py` | stdlib mock ComfyUI + VLM and the static end-to-end tests |

## Rules
1. **Ask before any start.** Show `colab.py estimate` (session minutes and compute units, including setup and the collect-and-stop reserve) and wait for a yes. `orchestrate` stops at the `spend` gate unless it is `approved`, even when the manifest says `auto`.
2. **Hard cap.** `orchestrate` refuses to start without a compute-unit cap (`target.budget.max_credits` or `--max-cu`) and refuses an estimate over it. During the run, the wall-clock meter plus the reserve is checked before every render; at the cap it logs `cap_hit` and stops. The notebook watchdog enforces `MAX_SESSION_MINUTES` on the runtime side.
3. **Tear down.** Always end by offering `colab.py teardown --url <tunnel>` (the watchdog releases the runtime), or use `--teardown auto|on-cap`. Tell the user that Google Colab bills while the runtime is connected.
4. **Drops resume.** A dropped session exits with code 5 and the manifest saved. The user restarts the notebook and gives the new URL; re-running the same command resumes. Finished outputs stay on the user's machine and are re-uploaded to the new session.
5. **Open weights and licences.** `models.json` carries each file's licence note. LTX-2 family weights are under the Lightricks LTX-2 Community License (not OSI). The one UI template that needs a closed hosted API node (`GeminiImage2Node`) is excluded.

Exit codes: 0 done, 3 waiting at a gate, 4 stopped at a stage (awaiting approval or blocked), 5 Google Colab ComfyUI unreachable or dropped, 6 refused by the spend cap.
Files in this package (15)
  • SKILL.md 4 KB
  • references/custom-nodes.lock.json 3 KB
  • references/google-colab.md 5 KB
  • references/gpu-tiers.json 1 KB
  • references/models.json 64 KB
  • references/ui-to-api.md 6 KB
  • references/ui-to-api.report.json 6 KB
  • scripts/colab.py 25 KB
  • scripts/comfy_client.py 8 KB
  • scripts/notebook.py 14 KB
  • scripts/ui_to_api/convert.mjs 1 KB
  • scripts/ui_to_api/validate_api.py 2 KB
  • templates/runner.py 6 KB
  • tests/mock_comfy.py 7 KB
  • tests/test_static.py 8 KB

Versions

The database has no other skills named google-colab-runner.

Database snapshot: 13.11.2026 · package version c972f2f4a0f2 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 85ultra-colab-h3-viral-video
    用 Google AI Ultra / Colab Pro+ 的 H100 跑 ComfyUI + MiniMax H3,接續 Flow 影片批次生成鏡頭、4K 後製、存回 Drive;涉及 Colab 爆款影片產線時使用。
  • 100h3-colab-studio
    Build and operate a prompt-to-video workspace for MiniMax H3 with an agent execution bridge to Google Colab G4 running ComfyUI. Use when the user wants to generate single-shot or multi-shot MiniMax H3 videos on Colab, optimize story ideas into official H3 structured prompts,…
  • 98h3-multimodal-colab
    Generate pictures, talking videos, video extensions and voice (TTS) with MiniMax H3 on the user's own Google Colab GPU, driven entirely from this computer through google-colab-cli. Use when the user asks to 生圖/改圖/生成影片/延伸影片/配音/TTS/讓角色說話/把分鏡生出來, or wants storyboard frames, clips…
  • 100comfyui-connect
    Submit ComfyUI API-format workflows to any ComfyUI server (local, a Google Colab tunnel, or a hosted instance), poll for completion, download outputs, upload inputs, and cancel jobs. Use whenever another skill needs to run a ComfyUI workflow.
  • 100colab-operator
    Operate Google Colab environments via the `colab` CLI. Use when asked to create or manage GPU/TPU sessions, run Python/shell on a remote Colab VM, sync files, automate environment setup (packages, auth, Drive), or export session history.
  • 90colab-mcp
    Use when the user wants ZCode to interact with a live Google Colab notebook through the official colab-mcp server (run/inspect cells, use the notebook's kernel state, work inside the user's browser Colab session). Covers pairing ZCode with a browser Colab session, the dynamic…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.