github-copilot-cli
Original:🇺🇸 English
Translated
Expert knowledge of GitHub Copilot CLI - installation, configuration, usage, MCP servers, skills, custom agents, and troubleshooting. Use when asking about copilot cli, installing copilot, gh copilot, copilot commands, MCP setup, or copilot extensibility.
2installs
Sourcerysweet/amplihack
Added on
NPX Install
npx skill4agent add rysweet/amplihack github-copilot-cliTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →GitHub Copilot CLI Expert
Comprehensive knowledge of GitHub Copilot CLI installation, configuration, usage, and extensibility.
Purpose
This skill provides expert guidance on:
- Installing and updating GitHub Copilot CLI
- Authentication and configuration
- Core usage patterns and slash commands
- Extensibility (MCP servers, skills, custom agents)
- Troubleshooting common issues
When I Activate
Automatically when you mention:
- "copilot cli", "github copilot cli", "gh copilot"
- "install copilot", "update copilot"
- "copilot commands", "copilot slash commands"
- "copilot mcp", "add mcp server"
- "copilot skills", "create copilot skill"
- "copilot custom agent"
Quick Reference
Installation (All Platforms)
Always fetch latest version - use these commands:
| Platform | Command |
|---|---|
| Windows (WinGet) | |
| macOS/Linux (Homebrew) | |
| All (npm, Node.js 22+) | |
| macOS/Linux (Script) | |
Prerelease versions: Add or use
@prereleaseGitHub.Copilot.PrereleaseAuthentication
bash
copilot # Launch and follow /login prompt
# OR use PAT with "Copilot Requests" permission:
export GH_TOKEN=your_tokenEssential Slash Commands
| Command | Purpose |
|---|---|
| Show all commands and shortcuts |
| Select AI model (Claude Sonnet 4.5, GPT-5, etc.) |
| Browse and select available agents |
| Manage skills |
| Manage MCP server configuration |
| Hand off to Copilot coding agent (creates PR) |
| Reduce context window usage |
| Show token usage visualization |
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
| Mention files to include in context |
| Execute shell command directly |
| Cancel current operation |
| Cancel / clear / exit |
| Clear screen |
| Expand/collapse timeline |
Extensibility Overview
- MCP Servers - Extend Copilot with external tools
- Skills - Task-specific instructions and scripts
- Custom Agents - Specialized agent profiles
- Custom Instructions - Repository-wide guidance
Navigation Guide
When to Read Supporting Files
reference.md - Read when you need:
- Complete slash command reference with all options
- Detailed MCP server configuration and JSON schema
- Full permissions system documentation
- Advanced configuration options
- Environment variables reference
examples.md - Read when you need:
- Step-by-step installation walkthroughs
- Working MCP server configurations
- Skill creation examples
- Custom agent examples
- Real-world usage scenarios
Core Concepts
MCP Servers (Model Context Protocol)
Copilot CLI includes GitHub MCP server by default. Add custom MCP servers:
bash
/mcp add # Interactive configuration
/mcp show # List configured servers
/mcp edit <name> # Modify existing serverConfig stored in:
~/.copilot/mcp-config.jsonSkills
Skills enhance Copilot's task performance with instructions and scripts.
Locations:
- Project: or
.github/skills/.claude/skills/ - Personal: or
~/.copilot/skills/~/.claude/skills/
Structure:
.github/skills/my-skill/
└── SKILL.md # Instructions with YAML frontmatterCustom Agents
Specialized agent profiles stored as Markdown files.
Locations:
- User:
~/.copilot/agents/ - Repository:
.github/agents/ - Organization:
.github-private/agents/
Custom Instructions
Repository-specific guidance for Copilot:
- - Repository-wide
.github/copilot-instructions.md - - Path-specific
.github/instructions/**/*.instructions.md - - Agent behavior instructions
AGENTS.md
Troubleshooting Quick Tips
| Issue | Solution |
|---|---|
| Not installed | |
| Not authenticated | Run |
| Policy disabled | Check org/enterprise Copilot settings |
| MCP server not loading | Verify |
| Skill not activating | Restart Copilot CLI, check SKILL.md YAML |
Version: 1.0.0 | Status: Public Preview
Note: GitHub Copilot CLI is in public preview and subject to change.