Home / Market / issues

issues

Interact with GitHub issues - create, list, and view issues.

skill★ 507590 dlgithubCC-BY-4.0 content; MIT code; upstream exceptions applyInstall in CosmosUpstream Source

Documentation & Preview

--- name: issues description: Interact with GitHub issues - create, list, and view issues. allowed-tools: Bash(gh *) risk: critical source: community date_added: "2026-09-04" metadata: author: Shpigford version: "1.0"

---

Interact with GitHub issues - create, list, and view issues.

When to Use

Instructions

This command helps you work with GitHub issues using the gh CLI.

Step 1: Determine Action

Use AskUserQuestion to ask what the user wants to do:

Question:

description: "Open a new issue with title, body, and optional labels"

description: "View open issues in the current repository"

description: "See details of a specific issue by number"

---

If "Create new issue" selected:

Step 2a: Get Issue Title

Use AskUserQuestion to get the issue title:

Question:

description: "Enter a concise title like 'Login button unresponsive' or 'Add dark mode support'"

Title guidelines:

If the user provides a long title, help them shorten it and move the details to the body.

Step 3a: Get Issue Body

Use AskUserQuestion to gather the issue body content:

Question 1 - Issue type context:

description: "Something broken that needs fixing"

description: "Improvement to existing functionality"

description: "Brand new functionality"

description: "General work item or chore"

Question 2 - Description:

description: "Provide context, steps, examples, and any relevant information"

The user will select "Other" here to provide their full description.

Description guidelines:

Question 3 - For bugs, ask about reproduction: If issue type is "Bug", use AskUserQuestion:

description: "I'll describe how to reproduce the issue"

description: "The bug is intermittent or hard to reproduce"

Question 4 - Expected vs actual behavior (for bugs): If issue type is "Bug", use AskUserQuestion:

description: "I'll explain expected vs actual behavior"

Step 4a: Get Labels (Optional)

Use AskUserQuestion to select labels:

description: "Something isn't working"

description: "New feature or request"

description: "Improvements to docs"

description: "Good for newcomers"

Step 5a: Create the Issue

Construct the issue body based on the type:

For Bug reports:

## Description
[User's description]

## Steps to Reproduce
[User's reproduction steps or "Not easily reproducible"]

## Expected Behavior
[What should happen]

## Actual Behavior
[What actually happens]

For Feature requests/Enhancements:

## Description
[User's description]

## Use Case
[Why this would be useful]

For Tasks/Other:

## Description
[User's description]

Run the gh command to create the issue:

gh issue create --title "[title]" --body "[constructed body]" --label "[labels]"

Report the issue URL back to the user.

---

If "List issues" selected:

Step 2b: Filter Options

Use AskUserQuestion to determine filtering:

description: "Show all open issues"

description: "Issues assigned to the current user"

description: "Issues I created"

description: "Filter by a label"

If "With specific label" selected, use AskUserQuestion:

description: "Bug reports"

description: "Feature requests"

description: "Documentation issues"

Step 3b: List Issues

Run the appropriate gh command:

Display the results in a clean format.

---

If "View issue" selected:

Step 2c: Get Issue Number

Use AskUserQuestion:

description: "I'll type the issue number"

Step 3c: View Issue

Run: gh issue view [number]

Display the issue details including title, body, labels, assignees, and comments.

---

Error Handling

If gh command fails:

  1. Check if user is authenticated: gh auth status
  2. If not authenticated, inform user to run gh auth login
  3. Check if in a git repository with a GitHub remote
  4. Report specific error message to user

Important Notes

  gh issue create --title "Title" --body "$(cat <<'EOF'
  Body content here
  EOF
  )"

Limitations