Explains how to detect and authenticate GitHub Copilot CLI, dispatch prompts with its programmatic mode, and handle unavailable or unauthenticated installations. It also describes provider roles, subscription quotas, doctor-check output, and example research workflows.
67%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Fix and improve this skill with Tessl
tessl review fix ./.claude/skills/skill-copilot-provider/SKILL.mdThe canonical home for this skill is skill-copilot-provider in nyldn/claude-octopus
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)
# Check whether the Copilot CLI is installed.
copilot_available=false
if command -v copilot >/dev/null 2>&1; then
copilot_available=true
fiRun the Copilot-specific steps only when copilot_available is true.
Graceful degradation: When Copilot CLI is unavailable or unauthenticated, silently skip. Other providers continue to operate normally.
Copilot CLI checks credentials in this precedence order:
COPILOT_GITHUB_TOKEN env var (highest priority — fine-grained PAT with "Copilot Requests" permission)GH_TOKEN env varGITHUB_TOKEN env varcopilot login)gh) authentication fallbackOption 1: Interactive login (recommended for local dev)
copilot loginOption 2: Fine-grained PAT (recommended for CI/automation)
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_*).
| Role | Agent Type | Use Case |
|---|---|---|
| General | copilot | Broad research, code explanation, exploration |
| Research | copilot-research | Research-focused exploration and analysis |
# Programmatic mode (non-interactive)
copilot -p "<prompt>" --no-ask-userWhen Copilot is active in a multi-provider workflow:
Providers:
🔴 Codex CLI - Implementation
🟡 Antigravity CLI - Security review
🟢 Copilot CLI - Research perspective
🔵 Claude - SynthesisIndicator legend:
The octopus 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)
copilot -p prompt = 1 premium request from your monthly allowanceauto selector by default; pin OCTOPUS_COPILOT_MODEL to pass an explicit --model value🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider research mode
🔍 Discover Phase: Researching WebSocket authentication patterns
Providers:
🔴 Codex CLI - Technical implementation analysis
🟡 Antigravity CLI - Ecosystem research
🟢 Copilot CLI - Research perspective
🔵 Claude - Strategic synthesis🐙 **CLAUDE OCTOPUS ACTIVATED** - Multi-provider research mode
🔍 Discover Phase: Researching WebSocket authentication patterns
Providers:
🔴 Codex CLI - Technical implementation analysis
🟡 Antigravity CLI - Ecosystem research
🔵 Claude - Strategic synthesisWhen Copilot is not detected, it is silently omitted from the provider list.
nyldn/claude-octopus
0c37301
commandcopilotcopilot loginexportghgh authgh auth loginoctopusoctopus doctoroctopus doctor providersCanonical home
since Jul 25, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.