Close GitHub issues without losing the evidence comment when multiple agents or races may close the issue concurrently.
Scanned 9/9/2026
Install to Claude Code
npx -y skills add vamseeachanta/workspace-hub --skill github-issue-closeout-race-safe --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Github Issue Closeout Race Safe?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/vamseeachanta-github-issue-closeout-race-safe)More formats (shields.io, HTML) on the badges page.
---
name: github-issue-closeout-race-safe
description: Close GitHub issues without losing the evidence comment when multiple agents or races may close the issue concurrently.
version: 1.0.0
author: Hermes Agent
category: github
tags: [github, issues, closeout, race-condition, reliability]
---
# GitHub issue closeout race-safe pattern
Use when:
- closing issues after verification or implementation
- multiple agents/terminals may act on the same issue
- the closeout comment is important evidence and must not be lost
## Problem
`gh issue close --comment "..."` is convenient, but in live multi-agent use the comment can be lost if the issue becomes closed before the command lands cleanly.
## Safe pattern
1. Post the evidence comment first.
2. Close the issue as a separate command.
```bash
gh issue comment <issue> --body-file /tmp/closeout.md
gh issue close <issue>
```
## Why this works
- The closeout evidence becomes durable even if a separate process closes the issue moments later.
- It avoids silent loss of the most important verification/implementation summary.
## Recommended closeout block
Include:
- Result: landed / already done / blocked
- Evidence checked
- Validation commands/results
- Commit hashes or artifact paths
- Residual risks or blockers
## Extra verification
After commenting/closing, verify:
```bash
gh issue view <issue> --json state,comments,url
```
Confirm:
- issue state is `CLOSED` when intended
- the closeout comment is present in recent comments
## When not necessary
If you intentionally want a single quick close with no meaningful evidence, `gh issue close` alone is fine. But when evidence matters, always comment first, then close.
Is this your skill, or is something wrong with this listing? . Author removals are honored within 72 hours.
No comments yet. Be the first to comment!