Skip to content
Skills Library
Management & product · Tool integration

dx-create-epic

/dx-create-epic

Use when you need to create a GitHub issue for an epic: one outcome too large for a single story, delivered by several stories and chores that link to it as native sub-issues. Triggers on "create an epic", "file an epic for this", "group these issues under an epic", and "make #12, #14 and #15 sub-issues of a new epic". Files the epic with its outcome, then links the open stories and chores the person names, and reports any it could not link. Not for filing the child stories and chores: that is dx-create-story and dx-create-chore.

Repository
dx-harness ↗
Licence
GPL-3.0
Last repository change
05.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 05.11.2026, without references to retired models or APIs.

Licence

GPL-3.0, otwarta.

What it does and when to use it

Use when you need to create a GitHub issue for an epic: one outcome too large for a single story, delivered by several stories and chores that link to it as native sub-issues. Triggers on "create an epic", "file an epic for this", "group these issues under an epic", and "make #12, #14 and #15 sub-issues of a new epic". Files the epic with its outcome, then links the open stories and chores the person names, and reports any it could not link. Not for filing the child stories and chores: that is dx-create-story and dx-create-chore.

Triggers from the description

create an epicfile an epic for thisgroup these issues under an epicmake #12, #14 and #15 sub-issues of a new epic
Original author description

Use when you need to create a GitHub issue for an epic: one outcome too large for a single story, delivered by several stories and chores that link to it as native sub-issues. Triggers on "create an epic", "file an epic for this", "group these issues under an epic", and "make #12, #14 and #15 sub-issues of a new epic". Files the epic with its outcome, then links the open stories and chores the person names, and reports any it could not link. Not for filing the child stories and chores: that is dx-create-story and dx-create-chore.

How it works

  1. 1. Gather the epic
  2. 2. Check each named issue
  3. 3. Preview and confirm
  4. 4. Create the epic
  5. 5. Link the sub-issues
  6. 6. Report
  7. Rules
Original SKILL.md headings · 108 lines, 908 words
SKILL.md preview
---
name: dx-create-epic
description: 'Use when you need to create a GitHub issue for an epic: one outcome too large for a single story, delivered by several stories and chores that link to it as native sub-issues. Triggers on "create an epic", "file an epic for this", "group these issues under an epic", and "make #12, #14 and #15 sub-issues of a new epic". Files the epic with its outcome, then links the open stories and chores the person names, and reports any it could not link. Not for filing the child stories and chores: that is dx-create-story and dx-create-chore.'
---

# Trigger phrases
Use this skill when you hear:
- "create an epic"
- "file an epic"
- "group these issues under an epic"

The issue template is in [references/issue-template.md](references/issue-template.md). Fill every section, and write `None` where there is nothing to say. Write every section to [House style](../../../procedures/house-style.md).

## 1. Gather the epic
Ask for each item the request does not already give. Do not invent an answer.

1. **Outcome**: what is true for the people the product serves once every sub-issue closes ("teachers can export marks as CSV and as PDF").
2. **Why**: the reason to track this outcome as one piece of work.
3. **Sub-issues**: the open stories and chores in this repository that belong under the epic, by number, or "none yet".
4. **Out of scope**: anything adjacent that a reader could assume is included, or `None`.

Check the request in order and take the first that fits:

- Describes one capability that a single pull request delivers -> stop, and point the person at `dx-create-story` or `dx-create-chore`
- Asks for the child stories or chores to be written as well -> continue here for the epic only, and Step 6 hands the children over
- Anything else -> Step 2

Do not ask who the audience is, what the promise is, or what the deadline is.

## 2. Check each named issue
Read each issue number from Step 1:

```sh
gh api graphql -F owner='{owner}' -F name='{repo}' -F number=<number> -f query='query($owner:String!,$name:String!,$number:Int!){repository(owner:$owner,name:$name){issue(number:$number){id number title state parent{number}}}}'
```

Check these in order, and the first that fits decides the issue:

- The command reports "Could not resolve to an Issue" -> skip, reason "does not exist"
- `state` is `CLOSED` -> skip, reason "closed"
- `parent` is not null -> skip, reason "already a sub-issue of #<parent number>"
- Anything else -> link it in Step 5

Where `gh` reports "command not found" or "'gh' is not recognized", go to Step 4. Where it fails any other way, surface the error and stop.

## 3. Preview and confirm
Write the title as an imperative verb followed by the outcome, with no commit prefix, for example `Let teachers export marks as CSV and PDF`. Count its characters, spaces included, with `printf '%s' "<title>" | wc -m`, not by eye. Count again after each change to the title:

- 70 characters or fewer -> keep the title unchanged
- Over 70 characters, and you drafted it -> shorten it to 70 or fewer before the preview, and keep the outcome it names
- Over 70 characters, and the person supplied it -> propose a shorter title, say that theirs is over the 70-character limit, and file the title the person confirms

Apply the "Before you post it" checks in [House style](../../../procedures/house-style.md). Then show the title, the body, and the sub-issue plan, and ask for confirmation:

```
**Title:** <title>

<the complete issue body in a markdown code block>

**Sub-issues to link:** #<number> <title>, ...
**Skipped:** #<number>: <reason>, ...
```

A change to the title or the body goes back to the top of Step 3. A confirmation goes to Step 4.

## 4. Create the epic
Write the confirmed body to a temporary file, and pass it with `--body-file`. Make sure both labels exist, then create the issue:

```sh
gh label create "epic" --color 5319e7 --description "Tracking issue with linked sub-issues" 2>/dev/null || true
gh label create "skill:dx-create-epic" --color ededed --description "Created with the dx-create-epic skill" 2>/dev/null || true

gh issue create --title "<title>" --body-file <body file> --label "epic" --label "skill:dx-create-epic"
```

- The command prints the issue URL -> Step 5
- It fails because a label does not exist -> find the label under other casing with `gh label list --limit 200 --json name --jq '.[].name' | grep -ix "epic"`, reuse that name, and run `gh issue create` again
- The token cannot write labels -> create the issue without labels, and name the two labels for someone with write access to add. Then Step 5
- `gh` reports "command not found" or "'gh' is not recognized" -> show the title and the body as markdown. Tell the person to create the issue on GitHub, and to add each issue from Step 1 as a sub-issue on the epic's page. Then Step 6
- Any other failure -> surface the error and stop

## 5. Link the sub-issues
Read the epic's node ID:

```sh
gh issue view <epic number> --json id --jq .id
```

Link each issue that Step 2 kept, one at a time:

```sh
gh api graphql -f query='mutation($parent:ID!,$sub:ID!){addSubIssue(input:{issueId:$parent,subIssueId:$sub}){subIssue{number}}}' -f parent=<epic id> -f sub=<issue id>
```

- The response returns the sub-issue number -> linked
- The command fails -> skip that issue with the error message as its reason, and continue with the next issue

## 6. Report
Report the epic URL, each linked issue, and each skipped issue with its reason, from Step 2 and from Step 5.

Where the person named child stories or chores that are not filed yet, list them in their own words, and hand them over:

```
#<epic number> is the epic. File each piece with dx-create-story or dx-create-chore, then add it as a sub-issue on the epic's page:
- <piece, in the person's words>
```

Do not file those children from this skill.

## Rules
- Do not use em dashes (`—`) in the title or the body. Use a colon, parentheses, or a new sentence instead.
Files in this package (2)
  • SKILL.md 6 KB
  • references/issue-template.md 1 KB

Versions

The database has no other skills named dx-create-epic.

Database snapshot: 13.11.2026 · package version 534edd2a8473 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100epic-creator
    Write a well-formed agile epic - a user-outcome problem statement, measurable success metrics with honest baselines, explicit scope and non-goals, epic-level acceptance criteria, and thin vertical-slice child stories - and optionally create it in Jira or GitHub Issues. Use this…
  • 100nxs-gh-create-epic
    Create a GitHub issue from an Epic document. Use when the user wants to create a GitHub issue from an epic.md file, sync an epic to GitHub, or link an epic document to a GitHub issue. The skill extracts the epic title and type from YAML frontmatter, creates an issue via `gh…
  • 100nxs-gh-create-epic
    Create a GitHub issue from an Epic document. Use when the user wants to create a GitHub issue from an epic.md file, sync an epic to GitHub, or link an epic document to a GitHub issue. The skill extracts the epic title and type from YAML frontmatter, creates an issue via `gh…
  • 100create-stories
    Breaks one epic into implementable stories with acceptance criteria. Use when the user wants stories for an epic or the next batch of work to build. Not for turning the whole design into epics.
  • 100create-stories
    Breaks one epic into implementable stories with acceptance criteria. Use when the user wants stories for an epic or the next batch of work to build. Not for turning the whole design into epics.
  • 100create-stories
    Breaks one epic into implementable stories with acceptance criteria. Use when the user wants stories for an epic or the next batch of work to build. Not for turning the whole design into epics.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.