Sponsor Suno AI Music arrow_forward
Slash Command

Close Issue

Analyze if issues (GitHub/GitLab) can be closed based on commits

Type
Slash Command
GitHub stars
339
License
MIT
Repo last updated
Sep 24, 2026

What Close Issue is

Close Issue is a slash command published in the athola/claude-night-market repository on GitHub, which has about 339 stars. The repository describes itself as: “23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context optimization, research, and multi-LLM delegation. 186 skills, 128 commands, 54 agents.”

A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.

Close Issue gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.

How to install Close Issue

Claude Code

  1. Download close-issue.md from the repository.
  2. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
  3. Run it by typing / followed by its name.

Claude Cowork

  1. Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
  2. In Customize → Skills, click +, then upload the ZIP.
  3. Run it from any task with / and the skill name.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/minister/commands/close-issue.md, shared under the repository's MIT license. Read the full file on GitHub.

Researches commits and codebase to determine if linked issues (GitHub/GitLab) can be closed based on existing changes. Uses leyline:git-platform for platform detection. For incomplete issues, reports gaps with specific tasks and offers to work on them immediately.

When To Use

Use this command when you need to:

  • Determining if issues are complete based on commits
  • Finding remaining work for incomplete issues

Arguments

  • - One or more issue references:
  • Issue number: 21
  • Full URL: https://github.com/owner/repo/issues/21 or https://gitlab.com/owner/repo/-/issues/21
  • Short reference: owner/repo#21
  • --dry-run - Analyze only, skip interactive prompts

Workflow

Phase 1: Parse & Group Issues

  1. Parse Issue References

For each argument, determine the format and extract (owner, repo, number):

   # Get current repo context for bare numbers
   gh repo view --json owner,name -q '"\(.owner.login)/\(.name)"'

Parsing Rules:

  • Bare number (21) → Use current repo
  • Full URL → Extract from path
  • Short ref (owner/repo#21) → Parse directly
  1. Group by Repository

Group issues by owner/repo for efficient batch analysis. Issues in the same repo share commit history analysis.

  1. Validate Issues Exist
   # For each issue
   gh issue view <number> --repo <owner/repo> --json number,title,body,state,labels

If issue doesn't exist or is already closed, report and skip.

Phase 2: Gather Evidence (Per Repo Group)

For each repository group, gather evidence in parallel where possible.

2a. Commit Analysis

Search for commits that reference the issue:

# Search by issue number patterns
git log --all --oneline --grep="#<number>" -i
git log --all --oneline --grep="issue <number>" -i
git log --all --oneline --grep="<owner>/<repo>/issues/<number>"
git log --all --oneline --grep="closes <number>" -i
git log --all --oneline --grep="fixes <number>" -i

# For each found commit, get details
git show <sha> --stat --format="%H %s"

Record:

  • Commit SHA and message
  • Files changed
  • Whether commit explicitly closes/fixes the issue

2b. Codebase Analysis

Use an Explore agent to search the codebase for implementations related to the issue:

Spawn an Explore agent with the following task:

Analyze issue #<number> from <owner>/<repo>:

Title: <issue_title>
Body: <issue_body>

Extract acceptance criteria from the issue body (look for checkboxes, "should", "must", numbered lists).

Search the codebase for evidence that each criterion is implemented:
- Look for related function/class names
- Search for comments referencing the issue
- Check test files for related test cases
- Examine recently modified files

Return structured findings:
{
  "criteria": [
…

For multiple repo groups, spawn Explore agents in parallel using the Task tool.

Phase 3: Verdict Determination

For each issue, synthesize commit and codebase evidence into a verdict:

Verdict Logic:

if all criteria have status "met":
    verdict = "READY TO CLOSE"
elif any criteria have status "met":
    verdict = "PARTIALLY DONE"
elif no evidence found:
    verdict = "NOT STARTED"
else:
    verdict = "UNCLEAR"

Phase 4: Generate Report

Present findings in a consolidated report with per-issue sections.

Report Template

# Issue Analysis Report

## Summary

| Issue | Title | Verdict |
|-------|-------|---------|
| #21 | Enhance MCP analytics | READY TO CLOSE |
| #22 | Fix validation bug | PARTIALLY DONE |

---

## #21: Enhance MCP analytics

**Repo:** athola/skrills
**Verdict:** READY TO CLOSE

### Commits (3)
- `a1b2c3d` feat(mcp): add skill co-occurrence tracking
…

Phase 5: Interactive Prompt

After presenting the report, prompt the user based on verdicts found.

If any issues are READY TO CLOSE:

Use the AskUserQuestion tool:

Question: "Close these issues?"
Options:
- "Yes, close all ready issues (Recommended)" - Close via gh issue close
- "Review individually" - Prompt per issue
- "No, just report" - End without closing

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Close Issue?

Close Issue is a slash command for Claude Code and Claude Cowork from the athola/claude-night-market repository on GitHub. Analyze if issues (GitHub/GitLab) can be closed based on commits

How do I install Close Issue in Claude Code?

Download close-issue.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.

Can I use Close Issue in Claude Cowork?

Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.

Is Close Issue safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.