Skip to content
Back to skills

Github Issue Closeout Race Safe

ASecurity

Close GitHub issues without losing the evidence comment when multiple agents or races may close the issue concurrently.

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
testinggobashgit

Works with

  • terminal

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill github-issue-closeout-race-safe --agent claude-code

Installs 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 with every re-scan.

Security grade badge for Github Issue Closeout Race Safe
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-github-issue-closeout-race-safe/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-github-issue-closeout-race-safe)

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: 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.

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.