gh-issue

Create GitHub Issue

You are creating a GitHub issue based on the user's description. Follow this process carefully.

Input

The user has provided the following issue description:
$ARGUMENTS

Process

Step 1: Understand the Issue

Read the description carefully. If it's unclear or ambiguous, ask clarifying questions before proceeding.

Use gh CLI to search for existing issues:

gh issue list --search "relevant keywords" --state all

Search for:

  1. Duplicates: Issues that describe the same problem or would be solved by the same fix
  2. Related issues: Issues that are connected to this problem

Search using relevant keywords from the description. Be thorough.

Step 3: Search the Codebase

Use Grep and Glob to find:

IMPORTANT: Never include actual code in the issue. Only include:

Step 4: Ask Clarifying Questions (if needed)

After searching, if you discover:

Then ask the user for clarification before proceeding.

Step 5: Handle Duplicates

If you find a duplicate issue:

  1. Tell the user you found a duplicate and link to it
  2. Add a comment to the existing issue with any new/additional information from the user's description:
    gh issue comment <issue-number> --body "Additional context: ..."
    
  3. Report back to the user what you did
  4. Do not create a new issue

Step 6: Determine Issue Metadata

Figure out the following by analyzing the issue:

Label (choose appropriate labels for the repo):

Check available labels:

gh label list

Step 7: Prepare the Issue Summary

Create a summary with ALL of the following sections:

Title: Clear, concise title (action-oriented)

Description:

Behaviors:

Out of Scope (if applicable):

Implementation Notes:

Step 8: Create the Issue

Create the issue immediately:

gh issue create --title "Title here" --body "Body here" --label "label1,label2"
  1. Create the issue using gh issue create with appropriate labels
  2. Report back the issue URL to the user

Important Guidelines