AgentSkillsCN

gh-issue-ops

支持 GitHub 问题的操作,包括获取完整问题详情、设置问题类型以及查询时间轴事件。适用于创建、读取或修改 GitHub 问题的场景。

SKILL.md
--- frontmatter
name: gh-issue-ops
description: GitHub issue operations including fetching full issue details, setting issue type, and getting timeline events. Use when creating, reading, or modifying GitHub issues.
allowed-tools: Bash, Read

GitHub Issue Operations

Provides scripts for issue CRUD operations. All scripts auto-detect the current repo.

Available Scripts

get-issue.sh <number>

Returns full issue details including type (via GraphQL).

bash
~/.claude/skills/gh-issue-ops/scripts/get-issue.sh 4

set-issue-type.sh <number> <type-name>

Sets issue type by name (resolves ID dynamically).

bash
~/.claude/skills/gh-issue-ops/scripts/set-issue-type.sh 4 "Bug"

get-issue-timeline.sh <number>

Returns timeline events for an issue (status changes, comments, etc).

bash
~/.claude/skills/gh-issue-ops/scripts/get-issue-timeline.sh 4

get-issue-comments.sh <number>

Returns all comments on an issue.

bash
~/.claude/skills/gh-issue-ops/scripts/get-issue-comments.sh 4

Usage

Run scripts with issue number as argument:

bash
bash ~/.claude/skills/gh-issue-ops/scripts/get-issue.sh 4

Type names are case-insensitive and matched against available types in the repo.