# Git Workflow

> Gitコミットメッセージ作成とPR説明文生成。 Conventional Commits形式、変更内容の要約、レビューポイント整理。 コミット作成、PR作成、Git操作時に使用。

- Skill: `atomic-kanta-sasaki/git-workflow` (Agent Skill)
- Install (CLI): `npx skillmds@latest add atomic-kanta-sasaki/git-workflow`
- Raw SKILL.md: https://api.skillmd.com/api/skills/atomic-kanta-sasaki/git-workflow/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: atomic-kanta-sasaki (https://skillmd.com/u/atomic-kanta-sasaki)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/atomic-kanta-sasaki/git-workflow

---


# Git Workflow Skill

## Overview
一貫性のあるコミットメッセージとPRを作成します。

## Commit Message Format (Conventional Commits)

```
<type>(<scope>): <subject>

<body>

<footer>
```

### Types
| Type | 用途 |
|------|------|
| feat | 新機能 |
| fix | バグ修正 |
| docs | ドキュメント |
| style | フォーマット（動作に影響なし） |
| refactor | リファクタリング |
| perf | パフォーマンス改善 |
| test | テスト追加・修正 |
| chore | ビルド、CI、依存関係 |

### Examples
```
feat(auth): add JWT refresh token support

Implement automatic token refresh when access token expires.
- Add refresh token endpoint
- Store refresh token in httpOnly cookie
- Add token rotation for security

Closes #123
```

```
fix(api): handle null pointer in user lookup

Check for null before accessing user properties to prevent
500 errors when user is not found.

Fixes #456
```

## Pull Request Template

```markdown
## 概要
<!-- 変更の概要を1-2文で -->

## 変更種別
- [ ] 新機能
- [ ] バグ修正
- [ ] リファクタリング
- [ ] ドキュメント
- [ ] その他

## 変更内容
<!-- 具体的な変更点をリスト -->
- 
- 

## 技術的な詳細
<!-- 実装のポイント、設計判断の理由 -->

## テスト
<!-- 実施したテスト -->
- [ ] ユニットテスト追加/更新
- [ ] 統合テスト追加/更新
- [ ] 手動テスト実施

## スクリーンショット
<!-- UI変更がある場合 -->

## チェックリスト
- [ ] コードがスタイルガイドに準拠
- [ ] セルフレビュー実施
- [ ] コメント追加（複雑な箇所）
- [ ] ドキュメント更新
- [ ] 破壊的変更なし（ある場合は明記）

## 関連Issue
Closes #
```

## Branch Naming
```
<type>/<issue-number>-<short-description>

例:
feat/123-add-user-authentication
fix/456-resolve-null-pointer
refactor/789-extract-service-layer
```

## Commit Best Practices
1. 1コミット = 1つの論理的変更
2. コミットはビルドが通る状態で
3. 50文字以内のsubject
4. bodyで「なぜ」を説明
5. 関連Issueを参照

