Skip to content
Back to skills

Close Issue

ASecurity

Close a GitHub or GitLab issue with a summary comment

  • 844 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 26, 2026
toolsbashgit

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add desplega-ai/agent-swarm --skill close-issue --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Close Issue?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Close Issue
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/desplega-ai-close-issue/badge)](https://www.skillsdirectory.com/skills/desplega-ai-close-issue)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: close-issue
description: Close a GitHub or GitLab issue with a summary comment
---

# 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:**
   ```bash
   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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.