skill-copilot-provider
GitHub Copilot CLI as optional zero-cost provider via copilot -p programmatic mode
What this skill does
> **Host: Codex CLI** — This skill was designed for Claude Code and adapted for Codex. > Cross-reference commands use installed skill names in Codex rather than `/octo:*` slash commands. > Use the active Codex shell and subagent tools. Do not claim a provider, model, or host subagent is available until the current session exposes it. > For host tool equivalents, see `skills/blocks/codex-host-adapter.md`. # GitHub Copilot Provider Skill ## Overview GitHub Copilot CLI (GA since Feb 2026) serves as an optional provider in the Claude Octopus multi-LLM ecosystem. Integration uses the official `copilot -p` programmatic mode, not reverse-engineered API endpoints. **Core principle:** Copilot supplements existing providers for research and exploration at zero additional cost (uses existing GitHub Copilot subscription). Each prompt counts as one premium request against your subscription quota. **Agent types:** `copilot` (general), `copilot-research` (research-focused) ## Detection ```bash # Check copilot CLI is available if ! command -v copilot &>/dev/null; then # Copilot CLI not installed — silently skip return 0 fi ``` **Graceful degradation:** When Copilot CLI is unavailable or unauthenticated, silently skip. Other providers continue to operate normally. ## Authentication Copilot CLI checks credentials in this precedence order: 1. `COPILOT_GITHUB_TOKEN` env var (highest priority — fine-grained PAT with "Copilot Requests" permission) 2. `GH_TOKEN` env var 3. `GITHUB_TOKEN` env var 4. OAuth token from system keychain (via `copilot login`) 5. GitHub CLI (`gh`) authentication fallback ### Setup **Option 1: Interactive login (recommended for local dev)** ```bash copilot login ``` **Option 2: Fine-grained PAT (recommended for CI/automation)** 1. Create a fine-grained PAT at https://github.com/settings/personal-access-tokens/new 2. Enable the "Copilot Requests" permission 3. Set the env var: ```bash export COPILOT_GITHUB_TOKEN="github_pat_..." ``` **Option 3: Reuse existing `gh` auth** If `gh auth login` is already configured, Copilot CLI will use it automatically. **Note:** Classic PATs (`ghp_*`) are NOT supported. Use fine-grained PATs (`github_pat_*`). ## Available Roles | Role | Agent Type | Use Case | |------|-----------|----------| | **General** | `copilot` | Broad research, code explanation, exploration | | **Research** | `copilot-research` | Research-focused exploration and analysis | ### Dispatch ```bash # Programmatic mode (non-interactive) copilot -p "<prompt>" --no-ask-user ``` ## Provider Indicators When Copilot is active in a multi-provider workflow: ``` Providers: 🔴 Codex CLI - Implementation 🟡 Gemini CLI - Security review 🟢 Copilot CLI - Research perspective 🔵 Claude - Synthesis ``` Indicator legend: - 🔴 = Codex CLI - 🟡 = Gemini CLI - 🟢 = Copilot CLI - 🟣 = Perplexity - 🔵 = Claude ## Doctor Integration The `/octo:doctor` providers check reports Copilot availability and auth method: ``` Providers: ✓ Copilot CLI installed (auth: keychain) ``` When unauthenticated: `⚠ Copilot CLI installed but not authenticated` When missing: `ℹ Copilot CLI not installed (optional)` ## Integration Notes 1. **Zero additional cost** — Uses existing GitHub Copilot subscription (Pro, Pro+, Business, Enterprise) 2. **Premium request quota** — Each `copilot -p` prompt = 1 premium request from your monthly allowance 3. **Graceful degradation** — When unavailable, silently skip with no errors or warnings 4. **No provider cascade** — If unavailable, the role is reassigned to another provider 5. **Model selection** — Copilot CLI selects the model internally (default: Claude Sonnet 4.5, configurable via `/model`) 6. **Multi-model access** — Copilot subscription includes access to Claude, GPT, and Gemini models ## Example Workflows ### Research with Copilot ``` 🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider research mode 🔍 Discover Phase: Researching WebSocket authentication patterns Providers: 🔴 Codex CLI - Technical implementation analysis 🟡 Gemini CLI - Ecosystem research 🟢 Copilot CLI - Research perspective 🔵 Claude - Strategic synthesis ``` ### Copilot Unavailable (Graceful Degradation) ``` 🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider research mode 🔍 Discover Phase: Researching WebSocket authentication patterns Providers: 🔴 Codex CLI - Technical implementation analysis 🟡 Gemini CLI - Ecosystem research 🔵 Claude - Strategic synthesis ``` When Copilot is not detected, it is silently omitted from the provider list.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.