Close Issue
Analyze if issues (GitHub/GitLab) can be closed based on commits
- Type
- Slash Command
- Repository
- athola/claude-night-market
- GitHub stars
- 339
- License
- MIT
- Repo last updated
- Sep 24, 2026
- Source file
- plugins/minister/commands/close-issue.md
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
- 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.
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.
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
- 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
- Group by Repository
Group issues by owner/repo for efficient batch analysis. Issues in the same repo share commit history analysis.
- Validate Issues Exist
# For each issue
gh issue view <number> --repo <owner/repo> --json number,title,body,state,labelsIf 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
- Brainstorm Guide project ideation through Socratic questioning to generate briefs with validated approaches and decision rationale. Slash Command · athola/claude-night-market
- Bulletproof Skill Harden skills against rationalization and bypass behaviors Slash Command · athola/claude-night-market
- Blueprint Generate an implementation plan with system architecture design and dependency-ordered task breakdown from a specification. Slash Command · athola/claude-night-market
- Bloat Auditor Execute progressive bloat detection scans (Tier 1-3), generate prioritized reports, and recommend cleanup actions. Subagent · athola/claude-night-market
- Configure Interactive interface to enable/disable rules Slash Command · athola/claude-night-market
- Cite Generate a formatted bibliography from the most recent research session's findings. Slash Command · athola/claude-night-market
- Context Report Generate context optimization report for skill directories Slash Command · athola/claude-night-market
- Catchup Context recovery after session breaks. Summarize recent git changes, extract key decisions, and identify pending work. Slash Command · athola/claude-night-market