scbe-n8n-colab-bridge
Configure and reuse Google Colab local notebook connection settings for SCBE n8n automation and agent handoff workflows.
Files1
View on GitHubSKILL.mdresearch/sphere-grid/skills/scbe-n8n-colab-bridge/SKILL.md
GitHubSCBE N8N Colab Local Bridge
Use this skill when you have a Colab local connection URL (for example http://127.0.0.1:8888/?token=...) and want to safely normalize, validate, and wire it into local n8n automation.
When to use
- You need Colab pivot knowledge or local notebook runs to feed n8n/SCBE workflows.
- You need a repeatable way to store backend URL + token and validate connectivity.
- You want to sync environment variables for scripts and keep them discoverable.
- You are transitioning between notebook sessions and need a known working backend endpoint.
Quick Start
- Parse and validate from Colab local connection URL
python C:\Users\issda\.codex\skills\scbe-n8n-colab-bridge\scripts\colab_n8n_bridge.py `
--set \
--name pivot --backend-url "http://127.0.0.1:8888/?token=YOUR_TOKEN" \
--n8n-webhook "http://127.0.0.1:5678/webhook/scbe-pivot" \
--probe
- Export environment for this shell
python C:\Users\issda\.codex\skills\scbe-n8n-colab-bridge\scripts\colab_n8n_bridge.py --env --name pivot
- Quick connectivity check
python C:\Users\issda\.codex\skills\scbe-n8n-colab-bridge\scripts\colab_n8n_bridge.py --status --name pivot
Behavior
- Stores profile JSON in:
%USERPROFILE%\\.scbe\\colab_n8n_bridge.json
- Stores tokens via
src/security/secret_storewith Sacred Tongue tokenization for local offline retention. --setnormalizes URL, strips trailing spaces, validates required token.--set --probeperforms API reachability check against/apibefore save.--statusprints a small JSON summary with masked token preview.--envprints shell-safe export lines forSCBE_COLAB_BACKEND_URL,SCBE_COLAB_TOKEN, and optionalN8N_WEBHOOK_URL.
Script contract
Use these exact commands from the skill path:
--set: create or update profile--status: report profile and local config--env: print export statements--probe: ping Colab API endpoint and confirm token works
Security note
This operation uses local credentials only. Avoid printing full tokens into logs, and regenerate tokens if they are ever exposed.
Related workflow
- After setup, use existing local n8n orchestration scripts:
scripts/system/smoke_n8n_bridge.ps1scripts/system/full_system_smoke.py