本文へ移動
cccskills
無料GitHub で公開日本語紹介

gh-credit-harvest

コミュニティから届いた特定のPRを、作者情報を保ってリリース用ブランチへ取り込みます。変更内容と競合、テスト結果を確かめ、貢献者へのお礼まで支援します。

原文原文の説明を見る

Harvest one community PR into a release branch with authorship and credit preserved, verified green, and a warm thank-you.

インストール方法を見る

こんなときに便利

  • 承認済みPRをリリース用ブランチへ反映
  • 変更を調整しつつ作者情報を残したいとき
  • 実際の取り込み先で競合とテストを確認
  • 修正内容を添えて貢献者に感謝したいとき

日本語での紹介

できること

承認済みのコミュニティPRを1件ずつ、指定されたリリース用ブランチへ取り込む手順を支援します。PRは変更提案のことで、タイトルだけで判断せず、差分、テスト、関連issue、コメント、CIの結果を確認します。元の作者を保つgit cherry-pickを優先し、必要に応じて作者情報や貢献記録を明示します。

こんなときに便利

外部の貢献を、作者の記録を残しながらリリース準備に反映したい管理者に向いています。実際の取り込み先との競合を調べ、変更対象に絞ったテストを実行します。取り込み後は、何が改善されたかを添えた短いお礼をPRに投稿します。

使い方の例

  • 「承認済みのこのPRを、指定ブランチへ作者情報を保って取り込んで」
  • 「取り込み先との競合と対象のテストを確認し、貢献者にお礼を投稿して」

注意点

手順はgit、GitHub CLIのgh、Rustのcargoを使います。マージ、クローズ、タグ付け、公開には管理者の承認が必要です。自動クローズは所定のコミット本文と.github/workflows/auto-close-harvested.ymlに依存します。すでに取り込み済みのPRは対象外です。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(1)

  • SKILL.md4.4 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

gh-credit-harvest

Harvest exactly one community PR into the real landing branch with full authorship and machine-readable credit, verified green, then thank the contributor. A PR is evidence: judge it from code, tests, comments, and checks, never the title. Do not merge, close, tag, or publish without maintainer approval — this skill lands a credited commit and posts thanks; the workflow closes the PR.

When to use

  • You have approval to land ONE specific community PR into a release branch.
  • The PR is not yet on the landing branch (if it is, close-with-credit instead — see gh-close-issues).
  • The landing branch may be local-only (e.g. <release-branch>); a main-based "mergeable" flag does not prove it lands cleanly.

Workflow

  1. Find the real landing branch (the one the maintainer named, not always main) and fetch the PR head:
    git switch <release-branch>
    git fetch origin pull/<N>/head
    git log -1 --format='%H %an <%ae>' FETCH_HEAD   # author to preserve
    
  2. Review from evidence, not the title. Read the diff, tests, linked issue, comments, and CI:
    gh pr view <N> --repo codewhale-hq/CodeWhale --json title,author,files,statusCheckRollup
    gh pr diff <N> --repo codewhale-hq/CodeWhale
    
  3. Test mergeability against the REAL landing branch (local-only branches lie via the main flag):
    git merge-tree $(git merge-base HEAD FETCH_HEAD) HEAD FETCH_HEAD   # empty/clean = no conflict
    
  4. Land it, preferring cherry-pick — it preserves the original author automatically:
    git cherry-pick <sha>            # one or more commits from FETCH_HEAD
    
  5. If it conflicts, spans noise, or needs squashing, re-apply the narrow slice and commit with explicit author + credit trailers. Resolve --author and the co-author from .github/AUTHOR_MAP (fall back to numeric noreply):
    gh api users/<handle> --jq '"\(.id)+\(.login)@users.noreply.github.com"'
    git commit --author="Name <ID+handle@users.noreply.github.com>" -m "fix(scope): what changed (#<N>)" \
      -m "Harvested from PR #<N> by @<handle>" \
      -m "Co-authored-by: Name <ID+handle@users.noreply.github.com>"
    
    The Harvested from PR #<N> by @<handle> line in the body is what .github/workflows/auto-close-harvested.yml matches to auto-close with credit once the commit reaches main.
  6. Format and run the focused tests for the touched crate — only land green:
    cargo fmt --all
    cargo test -p <crate>            # the crate(s) the PR touched, not the whole workspace
    git log -1 --format='%an <%ae>%n%(trailers:key=Co-authored-by)'  # credit the human, from .github/AUTHOR_MAP
    
  7. Post a brief, warm, specific thank-you on the PR — name what the change fixed, no drama. Leave the PR open; the workflow closes it with credit when the commit lands on main:
    gh pr comment <N> --repo codewhale-hq/CodeWhale \
      --body "Thank you @<handle> — clean fix for <the specific bug>. Harvested into the <release-branch> lane with your authorship preserved; it'll auto-close with credit once it reaches main."
    

Shape of a clean harvest: a single-commit PR that cherry-picks with no conflicts needs no manual trailers — the author is preserved automatically — and a focused cargo test -p on the touched crate is enough to land it green.

Red flags / don't

  • Don't judge or land from the title or labels alone — read code, tests, comments, and checks.
  • Don't trust the GitHub main-based mergeable flag for a local-only release branch; prove it with git merge-tree.
  • Don't squash away the original author. Cherry-pick when you can; only fall back to --author + trailers when you must.
  • Don't invent co-author emails. Use .github/AUTHOR_MAP, then numeric noreply; never raw third-party, .local, placeholder, or bot emails.
  • Don't omit the Harvested from PR #<N> by @<handle> body line — without it the PR won't auto-close with credit.
  • Don't land red, harvest more than one PR per commit, or batch unrelated changes into the harvest.
  • Don't merge, close, tag, publish, or push release artifacts without maintainer approval. Keep the comment positive and crediting.
  • Already on the landing branch? Don't re-harvest — close-with-credit via gh-close-issues.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

batch

無料日本語概要

並行して進められる大きな目標を、範囲の明確な作業に分割するスキル。既存のエージェントや作業ツリーの仕組みで実行し、結果の統合と検証まで進めます。

  • 大きな目標を並行作業に分けたいとき
  • 複数エージェントの作業調整
  • 作業ツリーを分けて進めたいとき
codewhale-hq/Codewhale4.1万2026年10月19日 更新

best-of-n

無料日本語概要

設計や実装、説明、デバッグの複数案を独立に作り、共通の評価基準で比較します。コード案は作業場所を分けて検証し、採用候補と判断の根拠を提示するスキルです。

  • 複数の設計方針を比較したいとき
  • 同じ課題の実装案を評価したいとき
  • 説明やデバッグの方針を比較したいとき
codewhale-hq/Codewhale4.1万2026年10月19日 更新

Use before claiming Codewhale release work is done: run the full gate sweep and list the manual QA targets.

日本語の概要は準備中です。原文の説明を表示しています。

codewhale-hq/Codewhale4.1万2026年10月19日 更新

Operate desktop apps and isolated browsers on registered computers. Use for tasks that require an app interface, accessibility, screenshots or recording. Use Chromewhale for the user's signed-in Chrome.

日本語の概要は準備中です。原文の説明を表示しています。

codewhale-hq/Codewhale4.1万2026年10月19日 更新

Help a new contributor get productive on this checkout - inspect sync state against main, build, run the repository's exact verification gate, and produce a local what's-new digest. Never fetches, pulls, or modifies a dirty tree on its own. Explicit-only.

日本語の概要は準備中です。原文の説明を表示しています。

codewhale-hq/Codewhale4.1万2026年10月19日 更新

Use when a Codewhale change needs proving in the real product, or when asked to build/install/dogfood the local binaries: stamped release build, atomic install, fresh-shell verification, and the manual QA that gates cannot cover.

日本語の概要は準備中です。原文の説明を表示しています。

codewhale-hq/Codewhale4.1万2026年10月19日 更新

codewhale-hq のスキルをすべて見る

このスキルの問題を報告する