Google Colab
Run Google Colab notebooks for Python and machine learning with reproducible runtimes, data pipelines, debugging workflows, and experiment discipline.
от clawic★ 23 звезды на GitHub
Установить Google Colab в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Setup
On first use, read setup.md and align activation behavior and risk boundaries before proposing notebook changes.
When to Use
User needs Google Colab notebook work that must be reproducible, not one-off trial and error. Agent handles runtime setup, package and dependency hygiene, data import and export flows, debugging failures, and experiment tracking.
Architecture
Memory lives in ~/Clawic/data/google-colab/. See memory-template.md for setup and status values.
~/Clawic/data/google-colab/
|-- memory.md # Activation preferences, constraints, and current goals
|-- notebooks.md # Notebook registry with owners and objective per notebook
|-- runtimes.md # Runtime choices, dependency pins, and restart history
|-- datasets.md # Data source map, mount paths, and validation notes
|-- incidents.md # Error timelines, root causes, and fixes
`-- experiments.md # Hypotheses, metrics, and reproducibility evidence
Quick Reference
Use the smallest relevant file for the active task.
| Topic | File |
|---|---|
| Setup and activation behavior | setup.md |
| Memory and local templates | memory-template.md |
| Notebook structure and cell contracts | notebook-architecture.md |
| Runtime setup, pinning, and restart recovery | runtime-playbook.md |
| Data import, export, and schema checks | data-io-patterns.md |
| Debugging triage and failure recovery | debugging-runbook.md |
| Experiment log format and promotion rules | experiment-log-template.md |
Requirements
- For diagnostics and lightweight API checks:
curl,jq - For notebook execution: Google account with Colab access
- For dataset mounting: explicit permission for Drive, GCS, or external endpoints
Never ask users to paste API keys, OAuth refresh tokens, or private dataset credentials into chat.
Data Storage
Local operational notes stay in ~/Clawic/data/google-colab/:
- notebook inventory with objective, owner, and current status
- runtime and dependency decisions with pinned versions
- dataset and schema validation history
- experiment outcomes and unresolved risks
Core Rules
1. Start with Objective, Constraints, and Exit Criteria
Before writing notebook steps, identify:
- objective: prototype, benchmark, fine-tuning, teaching, or production prep
- constraints: runtime tier, budget, execution time, and data availability
- exit criteria: metric threshold, artifact output, or decision checkpoint
Without explicit exit criteria, notebook sessions drift and become hard to evaluate.
2. Design Notebook Cells as Contracts
Each cell should have a contract:
- inputs required and where they come from
- deterministic output shape and validation check
- failure mode and fallback behavior
Treat hidden state between cells as technical debt and document every state dependency.
3. Pin Runtime and Dependency State
Any runnable plan must define:
- Python version and runtime class (CPU, T4, L4, A100 when relevant)
- pinned package versions for non-standard libraries
- rehydration steps after runtime disconnect or restart
Never assume a fresh runtime matches previous package state.
4. Validate Data Paths and Schema Before Training or Evaluation
Before expensive operations:
- verify mount success and path existence
- sample and validate schema and null patterns
- block execution when split boundaries or label columns are ambiguous
Fast schema checks prevent long failed runs and invalid metrics.
5. Make Cost and Time Guardrails Explicit
For any medium or high-cost run:
- estimate runtime duration and checkpoint intervals
- define early-stop conditions and budget cutoff
- recommend smaller dry-run dataset before full execution
No full-scale run should start without budget and cutoff rules.
6. Triage Failures by Layer, Not by Guessing
Debug in layers:
- runtime health and package import layer
- data loading and preprocessing layer
- model logic and training loop layer
- evaluation and artifact export layer
Layered triage shortens incident resolution and avoids random patching.
7. Log Reproducibility Evidence in Every Significant Run
For each meaningful run, capture:
- notebook id or link, runtime class, seed, and dependency snapshot
- dataset version or timestamp and split method
- primary metric result and whether exit criteria passed
If reproducibility evidence is missing, treat conclusions as provisional.
Common Traps
- Installing packages ad hoc across cells without pins -> results differ after runtime reconnect
- Using absolute local paths copied from old sessions -> file not found during replay
- Training before schema and null validation -> wasted GPU time and misleading metrics
- Mixing exploratory and production cells in one notebook -> brittle execution order
- Treating cached outputs as fresh ground truth -> stale evaluation and wrong decisions
- Ignoring random
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- _meta.json
- data-io-patterns.md
- debugging-runbook.md
- experiment-log-template.md
- memory-template.md
- notebook-architecture.md
- runtime-playbook.md
- setup.md
FAQ
Что делает скилл Google Colab?
Run Google Colab notebooks for Python and machine learning with reproducible runtimes, data pipelines, debugging workflows, and experiment discipline.
Как установить скилл Google Colab?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Google Colab запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…