agentsclimarketplace

Gh issue close

Skill dceoy/github-cli-agent-skills/skills/gh-issue-close

Agent skills for GitHub CLI

Install
npx -y skills add dceoy/github-cli-agent-skills --skill gh-issue-close

Assembled 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: completed or not planned.
  • Optional closing comment text.

Workflow

  1. Verify auth and access:
    gh --version
    gh auth status
    
  2. Check current state:
    gh issue view 123 --json number,title,state,stateReason
    
  3. 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"
    
  4. 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 completed or not planned.

References

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.