.claude/skills/git-workflow/SKILL.md
Git ブランチ戦略・コミット規約・PR/Issue テンプレートのパターン集。feature/fix/chore/terraform プレフィックス、Conventional Commits を含む。ブランチ作成・コミット・PR 作成・Issue 管理をするときに自動適用する。
npx skillsauth add rikunisikawa/health-logger git-workflowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
health-logger における Git/GitHub の標準操作パターン集。 CLAUDE.md の開発サイクルに準拠した一貫したワークフローを提供する。
<prefix>/<issue番号>-<簡潔な説明>
feature/42-add-sleep-score
fix/43-offline-queue-flush
chore/44-update-dependencies
terraform/45-add-env-data-lambda
| prefix | 用途 |
|--------|------|
| feature/ | 新機能追加 |
| fix/ | バグ修正 |
| chore/ | 設定・依存・リファクタ |
| terraform/ | インフラ変更のみ |
<type>: <変更内容の要約(日本語可)>
feat: ダッシュボードに気圧グラフを追加
fix: Athena クエリのタイムアウトを 10 秒に修正
test: flags バリデーションのテストを追加
refactor: useOfflineQueue フックを分離
chore: boto3 を 1.42.0 にアップグレード
terraform: env_data_ingest モジュールを追加
Issue 作成コマンド(gh issue create):
--title "<変更内容の要約>"
--body に以下を含める:
## 背景・目的
- ...
## やること
- [ ] ...
## 完了条件
- ...
PR 作成コマンド(gh pr create):
--title "<変更内容>"
--body に以下を含める:
## 関連イシュー
Closes #<issue番号>
## 変更内容
- ...
## テスト確認
- [ ] pytest lambda/ -v → 全件 PASSED
- [ ] npx tsc --noEmit → エラーなし
- [ ] npm run build → 成功
## レビュー観点
- ...
# squash merge(コミット履歴をクリーンに保つ)
gh pr merge <PR番号> --squash --delete-branch
# 状態確認
git status
git log --oneline -10
git diff HEAD~1
# ブランチ操作
git switch main && git pull origin main
git switch -c feature/42-xxx
# ステージング(個別指定)
git add lambda/create_record/handler.py
git add lambda/create_record/test_handler.py
# Issue/PR 操作
gh issue list --state open
gh pr list --state open
gh pr checks <PR番号>
gh run list --limit 5
git add -A / git add . は使わない(センシティブファイルの誤コミット防止)git push --force は禁止(共有ブランチの履歴破壊防止)documentation
実装変更を検知し、対応するドキュメントの更新が必要な箇所を特定する PM スキル。変更ファイルと既存ドキュメントを照合し、更新候補と更新案を提示する。PR 作成時や documentation エージェントがドキュメントを更新するときに自動参照される。
development
React 18 + TypeScript strict + Amplify Auth v6 のフロントエンド実装パターン集。コンポーネント・カスタムフック・API クライアント・オフラインキューの実装を含む。frontend/ ディレクトリを変更するときに自動適用する。
testing
Terraform による AWS インフラ定義のパターン集。モジュール構造・variables.tf・outputs.tf の設計、terraform plan/validate の実行、IAM ポリシー定義など、Terraform コードを書く・修正するときに自動適用する。
data-ai
大きな Issue をサブタスクに分解し、子 Issue として作成する PM スキル。要件を実装単位(S/M/L)に分割し、依存関係を整理する。pm-agent がエピックを分割するときや実装着手前の分解フェーズで自動参照される。