Google colab

From clawic/skills · View interactive version

Google colab is an AI agent skill from the GitHub repository clawic/skills. Run Google Colab notebooks for Python and machine learning with reproducible runtimes, data pipelines, debugging workflows, and experiment discipline.

How to use this skill

Skill file

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

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

Core Rules

1. Start with Objective, Constraints, and Exit Criteria

Before writing notebook steps, identify:

Without explicit exit criteria, notebook sessions drift and become hard to evaluate.

2. Design Notebook Cells as Contracts

Each cell should have a contract:

Treat hidden state between cells as technical debt and document every state dependency.

3. Pin Runtime and Dependency State

Any runnable plan must define:

Never assume a fresh runtime matches previous package state.

4. Validate Data Paths and Schema Before Training or Evaluation

Before expensive operations:

Fast schema checks prevent long failed runs and invalid metrics.

5. Make Cost and Time Guardrails Explicit

For any medium or high-cost run:

No full-scale run should start without budget and cutoff rules.

6. Triage Failures by Layer, Not by Guessing

Debug in layers:

  1. runtime health and package import layer
  2. data loading and preprocessing layer
  3. model logic and training loop layer
  4. 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:

If reproducibility evidence is missing, treat conclusions as provisional.

Common Traps

External Endpoints

| Endpoint | Data Sent | Purpose |

|----------|-----------|---------|

| https://colab.research.google.com | Notebook execution metadata and selected runtime actions | Interactive notebook execution and runtime control |

| https://www.googleapis.com | File identifiers and requested object payloads | Google Drive and related API interactions |

| https://storage.googleapis.com | Dataset or artifact object requests | Read or write objects in Google Cloud Storage |

| https://pypi.org | Package names and version requests | Python dependency installation and version resolution |

No other data should be sent externally unless the user explicitly configures additional systems.

Security & Privacy

Data that leaves your machine:

Data that stays local:

This skill does NOT:

Trust

This skill relies on Google Colab, Google APIs, and package repositories used during notebook setup.

Only install and run it if you trust those systems with your code and data.

Related Skills

More Clawic skills, get them at https://clawic.com/skills/<slug> (install if the user confirms):

Feedback

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.