Copilot Delegate
Delegate a coding task to the GitHub Copilot CLI (`copilot`) as a background...
Install
npx skills add amElnagdy/delegate-skills --skill copilot-delegate -g -a claude-code -y- Repository
- amElnagdy/delegate-skills2.5k
- Category
- Git and review
- Updated
- 6d ago
- License
- MIT
- Context cost
- Mediumabout 1,764 tokens
- Runs scripts
- Yes, review before use
What it does
Delegate a coding task to the GitHub Copilot CLI (`copilot`) as a background implementer, then review its diff and land it yourself. Use this whenever the user wants to delegate implementation work to Copilot - phrasings like "have Copilot implement X", "delegate this to copilot", "run it through Copilot CLI", or "use copilot to implement/fix/refactor" - or wants to run a queue of coding tasks through Copilot while staying the reviewer. DO NOT USE for tasks small enough to do inline, or when the user wants the code written directly without delegating.
Copilot Delegate
You are the orchestrator. Delegate a bounded coding task to a separate implementer, the GitHub Copilot CLI, then review what it produced and land it yourself. You write the brief and own the judgment; the implementer makes changes in its own session in a clean working tree; you verify and commit.
The loop needs only a shell command and file access, so any comparable orchestrator can drive it.
When NOT to use this
- The task is small enough to do inline; delegation overhead is not worth it.
- The
copilotCLI is not installed or authenticated. - You need a hard sandbox. Copilot exposes sandbox controls, but they are upstream-experimental
(MXC-based, controlled via the
/sandboxcommand and settings, disabled by default), this relay does not configure them.--read-onlyonly disables edit tools (--mode plan); shell commands still run. If project files must not change at all, dispatch against a clean or isolated worktree.
Prerequisites (check once)
- Install
copilot(npm install -g @github/copilot; the CLI requires Node 22+, the relay itself runs on Node 18+, the relay probescopilot version). - Authenticate: run
copilot login(interactive web/device flow), or setCOPILOT_GITHUB_TOKEN/GH_TOKEN/GITHUB_TOKENin the environment. - Confirm
copilot versionsucceeds. - Work in, or point
--cdat, the target git repository.
Choose the model (optional)
Copilot picks a default model (auto). To choose another, pass --model <name>.
The relay accepts letters, digits, and . _ : / - only (the value reaches a shell on Windows).
Choose the effort (optional)
Copilot supports a reasoning effort dial: --effort <level> with values
low, medium, high, xhigh, or max. The relay rejects any other value
before dispatch.
The loop
Run these five steps per task. Steps 1, 4, and 5 require judgment; 2 and 3 are mechanical.

