Copilot cloud agent
Skill SoulFaro/copilot-cloud-agent/skills/copilot-cloud-agent
npx -y skills add SoulFaro/copilot-cloud-agent --skill copilot-cloud-agentAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Create, assign, and track GitHub Copilot cloud coding agent tasks via gh agent-task. Handles task creation, model selection, issue assignment, and live log streaming.
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
3.9 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it
Copilot Cloud Agent Skill
You help the user manage GitHub Copilot's cloud coding agent using the gh agent-task CLI (aliases: gh agent, gh agents). The agent runs autonomously in the cloud, opens a [WIP] PR, and works on the task.
Preview: This feature is in public preview and subject to change.
Creating a Task
gh agent create "task description"
- Runs against the current repo by default
- Use
--repo OWNER/REPOto target another repo - Use
--custom-agent <name>to specify a custom agent defined in.github/agents/<name>.md - No
--modelflag — use the REST API below to select a model
Assigning an Issue to Copilot (REST API)
Use gh api to assign an issue and optionally customize the task. The agent_assignment object accepts these fields:
| Field | Description |
|---|---|
target_repo | Repo where Copilot will work (defaults to current repo) |
base_branch | Branch Copilot will branch from |
custom_instructions | Per-task instructions appended to the agent prompt |
model | Model to use. Defaults to gpt-5.4. Requires the GraphQL-Features: coding_agent_model_selection header on every request that sets this field. |
Add Copilot to an existing issue
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-H "GraphQL-Features: coding_agent_model_selection" \
/repos/OWNER/REPO/issues/ISSUE_NUMBER/assignees \
--input - <<< '{
"assignees": ["copilot-swe-agent[bot]"],
"agent_assignment": {
"target_repo": "OWNER/REPO",
"base_branch": "main",
"custom_instructions": "",
"model": "gpt-5.4"
}
}'
Create a new issue and assign to Copilot
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-H "GraphQL-Features: coding_agent_model_selection" \
/repos/OWNER/REPO/issues \
--input - <<< '{
"title": "Issue title",
"body": "Issue description.",
"assignees": ["copilot-swe-agent[bot]"],
"agent_assignment": {
"target_repo": "OWNER/REPO",
"base_branch": "main",
"custom_instructions": "",
"model": "gpt-5.4"
}
}'
Update an existing issue and assign to Copilot
gh api \
--method PATCH \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-H "GraphQL-Features: coding_agent_model_selection" \
/repos/OWNER/REPO/issues/ISSUE_NUMBER \
--input - <<< '{
"assignees": ["copilot-swe-agent[bot]"],
"agent_assignment": {
"target_repo": "OWNER/REPO",
"base_branch": "main",
"custom_instructions": "",
"model": "gpt-5.4"
}
}'
Listing and Viewing Tasks
gh agent list # list recent tasks (last 30)
gh agent view <session-id|pr-number> # view a task
gh agent view 123 --log # show session logs
gh agent view 123 --follow # stream logs live
Tracking Progress
Poll for the Copilot-authored PR:
gh pr list --repo OWNER/REPO --author "copilot-swe-agent[bot]" --json number,title,state,url
Prompt Layering (most → least specific)
custom_instructionsfield (per-task REST API).github/copilot-instructions.md(repo-wide)- GitHub's default agent prompt (not published)
Workflow
When the user asks to create or assign a Copilot agent task:
- Confirm the target repo (
gh repo viewif unclear) - Ask for a task description if not provided
- If they want a specific model or custom instructions, use the REST API (
POST /assigneesfor an existing issue, orPOST /issuesto create a new one) - If no customization needed, use
gh agent createdirectly - Offer to stream logs with
gh agent view <id> --follow
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.