Research and document the exact GitHub CLI / GraphQL API calls for sub-issues and dependency management.
File
Add to .claude/skills/github-issues/SKILL.md (or a separate reference doc linked from AGENTS.md)
What
The gh CLI does not natively support sub-issue creation or blocked-by relationships. Document the GraphQL mutations/queries:
Required operations:
-
Create sub-issue (set parent-child relationship)
- GraphQL mutation:
addSubIssue(issueId, subIssueId)
- Query: list sub-issues of a parent
-
Add blocked-by / blocking relationship
- GraphQL mutation:
addBlockedBy(issueId, blockingIssueId)
- Query: list issues blocked by a given issue
- Query: check if an issue has any open blocking children
-
Query unblocked children
- Find sub-issues of #N that have no open blocked-by dependencies
- This is needed by /work to know which children to work on next
Deliverable:
A reference section with exact gh api graphql commands for each operation, tested against the agent-workflow repo.
Why
Multiple tasks (planner, coordinator, reviewers) need these API calls. Documenting them once prevents three sessions doing the same research and arriving at incompatible approaches.
Research and document the exact GitHub CLI / GraphQL API calls for sub-issues and dependency management.
File
Add to
.claude/skills/github-issues/SKILL.md(or a separate reference doc linked from AGENTS.md)What
The gh CLI does not natively support sub-issue creation or blocked-by relationships. Document the GraphQL mutations/queries:
Required operations:
Create sub-issue (set parent-child relationship)
addSubIssue(issueId, subIssueId)Add blocked-by / blocking relationship
addBlockedBy(issueId, blockingIssueId)Query unblocked children
Deliverable:
A reference section with exact
gh api graphqlcommands for each operation, tested against the agent-workflow repo.Why
Multiple tasks (planner, coordinator, reviewers) need these API calls. Documenting them once prevents three sessions doing the same research and arriving at incompatible approaches.