Get the FREE Ultimate OpenClaw Setup Guide →

gh-issue-list

npx machina-cli add skill dceoy/github-cli-agent-skills/gh-issue-list --openclaw
Files (1)
SKILL.md
2.6 KB

GitHub Issue List

When to use

  • The user asks to list issues in a repository.
  • Finding issues by author, label, milestone, or state.
  • Reviewing issue backlog or triaging.

Inputs to confirm

  • Filter criteria: state (open/closed/all), author, assignee, labels, milestone.
  • Search query if advanced filtering needed.
  • Target repo if not current (--repo OWNER/REPO).
  • Output format (table, JSON, web).

Workflow

  1. Verify auth:
    gh --version
    gh auth status
    
  2. List issues with filters:
    gh issue list
    gh issue list --state all --limit 50
    gh issue list --author "@me"
    gh issue list --label "bug" --label "priority"
    gh issue list --assignee "@me" --state open
    gh issue list --milestone "v2.0"
    
  3. Use search syntax for advanced queries:
    gh issue list --search "no:assignee sort:created-asc"
    gh issue list --search "is:open label:bug -label:wontfix"
    
  4. Get JSON output for scripting:
    gh issue list --json number,title,state,labels --jq '.[] | "\(.number): \(.title)"'
    

Examples

# List your assigned issues
gh issue list --assignee "@me"

# Find unassigned bugs
gh issue list --label "bug" --search "no:assignee"

# List issues in a milestone
gh issue list --milestone "Release 1.0"

# Get issues as JSON
gh issue list --json number,title,state,assignees

# Open issue list in browser
gh issue list --web

Flags reference

FlagDescription
-s, --stateFilter: open, closed, all (default: open)
-A, --authorFilter by author
-a, --assigneeFilter by assignee
-l, --labelFilter by label (repeatable)
-m, --milestoneFilter by milestone name or number
--mentionFilter by mentioned user
-S, --searchSearch with GitHub query syntax
-L, --limitMax items to fetch (default 30)
--jsonOutput specific fields as JSON
-w, --webOpen list in browser

References

Source

git clone https://github.com/dceoy/github-cli-agent-skills/blob/main/skills/gh-issue-list/SKILL.mdView on GitHub

Overview

gh-issue-list enables listing GitHub issues from a repository using the gh CLI with filters such as state, author, assignee, labels, and milestone. It supports advanced search queries and JSON output for scripting, and can open results in a browser for quick review. This makes backlog triage and reporting faster and more repeatable.

How This Skill Works

It constructs a gh issue list command by combining filters like --state, --author, --assignee, --label, and --milestone, with optional --search for GitHub query syntax. You can request specific fields with --json and format results with jq, or open the results in a browser with --web. If the target repo is not the current one, include --repo OWNER/REPO.

When to Use It

  • You need to list issues in a repository
  • Filter by state, author, assignee, labels, or milestone
  • Perform advanced filtering with --search
  • Export data for scripting with --json
  • Open results quickly in a browser with --web

Quick Start

  1. Step 1: Verify auth with gh --version and gh auth status
  2. Step 2: List issues using filters such as --state open or --label bug
  3. Step 3: Output as JSON with --json or open in a browser with --web

Best Practices

  • Specify the target repo with --repo if not in the current directory
  • Choose only the JSON fields you need with --json
  • Combine filters to narrow results rather than broad queries
  • Use --limit to cap results and improve performance
  • Blend --search with label and milestone filters for precise results

Example Use Cases

  • gh issue list --assignee "@me"
  • gh issue list --label "bug" --search "no:assignee"
  • gh issue list --milestone Release 1.0
  • gh issue list --json number,title,state,assignees
  • gh issue list --web

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers