/install copilot-cli-skill
GitHub Copilot CLI Operator
Use this skill to reliably call Copilot CLI from OpenClaw.
Core rules
- Verify Copilot CLI exists (
copilot --version) before first task. - Always run Copilot through OpenClaw
execwithpty:true. - Always set explicit
workdirto the target repository. - For long tasks, use
background:trueand track viaprocess. - Report clear milestones: started, waiting-input, finished/failed.
Execution patterns
One-shot coding task
Use:
exec.command:copilot -p "\x3Ctask>" --allow-all-toolsexec.pty:trueexec.workdir:\x3Crepo path>
Scoped tool approval
Use --allow-tool and --deny-tool to control what Copilot can do:
exec.command:copilot -p "\x3Ctask>" --allow-tool 'shell(git)' --allow-tool 'write'exec.pty:trueexec.workdir:\x3Crepo path>
To block dangerous operations:
copilot -p "\x3Ctask>" --allow-all-tools --deny-tool 'shell(rm)' --deny-tool 'shell(git push)'
Interactive session
Use:
exec.command:copilotexec.pty:trueexec.workdir:\x3Crepo path>
Long-running background task
- Start with
exec(background:true, pty:true, workdir, command:"copilot -p '...' --allow-all-tools") - Record returned
sessionId. - Poll with
process action:poll. - Read output with
process action:log. - If Copilot asks for input, use
process action:submit.
Resume a previous session
Use:
exec.command:copilot --resume(select from list)exec.command:copilot --continue(resume most recent)
Recommended prompts
- "Implement \x3Cfeature> with tests, run tests, and summarize changed files."
- "Find root cause for failing CI in this repo and propose minimal fix."
- "Review current branch diff and list high-risk issues first."
- "Work on issue https://github.com/owner/repo/issues/123 in a new branch."
- "Create a PR that updates the README with the latest API usage."
Guardrails
- Do not claim files were changed unless logs show completion.
- If
copilotis missing or auth fails, return exact remediation steps. - Keep OpenClaw tool config (
pty/workdir/background) separate from CLI args. - Prefer
--allow-toolwith specific scopes over--allow-all-toolsfor safety. - Use
--deny-tool 'shell(rm)'when working in directories with important data.
References
references/copilot-doc-summary.mdreferences/copilot-usage-recipes.mdscripts/run-copilot-example.sh
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install copilot-cli-skill - After installation, invoke the skill by name or use
/copilot-cli-skill - Provide required inputs per the skill's parameter spec and get structured output
What is Copilot Cli Skill?
Run GitHub Copilot CLI from OpenClaw for coding tasks in a target project directory. Use when the user asks OpenClaw to use Copilot for implementation, debug... It is an AI Agent Skill for Claude Code / OpenClaw, with 336 downloads so far.
How do I install Copilot Cli Skill?
Run "/install copilot-cli-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Copilot Cli Skill free?
Yes, Copilot Cli Skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Copilot Cli Skill support?
Copilot Cli Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Copilot Cli Skill?
It is built and maintained by saiph (@cecwxf); the current version is v1.0.0.