Skip to content

[Prompt]: GitHub Add Issue #54

@WilliamBerryiii

Description

@WilliamBerryiii

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 .yml and .md template 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triageRequires triage and prioritizationpromptsCopilot prompt files (.prompt.md)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions