Gitコミットの手順とコミットメッセージの規則に従って、適切なコミットメッセージを生成し、変更をコミットする。
Scanned 2/12/2026
Install via CLI
openskills install 844196/dotfiles---
name: git-commit
description: Gitコミットの手順とコミットメッセージの規則に従って、適切なコミットメッセージを生成し、変更をコミットする。
---
# Git Commit
## Workflow
### 1. Check Staged Changes
コミット可能かどうかを確認するため、まずステージされた変更を確認します。
- !`git status`
- !`git diff --cached --stat`
もし変更がない場合は、ユーザーに `git add` した上で続行するかを確認します。
### 2. Analyze Diff
変更内容を詳細に確認します。
- !`git diff --cached`
### 3. Generate Commit Message
**重要**: プロジェクトで独自のコミットメッセージ規則が制定されている場合はそれに従います。
[Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) に従ってコミットメッセージを生成します。
#### Format
```
<type>[(scope)][!]: <subject>
[optional body]
[optional footer(s)]
```
#### Types
変更内容に最も適したタイプを選択します。
- `feat:` - 新機能の追加
- `fix:` - バグ修正
- `refactor:` - リファクタリング
- `docs:` - ドキュメントの追加・更新
- `style:` - フォーマット修正 (コードの動作に影響しない変更)
- `perf:` - パフォーマンス改善
- `test:` - テストコードの追加・修正
- `chore:` - メンテナンス作業
- `chore(deps):` - 依存関係の更新
`feat` や `fix` は "エンドユーザーから見た時、この変更がどう映るか" を基準に選択します。何かを "修正" した場合でも、エンドユーザーに影響がないのであれば `refactor` や `chore` を選択すべきです。
#### Subject
変更内容を元に「どのような変更を行ったか」を英語で簡潔に伝えます。
- **常に** 現在形の命令形で始める (e.g. `add`, `implement`, `fix`, `improve`, `enhance`, `refactor`, `remove`)
- **常に** タイトルは50文字以内
- **決して** 大文字で始めない
- **決して** ピリオドで終わらせない
- **決して** 内容のないコミットメッセージにしない (e.g. `update`, `fix bugs`)
#### Breaking Changes
破壊的変更がある場合は、1行目のスコープの直後にエクスクラメーションマークを追加し、フッターに `BREAKING CHANGE: <description>` を追加します。
```
chore!: drop support for Node 6
BREAKING CHANGE: use JavaScript features not available in Node 6.
```
### 4. Commit Changes
生成したコミットメッセージを使用して変更をコミットします。
```bash
# Simple
git commit -m "<type>[(scope)][!]: <subject>"
```
```bash
# With Body (各 -m は空行で区切られる)
git commit -m "<type>[(scope)][!]: <subject>" -m "[optional body]" -m "[optional footer(s)]"
```
## 5. Output Result
コミット完了後、**必ず以下の固定フォーマットで出力**します。
~~~
コミットが完了しました。
変更内容:
* <変更点1の日本語での簡潔な説明>
* <変更点2の日本語での簡潔な説明>
* ...
<コミットメッセージ全文 (subject, body, footer すべて含む)>
~~~
## Commit Message Examples
- `feat(client): add new options for foobar`
- `fix(server): resolve validation issue in user input`
- `chore(deps): update foobar to X.Y.Z`
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.
SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.
Python backend development expertise for FastAPI, security patterns, database operations, Upstash integrations, and code quality. Use when: (1) Building REST APIs with FastAPI, (2) Implementing JWT/OAuth2 authentication, (3) Setting up SQLAlchemy/async databases, (4) Integrating Redis/Upstash caching, (5) Refactoring AI-generated Python code (deslopification), (6) Designing API patterns, or (7) Optimizing backend performance.
Drive the full internationalization journey for a project — detect the stack, recommend a library, set up the chosen library, wrap existing strings, and optionally connect a translation platform. Use when the user asks to add or configure i18n, internationalization, localization, multi-language support, or translations — including when they explicitly mention LinguiJS, Lingui, next-intl, "wrap strings", "find hardcoded text", "make my app translatable", or "set up translations". Triggers on g...
PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.