github-copilot-cli

Provides terminal-based code review, debugging, test generation, and refactoring via GitHub Copilot CLI.

4|Updated May 16, 2026
One-click install
npx skills add https://github.com/reason-machines/devtools-skills --skill github-copilot-cli-reason-machines
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-copilot-cli
Source: https://github.com/reason-machines/devtools-skills/tree/main/skills/github-copilot-cli
Command: npx skills add https://github.com/reason-machines/devtools-skills --skill github-copilot-cli-reason-machines

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developers often need AI assistance for code review, debugging, and test generation without leaving the terminal, but lack guidance on installing, configuring, and effectively using GitHub Copilot CLI with agents, skills, and MCP servers. ## Core Features & Use Cases - Terminal AI Assistance: Use interactive chat, explain, and suggest modes of the gh copilot extension to understand commands, get shell suggestions, and iterate on code problems. - Custom Agents and Project Skills: Create reusable agent definitions in ~/.config/gh-copilot/agents/ and project conventions in .copilot/skills/ for consistent, context-aware assistance. - MCP Server Integration: Connect Copilot CLI to external data sources like GitHub, PostgreSQL, filesystems, and search APIs via mcp.json configuration. - Use Case: A developer debugging a Flask 500 error can run gh copilot, reference @error.log and @app.py, receive a diagnosis, apply the fix, and generate a regression test in one session. ## Quick Start Ask the assistant to install the gh-copilot extension and review a specific source file in your project for security and performance issues.

Frequently Asked Questions about github-copilot-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install GitHub Copilot CLI in the terminal?▼

Install GitHub CLI version 2.62.0 or later, then run `gh extension install github/gh-copilot` and authenticate with `gh auth login`. Verify the setup with `gh copilot --version` using an account that has Copilot access.

How do I generate tests with Copilot CLI?▼

Start an interactive session with `gh copilot` and reference your source file with an @-mention, such as asking to generate pytest unit tests for @calculator.py covering edge cases. Copilot produces test code you can review and save.

Does Copilot CLI support MCP server integration?▼

Yes, Copilot CLI supports MCP servers configured in `~/.config/gh-copilot/mcp.json`. You can connect servers for GitHub, PostgreSQL, filesystem access, and Brave Search, or write custom servers using the MCP SDK.

Why does Copilot CLI say not authenticated or no subscription?▼

This happens when the GitHub CLI session is expired or the account lacks Copilot access. Run `gh auth status` to check the active account, re-authenticate with `gh auth login`, and verify Copilot access in your GitHub settings.

How do I create custom agents for Copilot CLI?▼

Create Markdown files in `~/.config/gh-copilot/agents/` describing the agent's expertise and behavior, such as a security reviewer. Then invoke the agent in a chat session with an @-mention like @security-reviewer followed by your request.