-
Notifications
You must be signed in to change notification settings - Fork 37k
Create my-agent.agent.md template #284701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Add a template for creating a custom agent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a template file for creating custom GitHub Copilot agents in the VS Code repository. The template provides a basic structure with YAML frontmatter for configuration and placeholder content to guide users in creating their own custom agents.
Key Changes:
- Adds
.github/agents/my-agent.agent.mdtemplate file with YAML frontmatter structure - Includes instructional comments and placeholder fields for name and description
- Provides basic markdown structure for agent documentation
| @@ -0,0 +1,13 @@ | |||
| --- | |||
Copilot
AI
Dec 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The YAML frontmatter starting delimiter has leading whitespace. YAML frontmatter should begin at column 0 without any indentation. Remove the leading spaces before the opening triple-dash.
|
|
||
| name: | ||
| description: | ||
| --- |
Copilot
AI
Dec 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The closing YAML frontmatter delimiter has leading whitespace. The closing triple-dash should be at column 0 to match standard YAML frontmatter formatting. Remove the leading spaces.
| # Fill in the fields below to create a basic custom agent for your repository. | ||
| # The Copilot CLI can be used for local testing: https://gh.io/customagents/cli | ||
| # To make this agent available, merge this file into the default repository branch. | ||
| # For format details, see: https://gh.io/customagents/config |
Copilot
AI
Dec 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment lines within the YAML frontmatter have inconsistent indentation (2 spaces) that doesn't align with the YAML keys below them. For proper YAML formatting and consistency, remove the leading spaces from these comment lines so they start at column 0.
| name: | ||
| description: |
Copilot
AI
Dec 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The YAML keys have leading whitespace (2 spaces). YAML keys at the root level should start at column 0. Remove the leading spaces from both the 'name:' and 'description:' keys.
hirokoni2025
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a template for creating a custom agent.