github-sub-issue-creator
Creates GitHub sub-issues and links them to parent issues using gh CLI and REST API. Use when creating child issues, breaking down large issues into smaller tasks, or establishing parent-child relationships between issues.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
GitHub Sub-issue Creator
This skill defines rules and procedures for creating GitHub sub-issues.
Workflow
- Identify the parent issue number and repository.
- Create a new issue using the
github-issue-creatorskill. - Get the REST API ID of the created issue.
- Add the issue as a sub-issue to the parent issue using the REST API.
- Report the sub-issue URL to the user.
Creating a Sub-issue
Sub-issues are regular issues linked to a parent issue. The gh CLI does not have a direct option to create sub-issues, so use the REST API via gh api command.
Step 1: Create the Issue
Use the github-issue-creator skill to create the issue. This ensures that issue templates, title guidelines, and language settings are applied.
Note the issue number from the output URL (e.g., https://github.com/OWNER/REPO/issues/123 → issue number is 123).
Step 2: Get the Issue ID
Get the REST API ID of the created issue. This is the numeric id field, not the node_id or issue number.
gh api repos/OWNER/REPO/issues/123 --jq .id
Step 3: Add as Sub-issue
Add the issue as a sub-issue to the parent issue.
gh api repos/OWNER/REPO/issues/PARENT_ISSUE_NUMBER/sub_issues -X POST -F sub_issue_id=ISSUE_ID
Example
Creating a sub-issue for parent issue #100 in octocat/hello-world.
First, use the github-issue-creator skill to create an issue. Assume the created issue URL is https://github.com/octocat/hello-world/issues/123.
Then, get the issue ID and add as sub-issue:
# Get the issue ID
gh api repos/octocat/hello-world/issues/123 --jq .id
# Output: 3000028010
# Add as sub-issue
gh api repos/octocat/hello-world/issues/100/sub_issues -X POST -F sub_issue_id=3000028010
Reference
For more details on the sub-issues API, see REST API endpoints for sub-issues.
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!