Repository navigation
feat(#34): Claude Code Skills(git-flow/backend-dispatch/new-backend-scaffold/docker-ops/demo-recording/backend-ci-trigger)を追加 #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
0f451dd
feat(#34): git-flow Skill を追加
bobtabo 65d008a
fix: CodeRabbit指摘対応(issue検証の失敗停止/--ff-only/PR本文テンプレート展開)
bobtabo 217a183
fix: CodeRabbit再指摘対応(N=<N>のbash構文エラー/PR作成ブロックのpipefail)
bobtabo b63b634
feat(#34): 残り5つのClaude Code Skillsを追加
bobtabo 26ff432
fix: CodeRabbit指摘対応(Skill間の矛盾/手順順序/前提条件の明記)
bobtabo 7bc6542
fix: CodeRabbit指摘対応(登録漏れチェック範囲/バージョン説明の正確化)
bobtabo c818ca7
fix: CodeRabbit指摘対応(プレースホルダーのbash構文エラーを全面解消)
bobtabo 27fdb90
fix: CodeRabbit指摘対応(bashブロック間の変数非共有を前提に自己完結化)
bobtabo 283a4c8
fix: CodeRabbit指摘対応(NAMEのkebab-case検証/コピー先の既存検出)
bobtabo ad574ce
fix: CodeRabbit指摘対応(手順1のbackends/$NAMEにも既存チェックを追加)
bobtabo 7284cf1
feat(#34): git-flowにCI/CodeRabbitレビュー監視・対応手順を追加
bobtabo 09e7c01
fix: CodeRabbit指摘対応(section3のPR固定値/単一チェック判定/未返信判定を修正)
bobtabo e29c571
fix: 未返信コメント抽出でecho|jqがパースエラーになる問題を修正
bobtabo 18026ec
fix: CI待ちのERROR状態未検知と新規workflow未マージ時の分岐漏れを修正
bobtabo c11ecca
fix: CodeRabbit指摘対応(誤ったrun監視/引数分割/表現矛盾/.env混入)
bobtabo 62caedf
fix: CodeRabbit指摘対応(run特定の一意性/exit-status失敗時のログ欠落)
bobtabo f6c42cc
fix: CodeRabbit指摘対応(時刻比較の秒精度問題/ログ取得失敗時のステータス欠落)
bobtabo f97ccfc
fix: gh run listの既定20件制限で対象runを見逃す可能性を修正
bobtabo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,95 @@ | ||
| --- | ||
| name: git-flow | ||
| description: >- | ||
| 対応するGitHub Issueからfeatureブランチを作成し、developへのPRを作成する際に使う。 | ||
| 「Issueブランチを作って」「#Nのブランチを切って」「PRを出して」等の指示で使う。 | ||
| develop→mainの同期PRはこのSkillの対象外。 | ||
| allowed-tools: Bash(git:*), Bash(gh:*) | ||
| --- | ||
|
|
||
| # git-flow | ||
|
|
||
| このリポジトリ(bobtabo/authorization-showcase)のブランチ運用を統一する手順書。 | ||
|
|
||
| ## 前提 | ||
|
|
||
| - 対応するGitHub Issue(番号 N)が既に存在すること。Issue番号を伴わないブランチ名 | ||
| (例: `feature/xxx-yyy`)は作らない。Issueがまだ無い場合は、既存Issueの書式 | ||
| (`[showcase] <type>: <日本語要約>`、`## 背景` → `## タスク` の構成)に合わせて | ||
| 先にIssueを作成してから本Skillを使う。 | ||
| - 派生元ブランチは既定で `develop`。呼び出し時に別ブランチが明示された場合は | ||
| そちらを派生元として使う(例: hotfixを `main` から切る等、たまにある例外に対応)。 | ||
|
|
||
| ## 1. featureブランチ作成 | ||
|
|
||
| ```bash | ||
| set -euo pipefail | ||
| BASE=develop # 明示指定があればそちらに置き換える | ||
| N=<N> # 対応するIssue番号 | ||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||
|
|
||
| git checkout "$BASE" | ||
| git pull --ff-only origin "$BASE" | ||
| gh issue view "$N" --repo bobtabo/authorization-showcase --json title -q .title | ||
| git checkout -b "feature/issue-$N" | ||
| ``` | ||
|
|
||
| `set -euo pipefail` により、Issueが存在せず `gh issue view` が失敗した場合は | ||
| `git checkout -b` を実行せずに停止する。`git pull` は `--ff-only` とし、 | ||
| ローカルとリモートが分岐している場合は自動マージせず停止する。 | ||
|
|
||
| ## 2. developへのPR作成 | ||
|
|
||
| - base: `develop` / head: `feature/issue-<N>`(派生元を変えた場合もbaseは`develop`) | ||
| - タイトル: `<type>(#<N>): <日本語要約>` | ||
| (type: feat/fix/docs/chore/refactor 等、conventional commit風。Issueのtypeを踏襲する) | ||
| - 本文テンプレート: | ||
|
|
||
| ```markdown | ||
| ## Summary | ||
|
|
||
| Issue #<N> 対応。<変更内容の要約> | ||
|
|
||
| ## Changes | ||
| - <変更ファイル/内容> | ||
|
|
||
| Closes #<N> | ||
|
|
||
| 🤖 Generated with [Claude Code](https://claude.com/claude-code) | ||
| ``` | ||
|
|
||
| Issueの一部のみ対応する場合(Issueの残タスクが残る場合)は `Closes #<N>` ではなく | ||
| `Refs #<N>` とし、Issueを自動クローズさせない。 | ||
|
|
||
| - コマンド(本文には上記テンプレートの内容をそのまま埋め込む。省略記号で済ませない): | ||
|
|
||
| ```bash | ||
| git push -u origin "feature/issue-$N" | ||
| gh pr create --repo bobtabo/authorization-showcase \ | ||
| --base develop --head "feature/issue-$N" \ | ||
| --title "<type>(#<N>): <要約>" --body "$(cat <<'EOF' | ||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
|
||
| ## Summary | ||
|
|
||
| Issue #<N> 対応。<変更内容の要約> | ||
|
|
||
| ## Changes | ||
| - <変更ファイル/内容> | ||
|
|
||
| Closes #<N> | ||
|
|
||
| 🤖 Generated with [Claude Code](https://claude.com/claude-code) | ||
| EOF | ||
| )" | ||
| ``` | ||
|
|
||
| ## 禁止事項 | ||
|
|
||
| - `develop` / `main` への直接push(featureブランチ経由のPRを必ず通す) | ||
| - `develop` → `main` のマージはこのSkillでは行わない(「develop → main 同期」PRとして別途手動で作成する) | ||
|
|
||
| ## 既知の制約 | ||
|
|
||
| - 本SkillはSKILL.mdという「明示的に呼び出したときの手順書」であり、`allowed-tools` や | ||
| 現状の `.claude/hooks/guard-bash.sh` は `develop` / `main` への直接pushを機械的には | ||
| ブロックしない(`guard-bash.sh` が対象とするのは `push --force` / `reset --hard` 等の | ||
| 破壊的操作のみ)。保護ブランチへのpushを権限層で強制したい場合は、`guard-bash.sh` の | ||
| 拡張または GitHub 側のブランチ保護ルールの設定を別Issueとして検討する。 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.