Expert knowledge of GitHub Copilot CLI - installation, configuration, usage, custom agents, MCP servers, and version management...
Comprehensive knowledge of GitHub Copilot CLI - the terminal-native AI coding assistant.
Note: Command syntax and model availability may change. Run
/helpin Copilot CLI for current options.
This skill provides expert guidance on:
# Homebrew (macOS/Linux) - Recommended
brew install copilot-cli
# npm (all platforms, requires Node.js 22+)
npm install -g @github/copilot
# WinGet (Windows)
winget install GitHub.Copilot
# Install script (macOS/Linux)
curl -fsSL https://gh.io/copilot-install | bash
# Homebrew
brew upgrade copilot-cli
# npm
npm update -g @github/copilot
# WinGet
winget upgrade GitHub.Copilot
# Check version
copilot --version
Requirements:
Authentication:
# On first run, you'll be prompted to login
copilot
# Then: /login
# OR set environment variable
export GH_TOKEN="ghp_xxxxxxxxxxxx"
| Command | Description |
|---|---|
/help |
Show all commands and shortcuts |
/model |
Select AI model (claude-sonnet-4-5, gpt-5, etc.) |
/mcp |
Manage MCP server configuration |
/agent |
Browse and select custom agents |
/delegate |
Hand off task to Copilot coding agent on GitHub |
/compact |
Reduce context window usage |
/context |
Show token usage visualization |
/usage |
Display session metrics |
/diff |
Review changes made in session |
/share |
Export session to file or gist |
/skills |
Manage skills for enhanced capabilities |
| Shortcut | Action |
|---|---|
@file |
Include file contents in context |
!cmd |
Execute shell command directly |
Esc |
Cancel operation / exit prompt |
Ctrl+C |
Cancel / clear / exit |
Ctrl+L |
Clear screen |
Ctrl+O |
Expand/collapse timeline |
โ/โ |
Navigate command history |
Auto-triggers when user mentions:
Explicitly invoke via:
Skill(skill="github-copilot-cli-expert")
reference.md - Read when you need:
examples.md - Read when you need:
Interactive (default):
copilot
# Then type prompts naturally
Programmatic (scripting):
copilot -p "Summarize recent commits" --allow-tool 'shell(git)'
Built-in agents: explore, task, plan, code-review
Custom agent locations:
~/.copilot/agents/.github/agents/.github-private/agents/GitHub MCP server included by default. Add more:
/mcp add
# Fill details, Ctrl+S to save
Config stored in: ~/.copilot/mcp-config.json
Explain @config/settings.yml
Fix the bug in @src/app.js
/delegate complete the API tests and create a PR
copilot --resume # Cycle through sessions
copilot --continue # Resume most recent
copilot --allow-all-tools
copilot --allow-tool 'shell(git)'
copilot --deny-tool 'shell(rm)'
Current Version: Check with copilot --version
Prerelease Channels:
brew install copilot-cli@prerelease
npm install -g @github/copilot@prerelease
winget install GitHub.Copilot.Prerelease
Releases: https://github.com/github/copilot-cli/releases/
/login # In interactive mode
# Or use PAT with GH_TOKEN/GITHUB_TOKEN env var
/compact # Summarize conversation
/context # View token usage
/mcp show # List configured servers
/mcp edit [name] # Edit configuration
~/.copilot/config.json โ trusted_folders--allow-all-paths or --allow-all-urls flags"Copilot not found" after install:
which copilot (Unix) or where copilot (Windows)"No subscription" error:
/logout then /login/feedback command in CLI