Copilot Export Skill
Overview
This meta-skill converts Agent Zero artifacts (skills, agents, prompts) into GitHub Copilot compatible formats. It ensures seamless interoperability between the Agent Zero framework and GitHub Copilot by generating proper configuration files, agent profiles, and instruction documents.
When to Use
Activate this skill when:
- Converting existing SKILL.md files to GitHub Copilot custom agents
- Exporting Agent Zero skills for use with Copilot
- Creating dual-compatible skills that work in both systems
- Generating MCP server configurations for tools not native to Copilot
- Building a skill library that bridges Agent Zero and GitHub Copilot
Capabilities
SKILL.md to Copilot Agent Profile Conversion
- Parse SKILL.md YAML frontmatter and content
- Generate
.agent.mdcustom agent profile - Map
allowed-toolsto Copilot tool aliases
AGENTS.md Generation
- Extract build steps, testing, and conventions from skill content
- Generate
AGENTS.mdfollowing the open standard - Only creates sections if content exists in source
Tool Mapping
- Convert Agent Zero tools to Copilot aliases
- Identify tools requiring MCP servers
- Generate MCP server configurations
Agent Profile Generation
- Create custom agent profiles from Agent Zero skill definitions
- Support for tool lists and MCP server configuration
- Preserve original skill metadata
Conditional Output Generation
- Only create files when source artifacts exist
- Skip missing components gracefully
- Report what was and wasn't converted
Output Files
The skill generates the following files in the .github/{skillname}/ directory:
| File | Description |
|---|---|
{skill-name}.agent.md |
Custom agent profile with YAML frontmatter |
AGENTS.md |
Build/test/conventions (only if sections exist in source) |
SKILL.md |
Copy of the original skill file |
mcp-servers.json |
MCP configuration for tools requiring external servers |
Step-by-Step Instructions
Phase 1: Analyze Source Artifact
Identify the source type:
- Skill: Look for
SKILL.mdfile
- Skill: Look for
Check if source exists:
ls -la /path/to/skill/SKILL.mdParse YAML frontmatter if present (SKILL.md)
Extract key content (description, instructions, tool lists)
Phase 2: Tool Mapping
Map Agent Zero tools to Copilot aliases:
Agent Zero Tool Copilot Alias Requires MCP? code_execution_toolexecuteNo document_queryreadNo search_enginewebNo browser_agentN/A Yes (Puppeteer MCP) memory_saveN/A Yes (Memory MCP) memory_loadN/A Yes (Memory MCP) call_subordinateagentNo For tools requiring MCP:
- Generate MCP server configuration
- Document limitation in output
Phase 3: Generate Copilot Files
Create
.github/{skillname}/directory structure:mkdir -p /path/to/export/.githubGenerate custom agent profile (
.agent.md):--- name: {skill-name} description: {description from SKILL.md} tools: [{mapped-tools}] mcp-servers: {server-config-if-needed} --- {agent-prompt-from-skill-content}Generate AGENTS.md (if build/test info exists):
- Only includes ## Build Steps, ## Testing, ## Conventions if content is present
- Otherwise shows ## Additional Information pointing to .agent.md
Copy original SKILL.md to preserve the source
Generate
mcp-servers.jsonfor tools needing MCP
Edge Cases
No SKILL.md found
- Report error: "Skill file not found"
- No output files created
No allowed-tools specified
- Use default Copilot tools (
read,edit,execute,search) - Warn: "No allowed-tools specified, using defaults"
- Use default Copilot tools (
Unknown tool names
- Skip unknown tools
- Report: "Unknown tool: {tool-name}, skipping"
- Add to recommendations list
Empty skill content
- Still create agent profile with frontmatter only
- Add placeholder: "# Agent prompt to be defined"
No Build/Testing/Conventions sections
- Skip these sections in AGENTS.md
- Add note pointing to .agent.md for full details
Tool Alias Reference
Copilot Built-in Tool Aliases
execute- Run terminal commandsread- Read file contentsedit- Edit/apply changes to filessearch- Search files or textagent- Invoke another custom agentweb- Fetch URL content or search web
MCP Tool Prefix
- Format:
{mcp-server-name}/{tool-name} - Wildcard:
{mcp-server-name}/*(all tools from server)
Notes
- This is a meta-skill that operates on other skills
- Always check if source artifact exists before conversion
- Generated files are placed in
.github/{skillname}/directory - Tool mapping is one-way (Agent Zero → Copilot)
- MCP configurations are templates; users must have MCP servers running
- Use
document_queryto read source files before conversion - Use
code_execution_toolto write generated files
Skill Version: 1.0 | Author: Agent Zero | Based on agentskills.io specification Converts: SKILL.md → GitHub Copilot formats