Loading...
Loading...
Expert knowledge of GitHub Copilot CLI - installation, configuration, usage, custom agents, MCP servers, and version management. Use when asking about copilot cli, copilot commands, installing copilot, updating copilot, copilot features.
npx skill4agent add rysweet/amplihack github-copilot-cli-expertNote: Command syntax and model availability may change. Runin Copilot CLI for current options./help
# 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# On first run, you'll be prompted to login
copilot
# Then: /login
# OR set environment variable
export GH_TOKEN="ghp_xxxxxxxxxxxx"| Command | Description |
|---|---|
| Show all commands and shortcuts |
| Select AI model (claude-sonnet-4-5, gpt-5, etc.) |
| Manage MCP server configuration |
| Browse and select custom agents |
| Hand off task to Copilot coding agent on GitHub |
| Reduce context window usage |
| Show token usage visualization |
| Display session metrics |
| Review changes made in session |
| Export session to file or gist |
| Manage skills for enhanced capabilities |
| Shortcut | Action |
|---|---|
| Include file contents in context |
| Execute shell command directly |
| Cancel operation / exit prompt |
| Cancel / clear / exit |
| Clear screen |
| Expand/collapse timeline |
| Navigate command history |
Skill(skill="github-copilot-cli-expert")copilot
# Then type prompts naturallycopilot -p "Summarize recent commits" --allow-tool 'shell(git)'exploretaskplancode-review~/.copilot/agents/.github/agents/.github-private/agents//mcp add
# Fill details, Ctrl+S to save~/.copilot/mcp-config.jsonExplain @config/settings.yml
Fix the bug in @src/app.js/delegate complete the API tests and create a PRcopilot --resume # Cycle through sessions
copilot --continue # Resume most recentcopilot --allow-all-tools
copilot --allow-tool 'shell(git)'
copilot --deny-tool 'shell(rm)'copilot --versionbrew install copilot-cli@prerelease
npm install -g @github/copilot@prerelease
winget install GitHub.Copilot.Prerelease/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.jsontrusted_folders--allow-all-paths--allow-all-urlswhich copilotwhere copilot/logout/login/feedback