Skip to content
Agent Orchestration
Command

/close-issue

Close a GitHub or GitLab issue with a summary comment

BOOST
From plugin
agent-swarm
88011 skills5 agents11 commands
Install
> /plugin marketplace add desplega-ai/agent-swarm
> /plugin install agent-swarm@agent-swarm

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/close-issue

Context preview

What this command does when you run it.

Close a GitHub or GitLab issue with a summary comment

Command definition

close-issue.md
description: Close a GitHub or GitLab issue with a summary comment
argument-hint: <issue-number-or-url>

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

1. **Parse the input** — if given a URL, extract owner, repo, and issue number. If just a number, use the current repo context. 2. **Ensure repo is cloned** to `/workspace/personal/<repo-name>` (clone with `gh repo clone` if needed). 3. **Get issue details** — read the issue title, body, comments, and check for related PRs. 4. **Generate closing comment** — summarize what was done, reference related PRs/commits, note any follow-ups. 5. **Post comment and close:**

   gh issue close <issue-number> --comment "Your closing comment" --reason completed

Closing Reasons

  • `completed` — The issue was resolved
  • `not_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
Ships withagent-swarm

Your Company Agentic Operating System

Get the whole plugin

Other commands on agent-swarm.