| name | nxs-gh-create-epic |
| description | 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 issue create`, and updates the frontmatter with the issue link. |
GitHub Epic Issue Creator
Create a GitHub issue from an Epic document's content and link it back to the epic.
Prerequisites
- GitHub CLI (
gh) installed and authenticated - Running within a git repository connected to GitHub
Workflow
- Locate the Epic document from user reference, open file, or argument
- Run the script to create the issue and update frontmatter:
python scripts/nxs_gh_create_epic.py "<path-to-epic.md>"
Use -y flag to skip confirmation if a link already exists:
python scripts/nxs_gh_create_epic.py -y "<path-to-epic.md>"
Script Behavior
The script (scripts/nxs_gh_create_epic.py):
- Parses YAML frontmatter for
epic(title) andtype(label, defaults to "epic") - Creates temp file with markdown body (frontmatter stripped)
- Executes
gh issue create --title "<epic>" --label "<type>" --body-file <temp> - Extracts issue number from returned URL
- Updates frontmatter with
link: "#<issue-number>" - Cleans up temp file
Expected Frontmatter
---
feature: "Feature Name"
epic: "Epic Title" # Required - becomes issue title
created: 2025-01-02
status: draft
type: enhancement # Optional - becomes GitHub label (default: "epic")
---
After execution, link: "#123" is added to frontmatter.
Error Handling
| Error | Resolution |
|---|---|
gh: command not found |
Install GitHub CLI: https://cli.github.com |
gh: not logged in |
Run gh auth login |
label does not exist |
Create label in GitHub or use existing label |
not a git repository |
Navigate to project root |
No 'epic' field found |
Add epic: "Title" to frontmatter |