원클릭으로
github-sub-issue-add
Add a sub-issue to an existing GitHub main issue using the GitHub API.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Add a sub-issue to an existing GitHub main issue using the GitHub API.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | github-sub-issue-add |
| description | Add a sub-issue to an existing GitHub main issue using the GitHub API. |
| source | auto-skill |
| extracted_at | 2026-06-10T18:01:30.598Z |
This skill allows creating a new sub-issue or linking an existing issue as a sub-issue to a parent/main issue using the official GitHub REST API (API version 2026-03-10). It also supports establishing issue dependencies (blocking relationships).
To perform sub-issue or dependency operations, you MUST understand and handle the difference between GitHub's distinct identifier types:
2396):
#2396), and standard CLI commands (gh issue view 2396)."I_kwDOP0rKb88AAAABFCwpYA"):
gh CLI, calling gh issue view <number> --json id or gh issue list --json id returns this string Node ID, NOT the numerical database ID!4633405792):
2026-03-10) require this numerical Database ID in their JSON payloads. Passing the sequential Issue Number or the string GraphQL Global Node ID will result in validation errors (typically 404 Not Found or 422 Unprocessable Entity).To automate ID resolution, API calls, and handle fallbacks gracefully, always use the workspace helper script:
npx node .agents/skills/github-sub-issue-add/scripts/github-sub-issue-helper.js add --parent <parent-issue-number> --sub <sub-issue-number>
npx node .agents/skills/github-sub-issue-add/scripts/github-sub-issue-helper.js dependency --dependent <dependent-issue-number> --blocking <blocking-issue-number>
If the helper script cannot be executed, follow these steps manually:
To get the correct numerical database ID of an issue (e.g., #2390), run:
gh api repos/{owner}/{repo}/issues/2390 --jq .id
Note: The {owner} and {repo} placeholders inside curly braces are automatically replaced by the gh CLI with your active repository details.
Create the New Issue and retrieve its sequential issue number:
SUB_ISSUE_NUMBER=$(gh issue create \
--title "[Agent] <Descriptive Sub-Issue Title>" \
--body "Part of #<Parent-Issue-Number>\n\n## Task\n<Task description>" \
--assignee "pm-username,dev-username" \
--json number --jq .number)
Retrieve the Numerical Database ID of the new sub-issue:
SUB_ISSUE_DB_ID=$(gh api repos/{owner}/{repo}/issues/$SUB_ISSUE_NUMBER --jq .id)
Link as Sub-Issue to the Parent Issue: Establish the native parent-child relationship:
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2026-03-10" \
--method POST \
/repos/{owner}/{repo}/issues/<parent_issue_number>/sub_issues \
-f sub_issue_id=$SUB_ISSUE_DB_ID
Note: Use -f (lowercase) so gh api correctly formats the payload as a JSON number.
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2026-03-10" \
--method POST \
/repos/{owner}/{repo}/issues/<parent_issue_number>/sub_issues \
-f sub_issue_id=<sub_issue_database_id>
If a task is blocked by another task, establish the blocking relationship:
gh api \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2026-03-10" \
--method POST \
/repos/{owner}/{repo}/issues/<dependent_issue_number>/dependencies/blocked_by \
-f issue_id=<blocking_issue_database_id>
If the native REST API calls fail (due to outdated CLI, restricted API access, or missing repo features):
Checkbox Linkage in Parent Issue description: Read the parent issue description and append the child issue under an implementation progress checklist:
## Implementation Progress
- [ ] #<sub_issue_number>
Edit the description via:
gh issue edit <parent_issue_number> --body "<Updated-Body>"
Reference Comments: Comment on the parent and sub-issues to guarantee audit traceability:
gh issue comment <parent_issue_number> --body "Sub-task linked (fallback): #<sub_issue_number>"
gh issue comment <sub_issue_number> --body "Part of parent issue #<parent_issue_number>"
Dependency Fallback Comments: If dependency mapping fails, post comments on both issues:
gh issue comment <dependent_issue_number> --body "⚠️ **Blocked By:** #<blocking_issue_number>"
gh issue comment <blocking_issue_number> --body "🔗 **Blocks:** #<dependent_issue_number>"
Verify that relationships and dependencies are updated:
gh issue view <parent_issue_number> --json sub_issues_summary,issue_dependencies_summary
Standardize the verification of implemented GitHub issues on the development environment.
Perform performance testing and review of specific pages, identifying and fixing bottlenecks.
Parse downloaded Figma design JSON files and CSS layer data to generate Tailwind CSS layout classes, fonts, borders, and colors, with component-to-layer mapping and Storybook validation.
Compare a live component implementation with its original Figma design frame, validating rendering and alignment in Storybook iteratively until pixel-perfect results are achieved.
End-to-end automation for the full GitHub issue lifecycle. Use this when the user provides a feature request or bug report and wants to go from zero to a reviewed and refined Pull Request in one autonomous process.
Create a detailed GitHub issue using the mandatory template for new features or complex changes.