endorphin-ai/hasbrains-agent-kit / agent-engineering/skills/convert-to-copilot
convert-to-copilot
VerifiedThis 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.
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 1.9 KB |
| SKILL.md | skill md | 11.3 KB |
| assets/copilot-agent-template.md | markdown | 1.6 KB |
| examples/pr-reviewer.md | markdown | 5.2 KB |
| references/advanced-patterns.md | markdown | 3.6 KB |
| references/advanced-subagents.md | markdown | 4.0 KB |
| references/conversion-body.md | markdown | 4.4 KB |
| references/conversion-output.md | markdown | 3.1 KB |
| references/conversion-phases.md | markdown | 4.6 KB |
| references/tool-mapping.md | markdown | 6.1 KB |
| scripts/claude-to-copilot.sh | script | 4.6 KB |
| scripts/convert-agents.sh | script | 1.3 KB |
| scripts/copilot-to-claude.sh | script | 5.6 KB |
| scripts/lib-extract.sh | script | 1.8 KB |
scripts/convert-agents.sh
View on GitHub#!/usr/bin/env bash
# convert-agents.sh — scaffold conversion dispatcher
# Usage:
# ./convert-agents.sh claude-to-copilot <agent-file> [command-file]
# ./convert-agents.sh copilot-to-claude <agent-file>
#
# Reference: skills/convert-to-copilot/SKILL.md
set -euo pipefail
DIR="${1:-}"; AGENT_FILE="${2:-}"; CMD_FILE="${3:-}"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${SCRIPT_DIR}/lib-extract.sh"
usage() {
cat <<'EOF'
Usage:
convert-agents.sh claude-to-copilot <claude-agent-file> [command-file]
convert-agents.sh copilot-to-claude <copilot-agent-file>
Examples:
./convert-agents.sh claude-to-copilot ~/.claude/agents/pr-reviewer.md ~/.claude/commands/review-pr.md
./convert-agents.sh copilot-to-claude .github/agents/pr-reviewer.agent.md
After scaffolding, run /convert-to-copilot or /convert-from-copilot
in Claude Code for full content transformation.
EOF
exit 1
}
[[ -z "$DIR" || -z "$AGENT_FILE" ]] && usage
[[ ! -f "$AGENT_FILE" ]] && echo -e "${R}Error: $AGENT_FILE not found${NC}" && exit 1
case "$DIR" in
claude-to-copilot)
source "${SCRIPT_DIR}/claude-to-copilot.sh"
claude_to_copilot
;;
copilot-to-claude)
source "${SCRIPT_DIR}/copilot-to-claude.sh"
copilot_to_claude
;;
*)
usage
;;
esac
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |