Close Issue
Productivityclose-issueClose Issue is an Agent Skill for productivity published in the desplega-ai/agent-swarm repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Close a GitHub or GitLab issue with a summary comment
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/desplega-ai/agent-swarm/blob/HEAD/plugin/pi-skills/close-issue/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/close-issue, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
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:
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