AGENT SKILL

copilot.quickstart

Agent workflow for running GitHub Copilot CLI in non-interactive programmatic mode.

License 许可
MIT
所属仓库
javimosch/supercli
最近更新
2026-11-02
Stars
★ 57
Forks
5

01 前言 Front Matter

name
copilot.quickstart
tags
copilot,github,ai,automation,headless
description
Agent workflow for running GitHub Copilot CLI in non-interactive programmatic mode.

02 资源文件 3

03 SKILL.md 正文

copilot Quickstart

Use this when you need GitHub Copilot CLI for scripted prompts and machine-readable outputs.

Commands

  • copilot <resource> <action> — Execute copilot commands
  • copilot cli version — Show installed Copilot CLI version
  • copilot task ask — Run a programmatic Copilot prompt and return text-only response
  • copilot task ask-json — Run a programmatic Copilot prompt with non-stream text output
  • copilot _ _ — Passthrough command to execute any Copilot CLI command

1) Install plugin and dependency

supercli plugins learn copilot
supercli plugins install copilot --json
npm install -g @github/copilot

2) Login and validate setup

copilot login
supercli copilot cli version

3) Programmatic usage

supercli copilot task ask --prompt "Summarize the current branch changes"
supercli copilot task ask-json --prompt "List top risks in this PR"

4) Full passthrough for advanced flags

supercli copilot -p "Explain this module" --output-format json
supercli copilot -p "Draft a migration plan" --agent my-agent --output-format json

5) Caveats

  • Current Copilot CLI build in this environment does not expose JSON output flags; task ask-json runs in non-stream text mode (--stream off).
  • Copilot may require repository trust and auth setup on first run.
  • Keep tool permissions explicit for automation; use passthrough to set advanced --allow-* options when needed.

04 同仓库更多 Skills