Skip to content
Back to skills

Skill Copilot Provider

ASecurity

GitHub Copilot CLI as optional zero-cost provider via copilot -p programmatic mode

  • 4,170 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 28, 2026
ai-agentsbashgitapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned May 28, 2026

npx -y skills add nyldn/claude-octopus --skill skill-copilot-provider --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skill Copilot Provider?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Skill Copilot Provider
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/nyldn-skill-copilot-provider/badge)](https://www.skillsdirectory.com/skills/nyldn-skill-copilot-provider)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: skill-copilot-provider
version: 2.0.0
aliases: [copilot-provider, github-copilot, copilot]
description: GitHub Copilot CLI as optional zero-cost provider via copilot -p programmatic mode
trigger: |
  AUTOMATICALLY ACTIVATE when user says:
  "copilot provider" or "add copilot" or "github copilot" or "use copilot"
  DO NOT activate for general copilot IDE usage or copilot chat in editor.
paths:
  - "**/.github/copilot*"
  - "**/.copilot*"
---

# 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.