Search

PythonReactSEOPDF
OpenClaw

copilot-cli-operator

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, debugging, refactoring, review, or scripted coding workflows.

cecwxf0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install cecwxf/copilot-cli-skill

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

GitHub Copilot CLI Operator

Use this skill to reliably call Copilot CLI from OpenClaw.

Core rules

  1. Verify Copilot CLI exists (copilot --version) before first task.
  2. Always run Copilot through OpenClaw exec with pty:true.
  3. Always set explicit workdir to the target repository.
  4. For long tasks, use background:true and track via process.
  5. Report clear milestones: started, waiting-input, finished/failed.

Execution patterns

One-shot coding task

Use:

  • exec.command: copilot -p "<task>" --allow-all-tools
  • exec.pty: true
  • exec.workdir: <repo path>
Scoped tool approval

Use --allow-tool and --deny-tool to control what Copilot can do:

  • exec.command: copilot -p "<task>" --allow-tool 'shell(git)' --allow-tool 'write'
  • exec.pty: true
  • exec.workdir: <repo path>

To block dangerous operations:

  • copilot -p "<task>" --allow-all-tools --deny-tool 'shell(rm)' --deny-tool 'shell(git push)'
Interactive session

Use:

  • exec.command: copilot
  • exec.pty: true
  • exec.workdir: <repo path>
Long-running background task
  1. Start with exec(background:true, pty:true, workdir, command:"copilot -p '...' --allow-all-tools")
  2. Record returned sessionId.
  3. Poll with process action:poll.
  4. Read output with process action:log.
  5. 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 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...

Source information

Source
github
Repository
openclaw/skills
Path
skills/cecwxf/copilot-cli-skill
Version
—
Commit
ca0e04c52b4b49e11f52f409b4c5c02cbedf1b85
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

README

Copilot CLI Operator — OpenClaw Skill

🤖 An OpenClaw skill that enables your agent to run GitHub Copilot CLI (copilot) for coding tasks — implementation, debugging, refactoring, review, and GitHub operations.

Files

File Description
SKILL.md Skill instructions for OpenClaw agent
references/copilot-doc-summary.md Summary of Copilot CLI documentation
references/copilot-usage-recipes.md Usage recipes and execution patterns
scripts/run-copilot-example.sh Example runner script

Prerequisites

  • Copilot CLI: npm install -g @github/copilot
  • Active GitHub Copilot subscription
  • Authentication: run copilot and use /login, or set COPILOT_GITHUB_TOKEN

Install

clawhub install copilot-cli-operator

Publish

clawhub publish . --version 1.0.0 --changelog "Initial release"

License

MIT-0 (as per ClawHub policy)

Extracted content

SKILL.md
# GitHub Copilot CLI Operator

Use this skill to reliably call Copilot CLI from OpenClaw.

## Core rules

1. Verify Copilot CLI exists (`copilot --version`) before first task.
2. Always run Copilot through OpenClaw `exec` with `pty:true`.
3. Always set explicit `workdir` to the target repository.
4. For long tasks, use `background:true` and track via `process`.
5. Report clear milestones: started, waiting-input, finished/failed.

## Execution patterns

### One-shot coding task

Use:
- `exec.command`: `copilot -p "<task>" --allow-all-tools`
- `exec.pty`: `true`
- `exec.workdir`: `<repo path>`

### Scoped tool approval

Use `--allow-tool` and `--deny-tool` to control what Copilot can do:
- `exec.command`: `copilot -p "<task>" --allow-tool 'shell(git)' --allow-tool 'write'`
- `exec.pty`: `true`
- `exec.workdir`: `<repo path>`

To block dangerous operations:
- `copilot -p "<task>" --allow-all-tools --deny-tool 'shell(rm)' --deny-tool 'shell(git push)'`

### Interactive session

Use:
- `exec.command`: `copilot`
- `exec.pty`: `true`
- `exec.workdir`: `<repo path>`

### Long-running background task

1. Start with `exec(background:true, pty:true, workdir, command:"copilot -p '...' --allow-all-tools")`
2. Record returned `sessionId`.
3. Poll with `process action:poll`.
4. Read output with `process action:log`.
5. 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 <feature> 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...
README
# Copilot CLI Operator — OpenClaw Skill

🤖 An [OpenClaw](https://clawhub.ai) skill that enables your agent to run **GitHub Copilot CLI** (`copilot`) for coding tasks — implementation, debugging, refactoring, review, and GitHub operations.

## Files

| File | Description |
|------|-------------|
| `SKILL.md` | Skill instructions for OpenClaw agent |
| `references/copilot-doc-summary.md` | Summary of Copilot CLI documentation |
| `references/copilot-usage-recipes.md` | Usage recipes and execution patterns |
| `scripts/run-copilot-example.sh` | Example runner script |

## Prerequisites

- [Copilot CLI](https://docs.github.com/en/copilot/how-tos/set-up/install-copilot-cli): `npm install -g @github/copilot`
- Active GitHub Copilot subscription
- Authentication: run `copilot` and use `/login`, or set `COPILOT_GITHUB_TOKEN`

## Install

```bash
clawhub install copilot-cli-operator
```

## Publish

```bash
clawhub publish . --version 1.0.0 --changelog "Initial release"
```

## License

MIT-0 (as per ClawHub policy)

Related skills

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

dojo.md

edholofy

University for AI agents. 92 courses, 4400+ scenarios, any model via OpenRouter. Auto-training loops generate per-model SKILL.md documents. Works with Claude Code, OpenClaw, Cursor, Windsurf. No fine-tuning req...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

wps-macos-helper

lethehades

macOS WPS Office workflow helper skill for safer document preparation, conversion, export, and compatibility guidance