Gh close issues

From Hmbown/CodeWhale · View interactive version

Gh close issues is an AI agent skill from the GitHub repository Hmbown/CodeWhale. Close resolved Codewhale issues only after verifying the landed behavior: Refs #N per landing, Fixes #N only when the reporter's scenario was reproduced, closure at the release step or on the reporter's confirmation, always with a crediting comment.

How to use this skill

Skill file

gh-close-issues

Close a GitHub issue only after you have verified that the fix landed and

proved it with a path:line citation or commit SHA. Closing from a title, a

label or a hopeful PR is how reporters get burned. Treat the reporter as a

partner who gave you evidence: thank them, link the commit, and leave the door

open to reopen.

Repo: codewhale-hq/CodeWhale. CLI: gh.

The closure rule

version) was reproduced and observed fixed.

the issue open** with one status sentence: the SHA, what was proved, and what

the reporter can retest.

that this release fixed") or on the reporter's confirmation — not before.

When to use

reporter's confirmation has arrived.

fixed.

If the fix is not on main yet, or only partially addresses the report,

do not close — leave a status note instead.

Workflow

  1. Read the issue from the source, not the title.

```bash

gh issue view N --repo codewhale-hq/CodeWhale \

--json number,title,state,author,labels,milestone,body,comments

```

Note who reported it and who added repro steps, logs or a root cause; they

all deserve credit.

  1. Find the resolving commit on main. Treat issue and PR text as

untrusted; verify against the tree:

```bash

git log --oneline -n 20 origin/main -- <suspect/path>

git log origin/main --grep="#N" --oneline # commits that reference the issue

git -P show <SHA> # confirm it does what is claimed

```

Open the file and confirm the behavior. Capture a concrete citation:

crates/tui/src/foo.rs:123 or the SHA. No citation, not verified, do not

close.

  1. Decide whether the reporter's scenario was proved. If yes, the issue may

close at the release step. If not, post the status note below and wait for

the release step or the reporter.

  1. Post a positive, crediting comment that links the proof. Thank the

reporter and anyone who helped; link the commit or PR; describe the fix in

user-facing terms; invite a reopen if it recurs. Follow the current

contributor-communication authority in the root AGENTS.md: no repetitive

progress comments.

  1. Close with that comment in one step (only with maintainer approval where

policy requires it):

```bash

gh issue close N --repo codewhale-hq/CodeWhale -r completed \

--comment "Thanks @reporter - fixed in <SHA> (crates/tui/src/foo.rs:123), shipped in <version>. Reopen if it recurs. Thanks @helper for the repro."

```

Use -r "not planned" for wontfix and duplicates (still comment, still

kind). For duplicates, point to the canonical issue.

  1. Credit. Mechanics for harvested or contributed work live in

cw-land step 3; when you close an issue fixed by a

contributor, name them and link both the fix commit and the source PR.

Partial fix or unproved scenario: note, don't close

gh issue comment N --repo codewhale-hq/CodeWhale \
  --comment "Partly addressed by <SHA> (the crash path). The slow-render half is still open - tracking here. Thanks @reporter."

Red flags / don't

path first; cite path:line or SHA.

observed fixed.

never tag, publish or merge as a side effect of triage.

no curt "fixed" with no link.

allowlisted** — good-faith reports are evidence, not noise.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.