Skip to content
Skills Library
AI & agents · Conversion & formats

convert-to-copilot

/convert-to-copilot

This skill should be used when converting a Claude Code agent (+ its launch command + its skills) into a single GitHub Copilot agent (.github/agents/*.agent.md) with supporting context files under .copilot_utils/{agent_name}/. Load when someone says 'convert to copilot', 'make copilot agent', 'copilot version of this agent', 'port this agent to copilot', or when /convert-to-copilot is invoked with an agent file path.

Licence
MIT
Last repository change
13.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
14
Scripts
4
HTML comments
0
URLs in SKILL.md
3
Deprecation

No signals detected. Repository changed on 13.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 4 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/claude-to-copilot.sh, scripts/convert-agents.sh, scripts/copilot-to-claude.sh, scripts/lib-extract.sh

What it does and when to use it

This skill should be used when converting a Claude Code agent (+ its launch command + its skills) into a single GitHub Copilot agent (.github/agents/*.agent.md) with supporting context files under .copilot_utils/{agent_name}/. Load when someone says 'convert to copilot', 'make copilot agent', 'copilot version of this agent', 'port this agent to copilot', or when /convert-to-copilot is invoked with an agent file path.

Triggers from the description

convert to copilotmake copilot agentcopilot version of this agentport this agent to copilot
Original author description

This skill should be used when converting a Claude Code agent (+ its launch command + its skills) into a single GitHub Copilot agent (.github/agents/*.agent.md) with supporting context files under .copilot_utils/{agent_name}/. Load when someone says 'convert to copilot', 'make copilot agent', 'copilot version of this agent', 'port this agent to copilot', or when /convert-to-copilot is invoked with an agent file path.

How it works

  1. Canonical Output Structure
  2. Three-File Separation Principle
  3. Variables
  4. External Reference (fetch first)
  5. ALWAYSDO
  6. NEVERDO
  7. Progress Tracking (mandatory)
  8. Phase Overview
  9. Key Conversion Rules
  10. Frontmatter Rules
Original SKILL.md headings · 236 lines, 1,247 words
SKILL.md preview
---
name: convert-to-copilot
description: "This skill should be used when converting a Claude Code agent (+ its launch command + its skills) into a single GitHub Copilot agent (.github/agents/*.agent.md) with supporting context files under .copilot_utils/{agent_name}/. Load when someone says 'convert to copilot', 'make copilot agent', 'copilot version of this agent', 'port this agent to copilot', or when /convert-to-copilot is invoked with an agent file path."
---

# Convert Claude Code → GitHub Copilot Agent

Converts a Claude Code agent + command + skills into a `.github/agents/*.agent.md` with supporting
files in a per-agent `.copilot_utils/{agent_name}/` directory.

---

## Canonical Output Structure

```
.github/
└── agents/
    └── {agent_name}.agent.md       ← single merged file (agent + command)

.copilot_utils/
└── {agent_name}/
    ├── context/                    ← WHAT to use (knowledge, conventions, reference)
    │   └── {skill}.md
    └── trees/                      ← HOW to decide (branching, if/else logic)
        └── {skill}.md
```

**External guide:** https://github.com/endorphin-ai/vs-code-copilot-agents/blob/main/COPILOT_AGENTS_GUIDE.md

---

## Three-File Separation Principle

Every file has exactly one role:

| File Type   | Location                               | Contains                                      | Example                                          |
| ----------- | -------------------------------------- | --------------------------------------------- | ------------------------------------------------ |
| **Agent**   | `.github/agents/`                      | WHAT to do — workflow, phases, orchestration  | "Read file, apply tree, validate, create output" |
| **Tree**    | `.copilot_utils/{agent_name}/trees/`   | HOW to decide — if/else branching logic       | "If label contains X → use path Y"               |
| **Context** | `.copilot_utils/{agent_name}/context/` | WHAT to use — reference info, patterns, rules | "Available scaffolds: A, B, C"                   |

**NEVER embed knowledge or decision logic in the agent body.** Reference files instead:

- Decisions → `**Apply tree:** .copilot_utils/{agent_name}/trees/{file}.md`
- Reference → `**Reference:** .copilot_utils/{agent_name}/context/{file}.md`

---

## Variables

```
{agent_file}      = $ARGUMENTS (path to Claude agent .md file)
{command_file}    = (path to Claude command .md — ask if not provided)
{agent_name}      = (extracted from agent frontmatter `name` field)
{output_agent}    = .github/agents/{agent_name}.agent.md
{output_dir}      = .copilot_utils/{agent_name}
{trees_dir}       = .copilot_utils/{agent_name}/trees
{knowledge_dir}   = .copilot_utils/{agent_name}/context
{output_folder}   = .copilot-convert-results
```

---

## External Reference (fetch first)

```
WebFetch https://raw.githubusercontent.com/endorphin-ai/vs-code-copilot-agents/main/COPILOT_AGENTS_GUIDE.md
```

Authoritative Copilot spec. If anything in this skill conflicts with the guide, the guide wins.

---

## ALWAYS_DO

- **ALWAYS** fetch the external guide before starting conversion
- **ALWAYS** read the full agent, command, and every linked skill before writing any output
- **ALWAYS** merge command description triggers and `argument-hint` into the Copilot agent `description` field
- **ALWAYS** use `manage_todo_list` with `"operation": "write"` + full todoList before any work starts — bare JSON arrays fail
- **ALWAYS** drop `color`, `memory`, `isolation`, `skills`, `allowed-tools` from converted frontmatter
- **ALWAYS** validate every `.copilot_utils/{agent_name}/` path referenced in the body resolves to a real file

## NEVER_DO

- **NEVER** create `.prompt.md`, `.instructions.md`, or `.github/skills/` — Copilot uses a single merged agent file
- **NEVER** use `"fetch"` in `tools[]` — the correct alias is `"web"`
- **NEVER** embed decision logic or knowledge reference content inline in the agent body — always reference the file
- **NEVER** call `manage_todo_list` with a bare JSON array — always include `"operation": "write"`
- **NEVER** preserve `color`, `memory`, `isolation`, `skills`, `allowed-tools` fields in converted frontmatter

---

## Progress Tracking (mandatory)

```
TaskCreate(subject="Phase 1: Read all source files",       status="pending")
TaskCreate(subject="Phase 2: Scaffold output directories", status="pending")
TaskCreate(subject="Phase 3: Build agent frontmatter",     status="pending")
TaskCreate(subject="Phase 4: Convert agent body",          status="pending")
TaskCreate(subject="Phase 5: Write output files",          status="pending")
TaskCreate(subject="Phase 6: Validate",                    status="pending")
TaskCreate(subject="Phase 7: Conversion report",           status="pending")
```

---

## Phase Overview

| Phase | Action                                                            | Output                                |
| ----- | ----------------------------------------------------------------- | ------------------------------------- |
| 1     | Read agent, command, all skills                                   | `{output_folder}/1-source-context.md` |
| 2     | Create `.copilot_utils/{agent_name}/` directories                 | directories on disk                   |
| 3     | Build Copilot frontmatter                                         | `{output_folder}/3-frontmatter.md`    |
| 4     | Convert body: tracking, references, skill refs, memory            | `{output_folder}/4-body.md`           |
| 5     | Write `{output_agent}` + all `.copilot_utils/{agent_name}/` files | final output files                    |
| 6     | Validate against checklist                                        | `{output_folder}/6-validation.md`     |
| 7     | Print conversion report                                           | console                               |

Phases 1–3: `references/conversion-phases.md`
Phase 4: `references/conversion-body.md`
Phases 5–7: `references/conversion-output.md`

---

## Key Conversion Rules

### Skill → copilot_utils Mapping

| Skill content type                             | Destination                            |
| ---------------------------------------------- | -------------------------------------- |
| SKILL.md — knowledge, conventions, reference   | `{knowledge_dir}/{skill}.md`           |
| SKILL.md — decision trees, "if X then Y" logic | `{trees_dir}/{skill}.md`               |
| templates, schemas, output formats             | `{knowledge_dir}/{skill}-templates.md` |
| example files                                  | `{knowledge_dir}/{skill}-examples.md`  |
| shell scripts (`.sh`), python (`.py`)          | project `scripts/` or tool call inline |

**Classification rule:**

- "When you see X, do Y" / branching / diagnosis → **trees/**
- "Here is how things work, here are conventions" → **context/** (knowledge)
- Skill has both → copy full file to **context/**, extract decision sections to **trees/**

### Tool Mapping (quick reference)

| Claude                  | Copilot `tools[]`                  |
| ----------------------- | ---------------------------------- |
| Read                    | `"read"`                           |
| Write / Edit            | `"edit"`                           |
| Bash                    | `"execute"`                        |
| Grep / Glob             | `"search"`                         |
| WebFetch / WebSearch    | `"web"` ⚠️ NOT `"fetch"`           |
| TaskCreate / TaskUpdate | `"todo"`                           |
| Agent (sub-agent)       | `"agent"`                          |
| Jira MCP                | `"atlassian/*"` or explicit mcp ID |
| GitHub MCP              | `"github/*"`                       |

Full table + wildcards + execute variants: `references/tool-mapping.md`

### Model Expansion

| Claude    | Copilot                  |
| --------- | ------------------------ |
| `opus`    | `"Claude Opus 4.5"`      |
| `sonnet`  | `"Claude Sonnet 4.5"`    |
| `haiku`   | `"Claude Haiku 4.5"`     |
| `inherit` | omit or use most capable |

### manage_todo_list Format

Initial setup (one call before any work):

```json
{ "operation": "write", "todoList": [{ "id": 1, "title": "Phase 1: ...", "status": "not-started" }] }
```

Per-phase updates:

```json
{ "operation": "update", "updates": [{ "id": 1, "status": "in-progress" }] }
{ "operation": "update", "updates": [{ "id": 1, "status": "completed" }] }
```

### `handoffs` — VS Code sub-agent delegation

When Claude agent spawns sub-agents (`Task(subagent_type=...)`), convert based on `target`:

- `target: 'vscode'` → use `handoffs` in frontmatter
- `target: 'github-copilot'` → use `runSubagent()` in body

Full patterns: `references/advanced-patterns.md` and `references/advanced-subagents.md`

---

## Frontmatter Rules

| Field           | Required    | Notes                                      |
| --------------- | ----------- | ------------------------------------------ |
| `description`   | **Yes**     | Single-quoted, 50–150 chars                |
| `tools`         | Optional    | Omit = all tools; list for least-privilege |
| `model`         | Recommended | Full name: `'Claude Sonnet 4.5'`           |
| `name`          | Optional    | Defaults to filename                       |
| `target`        | Optional    | `'vscode'` or `'github-copilot'`           |
| `infer`         | Optional    | `false` to require explicit argument       |
| `argument-hint` | Optional    | VS Code only                               |
| `handoffs`      | Optional    | VS Code only — sub-agent delegation        |

Drop from Claude: `color`, `memory`, `isolation`, `skills`, `allowed-tools`

---

## Validation Checklist

Before writing any output file, verify:

- [ ] `{output_agent}` exists with `description` (50-150 chars, single-quoted)
- [ ] `tools` array uses correct aliases (`"web"` not `"fetch"`, `"todo"` not `"task"`)
- [ ] `description` contains trigger phrases from original command
- [ ] No separate command / prompt / instruction file was created
- [ ] Progress tracking uses `manage_todo_list` with `operation: write` format
- [ ] Every `.copilot_utils/{agent_name}/` path referenced in body resolves to a real file
- [ ] Agent body references knowledge via `**Reference:**` syntax (not embedded inline)
- [ ] Agent body references trees via `**Apply tree:**` syntax (not embedded inline)
- [ ] `handoffs` present when VS Code + sub-agents; `runSubagent()` when GitHub Copilot + sub-agents
- [ ] Agent body ≤ 30,000 characters

---

## References

- `references/conversion-phases.md` — phases 1–3: reading sources, scaffold, frontmatter build
- `references/conversion-body.md` — phase 4: full body conversion rules (task tracking, skill refs, memory)
- `references/conversion-output.md` — phases 5–7: write files, validate, conversion report
- `references/tool-mapping.md` — full tool/model tables, frontmatter fields, wildcards
- `references/advanced-patterns.md` — reference syntax, dynamic params, variable flow, execution strategy
- `references/advanced-subagents.md` — handoffs, runSubagent, parallel ops, return format, manage_todo_list
- `examples/pr-reviewer.md` — complete worked example
- `scripts/convert-agents.sh` — scaffold script (structure only, no content transformation)
- `assets/copilot-agent-template.md` — Copilot agent frontmatter template
- External: https://github.com/endorphin-ai/vs-code-copilot-agents/blob/main/COPILOT_AGENTS_GUIDE.md
Files in this package (14)
  • README.md 2 KB
  • SKILL.md 11 KB
  • assets/copilot-agent-template.md 2 KB
  • examples/pr-reviewer.md 5 KB
  • references/advanced-patterns.md 4 KB
  • references/advanced-subagents.md 4 KB
  • references/conversion-body.md 4 KB
  • references/conversion-output.md 3 KB
  • references/conversion-phases.md 5 KB
  • references/tool-mapping.md 6 KB
  • scripts/claude-to-copilot.sh 5 KB
  • scripts/convert-agents.sh 1 KB
  • scripts/copilot-to-claude.sh 6 KB
  • scripts/lib-extract.sh 2 KB

Versions

The database has no other skills named convert-to-copilot.

Database snapshot: 13.11.2026 · package version 39eccb3504ef (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100agent-skills
    Guidelines for creating high-quality Agent Skills for GitHub Copilot Triggers on: **/.github/skills/**/SKILL.md, **/.claude/skills/**/SKILL.md
  • 100neo-sub-agent
    Use this skill when the user asks to design, create, review, or convert sub-agents, custom agents, worker/reviewer/planner agents, background agents, or multi-agent workflows for Antigravity CLI, Codex, Claude Code, GitHub Copilot CLI, or neutral agent blueprints.
  • 90make-skill
    Create, review, or fix Agent Skills for GitHub Copilot. Use when asked to create, scaffold, improve, or repair a SKILL.md and its paired harness evaluation.
  • 95improve-agent
    Guide for improving GitHub Copilot Agent performance through skills, custom instructions, AGENTS.md, or other configuration. Use this when asked to improve agent behavior, create/update skills, modify custom instructions, update AGENTS.md, or customize GitHub Copilot performance in repositories.
  • 100github-agents
    This skill should be used when delegating work to agents that run inside GitHub — Copilot cloud agent, custom agents, Copilot code review, and GitHub Agentic Workflows — including when delegation beats doing the work directly.
  • 95copilot-cowork-package
    Use when the user wants to turn a Bifrost agent into a Microsoft 365 Copilot Cowork plugin (.zip with manifest.json + skills/SKILL.md + agentConnectors pointing at the agent's MCP server). Trigger phrases — "/copilot-cowork-package", "turn my <agent> into a Copilot skill",…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.