Skip to content
Merged
Show file tree
Hide file tree
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 Aug 12, 2026
65d008a
fix: CodeRabbit指摘対応(issue検証の失敗停止/--ff-only/PR本文テンプレート展開)
bobtabo Aug 12, 2026
217a183
fix: CodeRabbit再指摘対応(N=<N>のbash構文エラー/PR作成ブロックのpipefail)
bobtabo Aug 12, 2026
b63b634
feat(#34): 残り5つのClaude Code Skillsを追加
bobtabo Aug 13, 2026
26ff432
fix: CodeRabbit指摘対応(Skill間の矛盾/手順順序/前提条件の明記)
bobtabo Aug 13, 2026
7bc6542
fix: CodeRabbit指摘対応(登録漏れチェック範囲/バージョン説明の正確化)
bobtabo Aug 13, 2026
c818ca7
fix: CodeRabbit指摘対応(プレースホルダーのbash構文エラーを全面解消)
bobtabo Aug 14, 2026
27fdb90
fix: CodeRabbit指摘対応(bashブロック間の変数非共有を前提に自己完結化)
bobtabo Aug 15, 2026
283a4c8
fix: CodeRabbit指摘対応(NAMEのkebab-case検証/コピー先の既存検出)
bobtabo Aug 16, 2026
ad574ce
fix: CodeRabbit指摘対応(手順1のbackends/$NAMEにも既存チェックを追加)
bobtabo Aug 17, 2026
7284cf1
feat(#34): git-flowにCI/CodeRabbitレビュー監視・対応手順を追加
bobtabo Aug 17, 2026
09e7c01
fix: CodeRabbit指摘対応(section3のPR固定値/単一チェック判定/未返信判定を修正)
bobtabo Aug 17, 2026
e29c571
fix: 未返信コメント抽出でecho|jqがパースエラーになる問題を修正
bobtabo Aug 17, 2026
18026ec
fix: CI待ちのERROR状態未検知と新規workflow未マージ時の分岐漏れを修正
bobtabo Aug 17, 2026
c11ecca
fix: CodeRabbit指摘対応(誤ったrun監視/引数分割/表現矛盾/.env混入)
bobtabo Aug 20, 2026
62caedf
fix: CodeRabbit指摘対応(run特定の一意性/exit-status失敗時のログ欠落)
bobtabo Aug 21, 2026
f6c42cc
fix: CodeRabbit指摘対応(時刻比較の秒精度問題/ログ取得失敗時のステータス欠落)
bobtabo Aug 21, 2026
f97ccfc
fix: gh run listの既定20件制限で対象runを見逃す可能性を修正
bobtabo Aug 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions .claude/skills/git-flow/SKILL.md
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:*)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
---

# 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番号
Comment thread
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'
Comment thread
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として検討する。
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ docker/local/.env
.claude/*
!.claude/settings.json
!.claude/hooks/
!.claude/skills/
.claude/settings.local.json
/backends/go-gin/tmp/
/backends/java-springboot/.gradle/
Expand Down