Skip to content

endorphin-ai/hasbrains-agent-kit / agent-engineering/skills/convert-to-copilot

convert-to-copilot

Verified

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.

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
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: 471kUpdated Claude CodeCodexVerifiedInstall
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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 322kUpdated Claude CodeCodexVerifiedInstall