Skill to create custom agents for VS Code Copilot or OpenCode, helping users configure and generate agent files with proper formatting and configurations. Use when users want to create specialized AI assistants for VS Code Copilot (.agent.md files) or OpenCode (JSON/markdown agent configs) with specific tools, prompts, models, and behaviors. If the user is not specific about the target platform, ask them to specify Copilot or OpenCode.
This skill guides the creation of custom agents for either VS Code Copilot or OpenCode. It helps users define agent properties like name, description, tools, models, and permissions, then generates the appropriate configuration file in the correct format.
Determine Target Platform: If not specified, ask the user whether they want to create an agent for Copilot or OpenCode.
Gather Agent Details: Collect information about the agent:
Generate Configuration: Create the agent file following the platform's specifications.
Custom agents for VS Code Copilot are defined in .agent.md files with YAML frontmatter.
File Structure:
description, name, tools, model, handoffsCommon Fields:
description: Brief description shown in chat inputtools: List of available toolsmodel: AI model to usehandoffs: Suggested next steps for workflow transitionsSee references/copilot-agents.md for complete documentation.
Agents for OpenCode can be defined in JSON config or Markdown files.
Configuration Options:
description: Required descriptionmode: "primary" or "subagent"model: Model identifiertools: Tool permissions (true/false)permissions: Granular control over actionstemperature: Response creativity (0.0-1.0)See references/opencode-agents.md for complete documentation.
copilot-agents.md: Full documentation for Copilot custom agentsopencode-agents.md: Full documentation for OpenCode agentscopilot-template.agent.md: Template for Copilot agent filesopencode-template.md: Template for OpenCode agent files