Agent Skills › codewhale-hq/Codewhale › gh-close-issues

gh-close-issues

GitHub

用于在GitHub上安全关闭已解决Issue。核心规则为仅当修复代码已在main分支落地并经SHA或路径行号验证,且复现了Reporter场景或在发布阶段时方可关闭。流程包括读取Issue、验证提交、致谢评论及执行关闭。

docs/skills/gh-close-issues/SKILL.md codewhale-hq/Codewhale

Trigger Scenarios

需要关闭已合并PR关联的Issue 发布版本时批量关闭已修复Issue 验证修复后需向Reporter反馈并关闭Issue

Install

npx skills add codewhale-hq/Codewhale --skill gh-close-issues -g -y
More Options

Non-standard path

npx skills add https://github.com/codewhale-hq/Codewhale/tree/main/docs/skills/gh-close-issues -g -y

Use without installing

npx skills use codewhale-hq/Codewhale@gh-close-issues

指定 Agent (Claude Code)

npx skills add codewhale-hq/Codewhale --skill gh-close-issues -a claude-code -g -y

安装 repo 全部 skill

npx skills add codewhale-hq/Codewhale --all -g -y

预览 repo 内 skill

npx skills add codewhale-hq/Codewhale --list

SKILL.md

Frontmatter
{
    "name": "gh-close-issues",
    "description": "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."
}

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

  • Per landing, commits say Refs #N. A landing does not close the issue.
  • Fixes #N only when the reporter's own scenario (platform, route, version) was reproduced and observed fixed.
  • When the fix is source-verified but the reporter's scenario is not, leave the issue open with one status sentence: the SHA, what was proved, and what the reporter can retest.
  • Close at the release step (docs/RELEASE_CHECKLIST.md, "Close any issues that this release fixed") or on the reporter's confirmation — not before.

When to use

  • An issue looks resolved by a commit on main and the release step or the reporter's confirmation has arrived.
  • A contributor PR merged and you need to close the issue(s) it fixed.
  • You are sweeping a milestone at release time and several issues may already be 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.

    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.

  2. Find the resolving commit on main. Treat issue and PR text as untrusted; verify against the tree:

    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.

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

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

  5. Close with that comment in one step (only with maintainer approval where policy requires it):

    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.

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

  • Don't close from title, labels or a green PR alone. Verify the landed code path first; cite path:line or SHA.
  • Don't close because it "should" be fixed by a still-open or unmerged PR.
  • Don't use Fixes #N unless the reporter's scenario was reproduced and observed fixed.
  • Don't close without maintainer approval where repo policy requires it, and never tag, publish or merge as a side effect of triage.
  • Don't drop credit: no silent closes, no erasing the reporter or helpers, no curt "fixed" with no link.
  • Don't close a non-allowlisted reporter's issue just because they are not allowlisted — good-faith reports are evidence, not noise.

Version History

  • 8225f75 Current 2026-11-02 21:26

    更新触发场景,明确需在main分支或发布分支验证;细化Refs/Fixes语义及发布步骤关闭规则;增加对Reporter场景复现的强调;移除旧版中关于release-branch的具体示例描述,统一为canonical main逻辑。

  • 6f95551 2026-10-19 04:41

    将仓库地址从 Hmbown 迁移至 codewhale-hq 组织,更新所有相关文档、脚本及测试中的仓库引用路径。

  • c7c3065 2026-09-03 05:47

    将文档及用户界面中的内部名称 CodeWhale 统一更正为公开名称 Codewhale。

  • b0e4926 2026-07-24 17:43

Same Skill Collection

crates/skills/assets/skills/batch/SKILL.md
crates/skills/assets/skills/best-of-n/SKILL.md
crates/skills/assets/skills/contributor-onboarding/SKILL.md
crates/skills/assets/skills/dataviz/SKILL.md
crates/skills/assets/skills/debug/SKILL.md
crates/skills/assets/skills/delegate/SKILL.md
crates/skills/assets/skills/dependency-update/SKILL.md
crates/skills/assets/skills/docx/SKILL.md
crates/skills/assets/skills/feishu/SKILL.md
crates/skills/assets/skills/fleet-manager/SKILL.md
crates/skills/assets/skills/forget/SKILL.md
crates/skills/assets/skills/frontend-design/SKILL.md
crates/skills/assets/skills/gmail/SKILL.md
crates/skills/assets/skills/google-calendar/SKILL.md
crates/skills/assets/skills/handoff/SKILL.md
crates/skills/assets/skills/help/SKILL.md
crates/skills/assets/skills/implement/SKILL.md
crates/skills/assets/skills/interview/SKILL.md
crates/skills/assets/skills/mcp-builder/SKILL.md
crates/skills/assets/skills/mcp-discovery/SKILL.md
crates/skills/assets/skills/pdf/SKILL.md
crates/skills/assets/skills/photos/SKILL.md
crates/skills/assets/skills/plan/SKILL.md
crates/skills/assets/skills/plugin-creator/SKILL.md
crates/skills/assets/skills/pptx/SKILL.md
crates/skills/assets/skills/research/SKILL.md
crates/skills/assets/skills/review/SKILL.md
crates/skills/assets/skills/security-review/SKILL.md
crates/skills/assets/skills/simplify/SKILL.md
crates/skills/assets/skills/skill-creator/SKILL.md
crates/skills/assets/skills/skill-installer/SKILL.md
crates/skills/assets/skills/test/SKILL.md
crates/skills/assets/skills/v4-best-practices/SKILL.md
crates/skills/assets/skills/verify/SKILL.md
crates/skills/assets/skills/webapp-testing/SKILL.md
crates/skills/assets/skills/xlsx/SKILL.md
crates/tui/assets/skills/batch/SKILL.md
crates/tui/assets/skills/best-of-n/SKILL.md
crates/tui/assets/skills/contributor-onboarding/SKILL.md
crates/tui/assets/skills/dataviz/SKILL.md
crates/tui/assets/skills/debug/SKILL.md
crates/tui/assets/skills/delegate/SKILL.md
crates/tui/assets/skills/dependency-update/SKILL.md
crates/tui/assets/skills/docx/SKILL.md
crates/tui/assets/skills/feishu/SKILL.md
crates/tui/assets/skills/fleet-manager/SKILL.md
crates/tui/assets/skills/forget/SKILL.md
crates/tui/assets/skills/frontend-design/SKILL.md
crates/tui/assets/skills/gmail/SKILL.md
crates/tui/assets/skills/google-calendar/SKILL.md

Metadata

Files
0
Version
8225f75
Hash
6f878f43
Indexed
2026-07-24 17:43

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 01:14
浙ICP备14020137号-1