copilot-cli
Skill4 starsChanged 6 months agoMITView on GitHub
Guidance for installing GitHub Copilot CLI on Debian/Ubuntu and executing commands using custom agents. You MUST load this skill when interacting with or installing the copilot-cli command.
- Pipes a download into a shell
- Reads credentials
- Installs packages
2 other projects use a version of this.
Adopted by
Most recently taken up by
- yu-iskw/coding-agent-skillstheir own version, first seen Oct 13, 2026
- namos2502/CortexLinktheir own version, first seen May 4, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- yu-iskw/coding-agent-skills★ 1same name
- namos2502/CortexLink★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository124 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- .vscode/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agent-log-analysisSkill
- agent-mdSkill
- agent-md-writerSkill
- agent-skill-md-writerSkill
- agentskillsSkill
- agents-md-writerSkill
- ai-prompt-writerSkill
- ansibleSkill
- apache-airflow-apiSkill
- apache-airflow-dagsSkill
- astro-cliSkill
- astronomer-docsSkill
- awesome-copilotSkill
- brainstorm-agent-runsSkill
- brainstorm-github-prSkill
- brainstormSkill
- catSkill
- chrome-devtoolsSkill
- claude-docsSkill
- codeqlSkill
- code-reviewSkill
- code-tourSkill
- coding-standard-writerSkill
- context-aware-opsSkill
- copilot-docsSkill
- critical-thinkingSkill
- datadog-agentSkill
- datadog-apiSkill
- datadog-mcpSkill
- datadog-monitorsSkill
- datadog-pulumiSkill
- devcontainerSkill
- dictationSkill
- direnvSkill
- dockerfileSkill
- dockerSkill
- docs-reviewSkill
- docs-writerSkill
- dot-claudeSkill
- dotfilesSkill
- dot-githubSkill
- editorconfigSkill
- fact-writerSkill
- gdpr-compliantSkill
- gh-agent-taskSkill
- gh-apiSkill
- gh-aw-compileSkill
- gh-aw-firewall-debugSkill
- gh-aw-firewallSkill
- gh-aw-newSkill
- gh-awSkill
- gh-aw-troubleshootingSkill
- gh-codespaceSkill
- gh-issueSkill
- gh-modelsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
When executing programmatic requests against GitHub Copilot via the terminal.
- Distinctive: line 17
When installing or authenticating the Copilot CLI in a CI/CD or local environment.
- Very specific: line 21
When trying to use standard gh commands for repo management (Copilot CLI is an extension specifically for AI assistance).
- Very specific: line 33
Install CLI: Use npm install -g @github/copilot (recommended), curl -fsSL https://gh.io/copilot-install | bash (install script), or snap …
- Very specific: line 34
Authentication: Use copilot login or set COPILOT_GITHUB_TOKEN.
- Very specific: line 35
Discover Usage: Run copilot --help for standard command usage options.
- Very specific: line 36
Agent Selection: Use the --agent flag to target specialized .agent.md files.
- Very specific: line 44
Programmatic Execution: Avoid interactive slash commands (like /agent) in scripts.
- Very specific: line 46
Agent Resolution: If custom agents share a name, the resolution order is: User (~/.copilot/agents/) > Project (.github/agents/) > …
- Distinctive: line 83
gh-agent-task: Use for managing preview agent tasks on repositories and pull requests.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: copilot-cli
<!-- markdownlint-disable MD013 MD023 MD031 MD032 -->Guidance for installing the GitHub Copilot CLI on Debian/Ubuntu and using it with custom agents via command-line options.
When to Use
- When executing programmatic requests against GitHub Copilot via the terminal.
- To orchestrate specialized subagents using the
--agentflag. - When installing or authenticating the Copilot CLI in a CI/CD or local environment.
When Not to Use
- When trying to use standard
ghcommands for repo management (Copilot CLI is an extension specifically for AI assistance). - Inside highly restricted environments without internet access or where external API calls to
api.github.comare blocked. - For generating extremely large, multi-file architectural scaffolds where a dedicated repository generation tool is more appropriate.
Common Pitfalls
- Interactive Prompts in Scripts: Using the raw
copilotcommand in a CI script without the-s(silent) or programmatic flags, causing the pipeline to hang waiting for user input. - Agent Name Clashes: Creating a custom agent that shares a name with a built-in alias, leading to the wrong prompt instructions being loaded.
- Untrusted Directories: Failing to pre-approve or trust the working directory, causing Copilot CLI to block execution and demand a manual terminal confirmation.
Core Process
- Install CLI: Use
npm install -g @github/copilot(recommended),curl -fsSL https://gh.io/copilot-install | bash(install script), orsnap install copilot-clion Debian/Ubuntu. - Authentication: Use
copilot loginor setCOPILOT_GITHUB_TOKEN. Fine-grained PATs require the Copilot Requests permission. - Discover Usage: Run
copilot --helpfor standard command usage options. Alternatively, load the copilot-docs skill for detailed overview. - Agent Selection: Use the
--agentflag to target specialized.agent.mdfiles. For details, load the copilot-docs skill. - Command Execution: Provide the explicit instruction string via the
--promptor-pflag. Use-s(silent) in scripts to capture output. Manage tools via tool flags. - Task Steering: Control outputs dynamically or remotely via workflow configuration. For detailed guides on steering, load the copilot-docs skill.
- Session Management: Validate and trace logic using session commands. For comprehensive session management, load the copilot-docs skill.
- Pull Requests: For collaborative tasks, leverage PR-focused commands described in the copilot-docs skill.
Core Principles
- Programmatic Execution: Avoid interactive slash commands (like
/agent) in scripts. Always use explicit programmatic flags (--agentand--prompt). - Context Management: Utilize custom subagents to offload specific tasks, ensuring the main agent's context window remains uncluttered. In scripts, keep prompts narrowly scoped, pass context explicitly with
--prompt, and start a newcopilotinvocation when you need a fresh or reduced context window. - Agent Resolution: If custom agents share a name, the resolution order is: User (
~/.copilot/agents/) > Project (.github/agents/) > Organization (.github-private/agents/). - Trusted Directories: Copilot CLI requires confirmation to trust the working directory. Permanent trust is stored in
~/.copilot/config.json.
Commands / Usage Patterns
Installation & Authentication
# Recommended (requires Node.js 22+)
npm install -g @github/copilot
# Install script (macOS/Linux)
curl -fsSL https://gh.io/copilot-install | bash
# Authenticate
copilot loginSecurity & Permissions
# Preferred: grant only the specific permissions needed for the task
copilot --allow-tool='shell(git)' --deny-tool='shell(rm)' --prompt "Clean repo"
# Only use YOLO mode after the user has explicitly confirmed unrestricted access
copilot --yolo --prompt "Perform complex task"Programmatic Custom Agent Execution
Specify the custom agent file name (excluding the .agent.md extension) and the exact instruction prompt.
copilot --agent security-auditor --prompt "Check <target-file>"Related Skills
- copilot-docs: Detailed references on automating, customizing, and advanced usage patterns for Copilot CLI.
- gh-agent-task: Use for managing preview agent tasks on repositories and pull requests.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

