From copilot
Use when the user asks to run GitHub Copilot CLI, delegate a task to Copilot, or references Copilot for code analysis, refactoring, debugging, research, or automated editing. Also trigger when the user says things like "ask copilot", "use copilot to...", or wants a second AI opinion on a coding task. Do NOT trigger for general Copilot questions (e.g., "what is Copilot?") — only trigger when the user wants to *invoke* the Copilot CLI as a sub-agent.
How this skill is triggered — by the user, by Claude, or both
Slash command
/copilot:runThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
GitHub Copilot CLI is an AI-powered terminal coding agent. This skill delegates
GitHub Copilot CLI is an AI-powered terminal coding agent. This skill delegates
tasks to it via copilot -p (non-interactive prompt mode).
Confirm copilot is available:
copilot --version
If not found, install via one of:
winget install GitHub.Copilot (Windows)brew install copilot-cli (macOS/Linux)npm install -g @github/copilotStop and report failures if copilot --version exits non-zero.
Ask the user (via AskUserQuestion) which model to use AND which reasoning
effort level to use in a single prompt with two questions.
claude-sonnet-4.6 (default), claude-sonnet-4.5, claude-sonnet-4, gpt-5.2, gpt-5.4low, medium, high (default), xhighSelect the permission level based on the task:
--allow-all (default — safe for analysis)--allow-all (needed for file writes)--allow-all + confirm with user firstAssemble and execute the command:
copilot -p "your prompt here" \
--model claude-sonnet-4.6 \
--effort high \
--allow-all \
--no-ask-user \
--autopilot \
-s \
2>/dev/null
Summarize the output for the user, highlighting key findings or changes made.
After Copilot completes, inform the user: "You can resume this Copilot session at any time by saying 'copilot resume' or asking me to continue."
Always include these flags when using -p:
--allow-all — required for non-interactive execution (tools + paths + urls)--no-ask-user — Copilot cannot ask questions when running as a sub-process--autopilot — let Copilot continue working until the task is complete-s (--silent) — output only the agent response, no stats or UI chrome| Use case | Key flags |
|---|---|
| Read-only analysis | -p "prompt" --allow-all --no-ask-user --autopilot -s 2>/dev/null |
| Code edits | -p "prompt" --allow-all --no-ask-user --autopilot -s 2>/dev/null |
| Research (web) | -p "prompt" --allow-all --no-ask-user --autopilot -s 2>/dev/null |
| Specific directory | --add-dir /path/to/dir (add before other flags) |
| Structured output | --output-format json (JSONL, one object per line) |
| Save session log | --share ./copilot-output.md |
| Resume last session | copilot --continue --allow-all --no-ask-user --autopilot -s 2>/dev/null |
| Resume specific session | copilot --resume=<session-id> --allow-all --no-ask-user --autopilot -s 2>/dev/null |
# Model selection
--model claude-sonnet-4.6 # Default
--model claude-sonnet-4.5
--model claude-sonnet-4
--model gpt-5.2
--model gpt-5.4
# Reasoning effort
--effort low # Quick, simple tasks
--effort medium # Standard tasks
--effort high # Complex analysis (default recommendation)
--effort xhigh # Maximum reasoning depth
To continue a previous Copilot session:
# Resume the most recent session
copilot --continue --allow-all --no-ask-user --autopilot -s 2>/dev/null
# Resume a specific session by ID
copilot --resume=<session-id> --allow-all --no-ask-user --autopilot -s 2>/dev/null
When resuming, the previous session's context is preserved. You can provide
additional instructions by using -i "follow-up prompt" with --resume:
copilot --resume -i "Now also fix the edge case for empty input" \
--allow-all --no-ask-user --autopilot -s 2>/dev/null
Restate the chosen model and effort level when proposing follow-up actions.
Copilot is powered by its own AI models with their own knowledge cutoffs and limitations. Treat Copilot as a colleague, not an authority.
copilot --continue -i "Correction: the API changed in v3. The correct approach is..." \
--allow-all --no-ask-user --autopilot -s 2>/dev/null
copilot --version before first use in a session.
Stop and report if it fails.copilot -p exits non-zero, report the error and ask
the user for direction before retrying.--autopilot mode will continue until completion, but very large tasks may
take significant time.--add-dir rather than immediately escalating.-s (silent) to avoid stats/UI output cluttering Claude Code's context2>/dev/null to suppress stderr (thinking tokens, progress indicators)2>/dev/null and
tell the user you're showing verbose output--add-dir to scope Copilot to relevant
directories rather than the entire repo--output-format json when you need to parse Copilot's output
programmatically--share ./output.md to save a full session transcript for later reviewnpx claudepluginhub higebu/skills --plugin copilotDelegates tasks to GitHub Copilot CLI non-interactively with multi-model support (Claude, GPT, Gemini), permission controls, output sharing, and session resume. Useful for Copilot delegation requests, model comparisons, or programmatic runs.
Runs GitHub Copilot CLI as a read-only sub-agent for code review, research, and second opinions. Invoke via /gco or when Copilot is mentioned.
Internal guidance for composing Copilot prompts for coding, review, diagnosis, and research tasks across GPT-5.4, GPT-5.3-Codex, and Gemini 3.1 Pro inside the Copilot Claude Code plugin