#!/bin/sh # oo — one-line installer for the ConnectOnion agent networking skill # https://github.com/openonion/oo # # Install: curl -fsSL openonion.ai/install | sh # Update: re-run the same command # Uninstall: curl -fsSL openonion.ai/install | sh -s uninstall # Local dev: OO_SOURCE_DIR=/path/to/repo sh install.sh # # Clones github.com/openonion/oo and links the skill into every coding # agent we know about: Claude Code, Codex CLI, Cursor, Kiro. Installs # only for agents you actually have (detected via their config dirs). set -eu REPO="${OO_REPO:-openonion/oo}" BRANCH="${OO_BRANCH:-main}" SOURCE_DIR="${OO_SOURCE_DIR:-}" CACHE_DIR="$HOME/.oo/cache" green() { printf '\033[32m%s\033[0m\n' "$1"; } red() { printf '\033[31m%s\033[0m\n' "$1" >&2; } ok() { printf ' \033[32m✓\033[0m %s\n' "$1"; } skip() { printf ' \033[2m·\033[0m %s\n' "$1"; } # ----- targets: platform | source-in-repo | install-path-under-$HOME ------- # Each line: