Skip to content

Document GitHub GraphQL API for sub-issues and dependencies #6

@jdelfino

Description

@jdelfino

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:

  1. Create sub-issue (set parent-child relationship)

    • GraphQL mutation: addSubIssue(issueId, subIssueId)
    • Query: list sub-issues of a parent
  2. 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
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:highPriority 1taskImplementation work item

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions