Agent skill
close-issue
Close a GitHub or GitLab issue with a summary comment
Install this agent skill to your Project
npx add-skill https://github.com/desplega-ai/agent-swarm/tree/main/plugin/pi-skills/close-issue
SKILL.md
Close Issue
Close a GitHub or GitLab issue with an appropriate closing comment summarizing the resolution.
Provider detection: Check the URL or remote to determine the VCS provider:
- If GitHub → use
gh issue close/gh issue comment - If GitLab → use
glab issue close/glab issue note
Arguments
issue-number-or-url: Either an issue number (e.g.,123) or a full issue URL
Workflow
- Parse the input — if given a URL, extract owner, repo, and issue number. If just a number, use the current repo context.
- Ensure repo is cloned to
/workspace/personal/<repo-name>(clone withgh repo cloneif needed). - Get issue details — read the issue title, body, comments, and check for related PRs.
- Generate closing comment — summarize what was done, reference related PRs/commits, note any follow-ups.
- Post comment and close:
bash
gh issue close <issue-number> --comment "Your closing comment" --reason completed
Closing Reasons
completed— The issue was resolvednot_planned— Won't fix / out of scope / duplicate
Tips
- Always explain why the issue is being closed
- Reference specific PRs or commits when applicable
- If closing as "not planned", explain the reasoning
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
implement-issue
Implement a GitHub issue or GitLab issue and create a PR/MR
start-leader
Start the Agent Swarm Leader
investigate-sentry-issue
Investigate and triage a Sentry error issue
user-management
How to manage the user registry — creating users for new Slack/GitHub/GitLab identities, managing aliases, resolving users across platforms. Use when a new human interacts with the swarm or when user identity needs updating.
swarm-chat
Effective communication within the agent swarm using internal Slack
work-on-task
Work on a specific task assigned to you in the agent swarm
Didn't find tool you were looking for?