Agent skill
skill-copilot-provider
GitHub Copilot CLI as optional zero-cost provider via copilot -p programmatic mode. Use when: AUTOMATICALLY ACTIVATE when user says:. "copilot provider" or "add copilot" or "github copilot" or "use copilot"
Install this agent skill to your Project
npx add-skill https://github.com/nyldn/claude-octopus/tree/main/skills/skill-copilot-provider
SKILL.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
# 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:
COPILOT_GITHUB_TOKENenv var (highest priority — fine-grained PAT with "Copilot Requests" permission)GH_TOKENenv varGITHUB_TOKENenv var- OAuth token from system keychain (via
copilot login) - GitHub CLI (
gh) authentication fallback
Setup
Option 1: Interactive login (recommended for local dev)
copilot login
Option 2: Fine-grained PAT (recommended for CI/automation)
- Create a fine-grained PAT at https://github.com/settings/personal-access-tokens/new
- Enable the "Copilot Requests" permission
- Set the env var:
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
# 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
- Zero additional cost — Uses existing GitHub Copilot subscription (Pro, Pro+, Business, Enterprise)
- Premium request quota — Each
copilot -pprompt = 1 premium request from your monthly allowance - Graceful degradation — When unavailable, silently skip with no errors or warnings
- No provider cascade — If unavailable, the role is reassigned to another provider
- Model selection — Copilot CLI selects the model internally (default: Claude Sonnet 4.5, configurable via
/model) - 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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
skill-iterative-loop
Run tasks in a loop until goals are met — use for iterative refinement, polling, or convergence. Use when: AUTOMATICALLY ACTIVATE when user requests iterative execution:. "loop X times" or "loop around N times". "loop around 5 times auditing, enhancing, testing"
skill-context-detection
Auto-detect work context (Dev vs Knowledge) for workflow tailoring
skill-code-review
Expert multi-AI code review with quality and security analysis
skill-doc-sync
Post-ship doc sync across project markdown. Use when: "sync docs", "update docs", "document changes", "release notes".
skill-meta-prompt
Craft better prompts using proven optimization techniques — use when your prompt needs refinement. Use when: Use PROACTIVELY when user wants to:. "create a prompt for", "write a prompt for". "optimize this prompt", "improve this prompt"
octopus-quick
Quick execution for ad-hoc tasks without workflow overhead. Use when: Use this skill when user says "quick fix", "ad-hoc task", or explicitly. requests fast execution without full workflow overhead.
Didn't find tool you were looking for?