/vibe:ghcopilot-instr-agentsfrom vibe
Provides guidelines for creating custom GitHub Copilot agent files with YAML frontmatter, including required fields like description, name, tools, model, and target.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Instructions for creating effective and maintainable custom agent files that provide specialized expertise for specific development tasks in GitHub Copilot.
test-specialist.agent.md).github/agents/ directory (repository-level) or agents/ directory (organization/enterprise-level)Every agent file must include YAML frontmatter with the following fields:
---
description: 'Brief description of the agent purpose and capabilities'
name: 'Agent Display Name'
tools: ['read', 'edit', 'search']
model: 'Claude Sonnet 4.5'
target: 'vscode'
---
'Focuses on test coverage, quality, and testing best practices'.md or .agent.md)'Testing Specialist''Claude Sonnet 4.5', 'gpt-4', 'gpt-4o''vscode' or 'github-copilot'true if omittedfalse to create agents that are only accessible as subagents or programmaticallyfalse if omittedtrue to prevent subagent invocation while keeping it available in the pickermetadata: { category: 'testing', version: '1.0' }Handoffs enable you to create guided sequential workflows that transition seamlessly between custom agents. This is useful for orchestrating multi-step development workflows where users can review and approve each step before moving to the next one.
Define handoffs in the agent file's YAML frontmatter using the handoffs field:
---
description: 'Brief description of the agent'
name: 'Agent Name'
tools: ['search', 'read']
handoffs:
- label: Start Implementation
agent: implementation
prompt: 'Now implement the plan outlined above.'
send: false
- label: Code Review
agent: code-review
prompt: 'Please review the implementation for quality and security issues.'
send: false
---
Each handoff in the list must include the following properties:
| Property | Type | Required | Description |
|---|---|---|---|
label | string | Yes | The display text shown on the handoff button in the chat interface |
agent | string | Yes | The target agent identifier to switch to (name or filename without .agent.md) |
prompt | string | No | The prompt text to pre-fill in the target agent's chat input |
send | boolean | No | If true, automatically submits the prompt to the target agent (default: false) |
prompt is specified, it appears pre-filled in the target agent's chat inputsend: false, users must review and manually send the pre-filled prompt; when send: true, the prompt is automatically submittedClear Labels: Use action-oriented labels that clearly indicate the next step
Relevant Prompts: Provide context-aware prompts that reference the completed work
'Now implement the plan outlined above.'Selective Use: Don't create handoffs to every possible agent; focus on logical workflow transitions
Agent Dependencies: Ensure target agents exist before creating handoffs
Prompt Content: Keep prompts concise and actionable
Here's an example of three agents with handoffs creating a complete workflow:
Planning Agent (planner.agent.md):
---
description: 'Generate an implementation plan for new features or refactoring'
name: 'Planner'
tools: ['search', 'read']
handoffs:
- label: Implement Plan
agent: implementer
prompt: 'Implement the plan outlined above.'
send: false
---
# Planner Agent
You are a planning specialist. Your task is to:
1. Analyze the requirements
2. Break down the work into logical steps
3. Generate a detailed implementation plan
4. Identify testing requirements
Do not write any code - focus only on planning.
Implementation Agent (implementer.agent.md):
---
description: 'Implement code based on a plan or specification'
name: 'Implementer'
tools: ['read', 'edit', 'search', 'execute']
handoffs:
- label: Review Implementation
agent: reviewer
prompt: 'Please review this implementation for code quality, security, and adherence to best practices.'
send: false
---
# Implementer Agent
You are an implementation specialist. Your task is to:
1. Follow the provided plan or specification
2. Write clean, maintainable code
3. Include appropriate comments and documentation
4. Follow project coding standards
Implement the solution completely and thoroughly.
Review Agent (reviewer.agent.md):
---
description: 'Review code for quality, security, and best practices'
name: 'Reviewer'
tools: ['read', 'search']
handoffs:
- label: Back to Planning
agent: planner
prompt: 'Review the feedback above and determine if a new plan is needed.'
send: false
---
# Code Review Agent
You are a code review specialist. Your task is to:
1. Check code quality and maintainability
2. Identify security issues and vulnerabilities
3. Verify adherence to project standards
4. Suggest improvements
Provide constructive feedback on the implementation.
This workflow allows a developer to:
Enable all tools (default):
# Omit tools property entirely, or use:
tools: ['*']
Enable specific tools:
tools: ['read', 'edit', 'search', 'execute']
Enable MCP server tools:
tools: ['read', 'edit', 'github/*', 'playwright/navigate']
Disable all tools:
tools: []
All aliases are case-insensitive:
| Alias | Alternative Names | Category | Description |
|---|---|---|---|
execute | shell, Bash, powershell | Shell execution | Execute commands in appropriate shell |
read | Read, NotebookRead, view | File reading | Read file contents |
edit | Edit, MultiEdit, Write, NotebookEdit | File editing | Edit and modify files |
search | Grep, Glob, search | Code search | Search for files or text in files |
agent | custom-agent, Task | Agent invocation | Invoke other custom agents |
web | WebSearch, WebFetch | Web access | Fetch web content and search |
todo | TodoWrite | Task management | Create and manage task lists (VS Code only) |
GitHub MCP Server:
tools: ['github/*'] # All GitHub tools
tools: ['github/get_file_contents', 'github/search_repositories'] # Specific tools
Playwright MCP Server:
tools: ['playwright/*'] # All Playwright tools
tools: ['playwright/navigate', 'playwright/screenshot'] # Specific tools
execute access unless explicitly requiredAgents can invoke other agents using the agent invocation tool (the agent tool) to orchestrate multi-step workflows.
The recommended approach is prompt-based orchestration:
.agent.md spec for tools/constraints.agent in the orchestrator's tools list:tools: ['read', 'edit', 'search', 'agent']
.agent.md file to read and follow)basePath, projectName, logFile)Use a consistent “wrapper prompt” for every step so sub-agents behave predictably:
This phase must be performed as the agent "<AGENT_NAME>" defined in "<AGENT_SPEC_PATH>".
IMPORTANT:
- Read and apply the entire .agent.md spec (tools, constraints, quality standards).
- Work on "<WORK_UNIT_NAME>" with base path: "<BASE_PATH>".
- Perform the necessary reads/writes under this base path.
- Return a clear summary (actions taken + files produced/modified + issues).
Optional: if you need a lightweight, structured wrapper for traceability, embed a small JSON block in the prompt (still human-readable and tool-agnostic):
{
"step": "<STEP_ID>",
"agent": "<AGENT_NAME>",
"spec": "<AGENT_SPEC_PATH>",
"basePath": "<BASE_PATH>"
}
For maintainable orchestrators, document these structural elements:
projectName, fileName, basePath).agentName + agentSpecPath.Avoid embedding orchestration “code” (JavaScript, Python, etc.) inside the orchestrator prompt; prefer deterministic, tool-driven coordination.
Structure each step invocation with:
agentName + agentSpecPathStep 1: Transform raw input data
Agent: data-processor
Spec: .github/agents/data-processor.agent.md
Context: projectName=${projectName}, basePath=${basePath}
Input: ${basePath}/raw/
Output: ${basePath}/processed/
Expected: write ${basePath}/processed/summary.md
Step 2: Analyze processed data (depends on Step 1 output)
Agent: data-analyst
Spec: .github/agents/data-analyst.agent.md
Context: projectName=${projectName}, basePath=${basePath}
Input: ${basePath}/processed/
Output: ${basePath}/analysis/
Expected: write ${basePath}/analysis/report.md
${variableName} for all dynamic valuesCritical: If a sub-agent requires specific tools (e.g., edit, execute, search), the orchestrator must include those tools in its own tools list. Sub-agents cannot access tools that aren't available to their parent orchestrator.
Example:
# If your sub-agents need to edit files, execute commands, or search code
tools: ['read', 'edit', 'search', 'execute', 'agent']
The orchestrator's tool permissions act as a ceiling for all invoked sub-agents. Plan your tool list carefully to ensure all sub-agents have the tools they need.
Sub-agent orchestration is NOT suitable for large-scale data processing. Avoid using multi-step sub-agent pipelines when:
Each sub-agent invocation adds latency and context overhead. For high-volume processing, implement logic directly in a single agent instead. Use orchestration only for coordinating specialized tasks on focused, manageable datasets.
The markdown content below the frontmatter defines the agent's behavior, expertise, and instructions. Well-structured prompts typically include:
Agents can define dynamic parameters to extract values from user input and use them throughout the agent's behavior and sub-agent communications. This enables flexible, context-aware agents that adapt to user-provided data.
Use variables when:
Examples:
Define variables section early in the agent prompt to document expected parameters:
# Agent Name
## Dynamic Parameters
- **Parameter Name**: Description and usage
- **Another Parameter**: How it's extracted and used
## Your Mission
Process [PARAMETER_NAME] to accomplish [task].
Ask the user to provide the variable if not detected in the prompt:
## Your Mission
Process the project by analyzing your codebase.
### Step 1: Identify Project
If no project name is provided, **ASK THE USER** for:
- Project name or identifier
- Base path or directory location
- Configuration type (if applicable)
Use this information to contextualize all subsequent tasks.
Automatically extract variables from the user's natural language input:
// Example: Extract certification name from user input
const userInput = "Process My Certification";
// Extract key information
const certificationName = extractCertificationName(userInput);
// Result: "My Certification"
const basePath = `certifications/${certificationName}`;
// Result: "certifications/My Certification"
Use file context or workspace information to derive variables:
## Variable Resolution Strategy
1. **From User Prompt**: First, look for explicit mentions in user input
2. **From File Context**: Check current file name or path
3. **From Workspace**: Use workspace folder or active project
4. **From Settings**: Reference configuration files
5. **Ask User**: If all else fails, request missing information
Use template variables in agent prompts to make them dynamic:
# Agent Name
## Dynamic Parameters
- **Project Name**: ${projectName}
- **Base Path**: ${basePath}
- **Output Directory**: ${outputDir}
## Your Mission
Process the **${projectName}** project located at `${basePath}`.
## Process Steps
1. Read input from: `${basePath}/input/`
2. Process files according to project configuration
3. Write results to: `${outputDir}/`
4. Generate summary report
## Quality Standards
- Maintain project-specific coding standards for **${projectName}**
- Follow directory structure: `${basePath}/[structure]`
When invoking a sub-agent, pass all context through substituted variables in the prompt. Prefer passing paths and identifiers, not entire file contents.
Example (prompt template):
This phase must be performed as the agent "documentation-writer" defined in ".github/agents/documentation-writer.agent.md".
IMPORTANT:
- Read and apply the entire .agent.md spec.
- Project: "${projectName}"
- Base path: "projects/${projectName}"
- Input: "projects/${projectName}/src/"
- Output: "projects/${projectName}/docs/"
Task:
1. Read source files under the input path.
2. Generate documentation.
3. Write outputs under the output path.
4. Return a concise summary (files created/updated, key decisions, issues).
The sub-agent receives all necessary context embedded in the prompt. Variables are resolved before sending the prompt, so the sub-agent works with concrete paths and values, not variable placeholders.
Example of a simple orchestrator that validates code through multiple specialized agents:
repositoryName, prNumberbasePath (e.g., projects/${repositoryName}/pr-${prNumber}).agent.md spec):Step 1: Security Review
Agent: security-reviewer
Spec: .github/agents/security-reviewer.agent.md
Context: repositoryName=${repositoryName}, prNumber=${prNumber}, basePath=projects/${repositoryName}/pr-${prNumber}
Output: projects/${repositoryName}/pr-${prNumber}/security-review.md
Step 2: Test Coverage
Agent: test-coverage
Spec: .github/agents/test-coverage.agent.md
Context: repositoryName=${repositoryName}, prNumber=${prNumber}, basePath=projects/${repositoryName}/pr-${prNumber}
Output: projects/${repositoryName}/pr-${prNumber}/coverage-report.md
Step 3: Aggregate
Agent: review-aggregator
Spec: .github/agents/review-aggregator.agent.md
Context: repositoryName=${repositoryName}, prNumber=${prNumber}, basePath=projects/${repositoryName}/pr-${prNumber}
Output: projects/${repositoryName}/pr-${prNumber}/final-review.md
This example shows a more complete orchestration with pre-flight checks, conditional steps, and required vs optional behavior.
Dynamic parameters (inputs):
repositoryName, prNumberbasePath (e.g., projects/${repositoryName}/pr-${prNumber})logFile (e.g., ${basePath}/.review-log.md)Pre-flight checks (recommended):
${basePath}/changes/, ${basePath}/reports/).package.json, pom.xml, requirements.txt, test folders).Step trigger conditions:
| Step | Status | Trigger Condition | On Failure |
|---|---|---|---|
| 1: Security Review | Required | Always run | Stop pipeline |
| 2: Dependency Audit | Optional | If a dependency manifest exists (package.json, pom.xml, etc.) | Continue |
| 3: Test Coverage Check | Optional | If test projects/files are present | Continue |
| 4: Performance Checks | Optional | If perf-sensitive code changed OR a perf config exists | Continue |
| 5: Aggregate & Verdict | Required | Always run if Step 1 completed | Stop pipeline |
Execution flow (natural language):
basePath and create/update logFile.Sub-agent invocation prompt (example):
This phase must be performed as the agent "security-reviewer" defined in ".github/agents/security-reviewer.agent.md".
IMPORTANT:
- Read and apply the entire .agent.md spec.
- Work on repository "${repositoryName}" PR "${prNumber}".
- Base path: "${basePath}".
Task:
1. Review the changes under "${basePath}/changes/".
2. Write findings to "${basePath}/reports/security-review.md".
3. Return a short summary with: critical findings, recommended fixes, files created/modified.
Logging format (example):
## Step 2: Dependency Audit
**Status:** ✅ SUCCESS / ⚠️ SKIPPED / ❌ FAILED
**Trigger:** package.json present
**Started:** 2026-01-16T10:30:15Z
**Completed:** 2026-01-16T10:31:05Z
**Duration:** 00:00:50
**Artifacts:** reports/dependency-audit.md
**Summary:** [brief agent summary]
This pattern applies to any orchestration scenario: extract variables, call sub-agents with clear context, await results.
Always document what variables are expected:
## Required Variables
- **projectName**: The name of the project (string, required)
- **basePath**: Root directory for project files (path, required)
## Optional Variables
- **mode**: Processing mode - quick/standard/detailed (enum, default: standard)
- **outputFormat**: Output format - markdown/json/html (enum, default: markdown)
## Derived Variables
- **outputDir**: Automatically set to ${basePath}/output
- **logFile**: Automatically set to ${basePath}/.log.md
Use consistent variable naming conventions:
// Good: Clear, descriptive naming
const variables = {
projectName, // What project to work on
basePath, // Where project files are located
outputDirectory, // Where to save results
processingMode, // How to process (detail level)
configurationPath // Where config files are
};
// Avoid: Ambiguous or inconsistent
const bad_variables = {
name, // Too generic
path, // Unclear which path
mode, // Too short
config // Too vague
};
Document valid values and constraints:
## Variable Constraints
**projectName**:
- Type: string (alphanumeric, hyphens, underscores allowed)
- Length: 1-100 characters
- Required: yes
- Pattern: `/^[a-zA-Z0-9_-]+$/`
**processingMode**:
- Type: enum
- Valid values: "quick" (< 5min), "standard" (5-15min), "detailed" (15+ min)
- Default: "standard"
- Required: no
MCP servers extend agent capabilities with additional tools. Only supported for organization and enterprise-level agents.
---
name: my-custom-agent
description: 'Agent with MCP integration'
tools: ['read', 'edit', 'custom-mcp/tool-1']
mcp-servers:
custom-mcp:
type: 'local'
command: 'some-command'
args: ['--arg1', '--arg2']
tools: ["*"]
env:
ENV_VAR_NAME: ${{ secrets.API_KEY }}
---
'local' or 'stdio')["*"] for all)Secrets must be configured in repository settings under "copilot" environment.
Supported syntax:
env:
# Environment variable only
VAR_NAME: COPILOT_MCP_ENV_VAR_VALUE
# Variable with header
VAR_NAME: $COPILOT_MCP_ENV_VAR_VALUE
VAR_NAME: ${COPILOT_MCP_ENV_VAR_VALUE}
# GitHub Actions-style (YAML only)
VAR_NAME: ${{ secrets.COPILOT_MCP_ENV_VAR_VALUE }}
VAR_NAME: ${{ var.COPILOT_MCP_ENV_VAR_VALUE }}
.github/agents/.github-private/agents/ (then move to agents/ root)test-specialist.agent.mdname not specified)., -, _, a-z, A-Z, 0-9Priority (highest to lowest):
Lower-level configurations override higher-level ones with the same name.
tools list filters available tools (built-in and MCP)[]) = all tools disabledEach level can override settings from previous levels.
description field present and descriptive (50-150 chars)description wrapped in single quotesname specified (optional but recommended)tools configured appropriately (or intentionally omitted)model specified for optimal performancetarget set if environment-specificuser-invocable: false to hide from picker while allowing subagent invocationdisable-model-invocation: true to prevent subagent invocation while keeping picker visibility.github/agents/ or agents/).agent.mdPurpose: Focus on test coverage and quality Tools: All tools (for comprehensive test creation) Approach: Analyze, identify gaps, write tests, avoid production code changes
Purpose: Create detailed technical plans and specifications
Tools: Limited to ['read', 'search', 'edit']
Approach: Analyze requirements, create documentation, avoid implementation
Purpose: Review code quality and provide feedback
Tools: ['read', 'search'] only
Approach: Analyze, suggest improvements, no direct modifications
Purpose: Improve code structure and maintainability
Tools: ['read', 'search', 'edit']
Approach: Analyze patterns, propose refactorings, implement safely
Purpose: Identify security issues and vulnerabilities
Tools: ['read', 'search', 'web']
Approach: Scan code, check against OWASP, report findings
description fieldserver-name/tool)model, argument-hint, handoffs propertiesmodel property for AI model selectionargument-hint and handoffs propertiesWhen creating agents for multiple environments, focus on common properties and test in all target environments. Use target property to create environment-specific agents when necessary.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job