issues

robbyt 的头像作者 robbyt

使用 GitHub CLI 进行 GitHub 问题管理。当用户想要列出问题("显示开放问题")、查看问题详情("查看问题456")、创建问题("创建问题"、"提交错误报告")或编辑/关闭问题("关闭问题"、"为问题添加标签")时触发。

📖 中文导读:使用 GitHub CLI 进行 GitHub 问题管理。当用户想要列出问题("显示开放问题")、查看问题详情("查看问题456")、创建问题("创建问题"、"提交错误报告")或编辑/关闭问题("关闭问题"、"为问题添加标签")时触发。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: issues description: GitHub issue management using GitHub CLI. Trigger when user wants to list issues ("show open issues"), view issue details ("view issue 456"), create issues ("create an issue", "file a bug"), or edit/close issues ("close issue", "add label to issue").

Issue Management

Manage GitHub issues with the gh CLI.

Prerequisites

GitHub CLI must be installed and authenticated:

gh auth status

Quick Reference

gh issue list                       # List open issues
gh issue view 456                   # View issue details
gh issue create --title "Bug"       # Create issue
gh issue close 456                  # Close issue

List Issues

gh issue list
gh issue list --state open
gh issue list --label bug
gh issue list --assignee @me
gh issue list --state all --limit 50

View Issue

gh issue view 456
gh issue view 456 --json title,body,labels,state

Create Issue

gh issue create --title "Bug report" --body "Details"
gh issue create --label bug --assignee @me
gh issue create --title "Feature" --label enhancement

Edit Issue

gh issue edit 456 --title "Updated title"
gh issue edit 456 --add-label "needs-review"
gh issue edit 456 --remove-label "in-progress"
gh issue edit 456 --add-assignee @me

Close and Reopen

gh issue close 456
gh issue close 456 --reason "not planned"
gh issue reopen 456