Gh issue close
Agent skills for GitHub CLI
npx -y skills add dceoy/github-cli-agent-skills --skill gh-issue-closeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Close GitHub issues with gh CLI, choosing completed vs not planned and optionally adding a closing comment.
SKILL.md
1.6 KB, 336 tokens by cl100k_base, as published. Nobody here has run it
GitHub Issue Close
When to use
- The user asks to close or resolve an issue.
- Work is finished, or the issue is duplicate/invalid/out of scope.
Inputs to confirm
- Issue number or URL.
- Target repo if not the current repo (
--repo OWNER/REPO). - Close reason:
completedornot planned. - Optional closing comment text.
Workflow
- Verify auth and access:
gh --version gh auth status - Check current state:
gh issue view 123 --json number,title,state,stateReason - Close with the right reason and optional comment:
gh issue close 123 --reason "completed" gh issue close 123 --reason "not planned" --comment "Duplicate of #45" - Verify closure:
gh issue view 123 --json state,stateReason,closedAt --jq '"\(.state) \(.stateReason) \(.closedAt)"'
Examples
# Close as completed
~ gh issue close 123 --reason "completed"
# Close as not planned with a reason
~ gh issue close 123 --reason "not planned" --comment "Out of scope for current roadmap."
Notes
- Arguments accept number or URL (
gh issue close --help). - Close reasons are exactly
completedornot planned.
References
- GitHub CLI manual: https://cli.github.com/manual/
gh issue close --help
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.