Skip to content
Back to skills

Github Sub Issue Creator

ASecurity

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.

  • 666 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 8, 2026
toolsbashnodegitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill github-sub-issue-creator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Github Sub Issue Creator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Github Sub Issue Creator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-github-sub-issue-creator/badge)](https://www.skillsdirectory.com/skills/majiayu000-github-sub-issue-creator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: github-sub-issue-creator
description: 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.
---

# GitHub Sub-issue Creator

This skill defines rules and procedures for creating GitHub sub-issues.

## Workflow

1. Identify the parent issue number and repository.
1. Create a new issue using the `github-issue-creator` skill.
1. Get the REST API ID of the created issue.
1. Add the issue as a sub-issue to the parent issue using the REST API.
1. 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.

```bash
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.

```bash
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:

```bash
# 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](https://docs.github.com/en/rest/issues/sub-issues).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.