Link a parent issue to a child (sub-issue edge) by adding the child as a sub-issue of the parent. Sugar for /issue-set-parent with inverted argument order.
Install
npx skillscat add thevoskamps/claude-plugins-marketplace/issue-set-child Install via the SkillsCat registry.
Make one issue a sub-issue of another, named from the parent's end.
This is the edge /issue-set-parent writes, with the arguments the
other way round.
Invocation
/issue-set-child <parent-issue> <child-issue><parent-issue>(required): the containing issue.<child-issue>(required): the issue becoming a sub-issue.
Each is an issue reference, and the two need not share a repo.
Mnemonic: "set child of P to C" reads left-to-right; the same edge asset-parent C P.
Execution
Run the issue-set-child script, which this plugin puts on PATH,
with the Bash tool from inside the repo's working tree:
issue-set-child <parent-issue> <child-issue>An issue has at most one parent. The script is a no-op when the child
is already under that parent, refuses when it is under a different
one, and otherwise links it and re-reads the child's parent, exiting
non-zero when the re-read does not show the link. Print its stdout as
it stands. On a non-zero exit, relay its stderr verbatim and stop.
Output
Linked issue #<C> as a sub-issue of #<P>.
https://github.com/<owner>/<repo>/issues/<P>The no-op prints Issue #<C> is already a sub-issue of #<P>; no change. and exits zero. A child under another parent is an error:
issue
#<C>already has parent#<existing-P>; remove it first
with/issue-unset-parent #<C>before setting a new parent
Jira backend
The script serves the GitHub backend only. Under issues: Jira it
exits non-zero with its fixed Jira message before it reads or writes an
issue; followskills/lib/issue.md → "Jira backend" → "Relationships" instead.