# Gh Closing Issues

> Closes a GitHub issue. Use when a task is completed or an issue is resolved.

- Skill: `majiayu000/gh-closing-issues` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/gh-closing-issues`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/gh-closing-issues/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/gh-closing-issues

---


# Closing GitHub Issues

## Purpose

Resolves an issue using the `gh issue close` command.

## 1. Safety & Verification

- **Mandatory Context**: Ensure `gh-verifying-context` has been run and confirmed by the user.
- **Human-in-the-Loop**: You MUST confirm with the user before closing any issue. State the issue number and title clearly.
- **Verification**: Ensure the issue is actually resolved according to the user's criteria.

## 2. Common Workflows

### Workflow: Close as Completed

Default closing behavior.

**Command**:

```bash
gh issue close <issue-number> --reason completed
```

### Workflow: Close with Comment

It's often good practice to add a comment explaining why the issue is being closed.

**Command**:

```bash
gh issue comment <issue-number> --body "Closing as this is resolved." && gh issue close <issue-number>
```

