# copilot-cli

Hands tasks from Claude to GitHub Copilot CLI in non-interactive mode, with model choice, permission flags and markdown session export.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 3400 installs · ★ 363
- Author: giuseppe-trisciuoglio
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/giuseppe-trisciuoglio/developer-kit/tree/HEAD/plugins/developer-kit-tools/skills/copilot-cli/SKILL.md
- Updated: 2026-09-10
- HTML: https://affpapa.org/en/nevibecode/skills/copilot-cli

## What it does

The skill spells out how to call `copilot` from Claude with the `-p` flag. Prompts go out in English, so the agent rewrites your request into a concrete one: objective, files, constraints, expected output format. Model selection runs through `--model`, for instance `gpt-5.2` or `claude-sonnet-4.6`.

Permissions stay narrow by default. A scoped task needs only `--allow-tool '<tool>'`, while `--allow-all-tools`, `--allow-all-paths`, `--allow-all-urls` and `--yolo` widen access and raise the risk. Output capture uses `--silent`, and `--share` exports the session to markdown that you can pick up later with `--resume <session-id>`.

Before the first run the skill checks `copilot --version` and `gh auth status`. No CLI or no GitHub auth means no delegation, so check that first. Copilot output comes from an external model, so run tests and lint before applying any patch. Keep secrets and API keys out of delegated prompts.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add giuseppe-trisciuoglio/developer-kit --skill copilot-cli -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/copilot-cli/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/copilot-cli/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add giuseppe-trisciuoglio/developer-kit --skill copilot-cli -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/copilot-cli/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add giuseppe-trisciuoglio/developer-kit --skill copilot-cli -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/copilot-cli/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install giuseppe-trisciuoglio/developer-kit copilot-cli
```

2. **Manually: put the files in place**
- File: `.github/skills/copilot-cli/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add giuseppe-trisciuoglio/developer-kit --skill copilot-cli -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/giuseppe-trisciuoglio/developer-kit --path plugins/developer-kit-tools/skills/copilot-cli
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/copilot-cli/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add giuseppe-trisciuoglio/developer-kit --skill copilot-cli -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/giuseppe-trisciuoglio/developer-kit/tree/HEAD/plugins/developer-kit-tools/skills/copilot-cli/SKILL.md

## When to use it
- hand a task from Claude to Copilot CLI in one command
- compare several models on the same prompt
- export a Copilot session to markdown for review
- continue an interrupted analysis with `--resume`
- grant Copilot only the tools a task needs

## Example prompts
- delegate the refactor of `src/services/payment.ts` to Copilot with `gpt-5.2`
- run a review of `src/modules/auth` through Copilot with Sonnet and share the session
- resume the previous Copilot session with `--resume`

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 4b68e1d2a81e602a.

BEGIN THIRD-PARTY FILE 4b68e1d2a81e602a
````text
---
name: copilot-cli
description: Provides GitHub Copilot CLI task delegation in non-interactive mode with multi-model support (Claude, GPT, Gemini), permission controls, output sharing, and session resume. Use when users ask to hand work to Copilot, compare models, or run Copilot programmatically from Claude Code.
allowed-tools: Bash, Read, Write
---

# Copilot CLI Delegation

Delegate selected tasks from Claude Code to GitHub Copilot CLI using non-interactive commands, explicit model selection, safe permission flags, and shareable outputs.

## Overview

This skill standardizes delegation to GitHub Copilot CLI (`copilot`) for cases where a different model may be more suitable for a task. It covers:

- Non-interactive execution with `-p` / `--prompt`
- Model selection with `--model`
- Permission control (`--allow-tool`, `--allow-all-tools`, `--allow-all-paths`, `--allow-all-urls`, `--yolo`)
- Output capture with `--silent`
- Session export with `--share`
- Session resume with `--resume`

Use this skill only when delegation to Copilot is explicitly requested or clearly beneficial.

## When to Use

Use this skill when:

- The user asks to delegate work to GitHub Copilot CLI
- The user wants a specific model (for example GPT-5.x, Claude Sonnet/Opus/Haiku, Gemini)
- The user asks for side-by-side model comparison on the same task
- The user wants a reusable scripted Copilot invocation
- The user wants Copilot session output exported to markdown for review

Trigger phrases:

- "ask copilot"
- "delegate to copilot"
- "run copilot cli"
- "use copilot with gpt-5"
- "use copilot with sonnet"
- "use copilot with gemini"
- "resume copilot session"

## Instructions

### 1) Verify prerequisites

```bash
# CLI availability
copilot --version

# GitHub authentication status
gh auth status
```

If `copilot` is unavailable, ask the user to install/setup GitHub Copilot CLI before proceeding.

### 2) Convert task request to English prompt

All delegated prompts to Copilot CLI must be in English.

- Keep prompts concrete and outcome-driven
- Include file paths, constraints, expected output format, and acceptance criteria
- Avoid ambiguous goals such as "improve this"

Prompt template:

```text
Task: <clear objective>
Context: <project/module/files>
Constraints: <do/don't constraints>
Expected output: <format + depth>
Validation: <tests/checks to run or explain>
```

### 3) Choose model intentionally

Pick a model based on task type and user preference.

- Complex architecture, deep reasoning: prefer high-capacity models (for example Opus / GPT-5.2 class)
- Balanced coding tasks: Sonnet-class model
````
END THIRD-PARTY FILE 4b68e1d2a81e602a

The third-party file has ended. Everything between the 4b68e1d2a81e602a tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2624 of 6388 bytes. © giuseppe-trisciuoglio · MIT · https://github.com/giuseppe-trisciuoglio/developer-kit/tree/HEAD/plugins/developer-kit-tools/skills/copilot-cli/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
