close-epic
Installation
SKILL.md
Close Epic
A few gh calls and one honest summary. Never closes an epic with open sub-issues. Everything it computes comes from GitHub state (labels, assignees, marker comments, PR reviews), so it works the same on any host and needs nothing from the conversation.
Usage: /close-epic <epic#> [--dry-run]
1. Check
EPIC=42
gh issue view "$EPIC" --json state,subIssuesSummary,subIssues \
--jq '{state, summary: .subIssuesSummary, open: [.subIssues.nodes[] | select(.state=="OPEN") | .number]}'
REPO=$(gh repo view --json nameWithOwner --jq .nameWithOwner)
gh api "repos/$REPO/issues/$EPIC/comments" --paginate \
--jq '[.[] | select(.body | startswith("<!-- sdd-summary -->"))] | length'