-
Notifications
You must be signed in to change notification settings - Fork 125
Closed
Labels
needs-triageRequires triage and prioritizationRequires triage and prioritizationpromptsCopilot prompt files (.prompt.md)Copilot prompt files (.prompt.md)
Description
Prompt Name
GitHub Add Issue
Category
Other
Use Case
Provides an agent-mode prompt for creating GitHub issues with automatic template discovery and guided field collection. This prompt handles the complete workflow of:
- Discovering available issue templates from
.github/ISSUE_TEMPLATE/ - Presenting template options to users
- Collecting required and optional field values
- Formatting issue body according to template structure
- Creating the issue via GitHub MCP tools
The prompt eliminates manual template selection and ensures all required fields are collected before issue creation.
Requirements
Key requirements:
Template Discovery:
- Automatically detect and read all issue templates from
.github/ISSUE_TEMPLATE/ - Parse YAML frontmatter to extract template metadata (name, description, labels)
- Support both
.ymland.mdtemplate formats - Handle missing or malformed templates gracefully
Field Collection:
- Present template fields conversationally with context and examples
- Validate required fields are completed
- Allow optional fields to be skipped
- Provide field descriptions from template definitions
Issue Creation:
- Format issue body with proper field labels and values
- Apply template default labels
- Set assignees if specified
- Create issue via
mcp_github_create_issue - Return issue URL and number to user
Artifact Logging:
- Log created issues to
.copilot-tracking/github-issues/issue-{number}.md - Include metadata (labels, assignees, template used)
- Follow markdown formatting standards from
markdown.instructions.md
Requirements:
- GitHub MCP server configured in
.vscode/mcp.json - Access to repository issue templates
- Agent mode execution context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs-triageRequires triage and prioritizationRequires triage and prioritizationpromptsCopilot prompt files (.prompt.md)Copilot prompt files (.prompt.md)