Generate custom GitHub Copilot agents (.agent.md files) for VS Code with proper YAML frontmatter, tools configuration, and handoff workflows. Use when "create copilot agent", "generate github copilot agent", "new copilot agent for", "make a copilot agent", or "build copilot agent".
/plugin marketplace add daispacy/py-claude-marketplace/plugin install py-plugin@py-claude-marketplaceThis skill is limited to using the following tools:
examples.mdtemplates.mdGenerate custom GitHub Copilot agents following VS Code's .agent.md format with proper YAML frontmatter and markdown instructions.
Trigger this skill when user says:
Ask user for agent configuration:
Agent Purpose & Name:
Tools Selection (multi-select):
fetch - Retrieve web content and documentationsearch - Search codebase and filesgithubRepo - Access GitHub repository datausages - Find code references and usage patternsfiles - File operationsHandoff Workflows (optional):
Additional Configuration (optional):
# Ensure .github/agents directory exists
mkdir -p .github/agents
Create .github/agents/{agent-name}.agent.md with:
YAML Frontmatter Structure:
---
description: [Brief overview shown in chat input]
name: [Agent identifier, lowercase with hyphens]
tools: [Array of tool names]
handoffs: # Optional
- label: [Button text]
agent: [Target agent name]
prompt: [Handoff message]
send: [true/false - auto-submit?]
model: [Optional - specific model name]
argument-hint: [Optional - user guidance text]
---
Markdown Body:
#tool:toolname)Ensure generated file has:
--- delimitersShow user:
✅ GitHub Copilot Agent Created
📁 Location: `.github/agents/{name}.agent.md`
🎯 Agent: {name}
📝 Description: {description}
🛠️ Tools: {tools list}
To use:
1. Reload VS Code window (Cmd/Ctrl + Shift + P → "Reload Window")
2. Open GitHub Copilot Chat
3. Type `@{name}` to invoke your custom agent
{If handoffs configured: "This agent can hand off to: {handoff targets}"}
After creation, provide:
templates.mdexamples.mdfeature-planner, security-reviewer)#tool:toolname syntax in markdown bodyPlanning Agent:
fetch, search, githubRepo, usagesImplementation Agent:
search, files, usagesReview Agent:
search, githubRepo, usagesTesting Agent:
search, filesReady to build custom GitHub Copilot agents!