git-commit
Skill1 starsChanged 8 months agoCC0-1.0View on GitHub
Conventional Commits形式のコミットメッセージを生成し、gitコミットを実行するスキル。ユーザーが「コミットして」「変更をコミット」「/git-commit」などと言った時、またはコード変更後にコミットが必要な場面で使用する。feat, fix, chore, docs, style, refactor, perf, test, build, ciの種別をサポートし、スコープを自動推定する。変更が多い場合はコミットを適切に分割する。
- Reads credentials
174 other projects use a version of this.
Adopted by
Most recently taken up by
- HAOYI99/skillstheir own version, first seen Nov 8, 2026
- swjybky/deepwritetheir own version, first seen Nov 8, 2026
- PC2005-cloud/dsh-pettheir own version, first seen Nov 8, 2026
- stuff4ai/skillstheir own version, first seen Nov 8, 2026
- apattichis/agentic-research-toolkittheir own version, first seen Nov 8, 2026
- Darna-Digital/skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use git-pr, github-pr-create and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
klauswgSkillgit-pr
Prepare, review, publish, or update a complete GitHub pull request for the current repository, including local commit readiness, safe push strategy, semantic title validation, repository-native PR templates, issue linking, and checks verification. Use when the user asks to draft, create, submit, publish, open, or update a pull request. Always require the user to review and explicitly approve the exact final PR before any push or GitHub write.
Also in 11 projects that use this
mjun0812Skillgithub-pr-create
Pull Requestを作成するSkill。現在のbranchからpull requestを作成する。言語指定可能。 ユーザーが「PR作って」「pull request作成して」のように依頼したら使うこと。
Also in 3 projects that use this
MicrosoftSkillgit-branch
Branch management for implementation. Use when you need to create a branch, switch branches, checkout, or verify branching strategy before implementing code. Do not use for commits (use git-commit), pull requests (use pull-request), or advanced git operations (rebase, merge).
Also in 4 projects that use this
klauswgSkillgit-issue
Prepare, review, create, or update evidence-based GitHub issues for the current repository with duplicate detection, repository-native templates, valid labels, and post-publication verification. Use when the user asks to draft, file, submit, publish, edit, or refine a GitHub issue, bug report, feature request, performance issue, or technical proposal. Always require the user to review and explicitly approve the exact final issue before any GitHub write.
Also in 3 projects that use this
gologo13Skillgit-push
Push current branch to origin and sync with remote updates; keywords: git, rebase. Use only on explicit request; before execution, review diffs and list impact scope.
Also in 6 projects that use this
GoogleSkillgithub-pr-review
Review a GitHub pull request and leave inline comments in a natural human reviewing voice, indistinguishable from comments typed by hand on the GitHub web UI. Deliberately bounded to defects a reader can settle by looking at the anchored line, rather than a deep audit, so every comment is cheap for the author to check. Scales to 2-20 comments by PR size, parallelises analysis across sub-agents, drafts for approval, then posts individually with human pacing. Use when the user says "review this PR", "review PR 123", pastes a github.com/.../pull/N link, or asks for comments on a pull request. Don't use for reviewing local uncommitted changes or a diff against a branch (use the `review` skill for that).
Also in 4 projects that use this
Other versions174 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 174
- github/awesome-copilot★ 41ksame name
- doocs/leetcode★ 37ksame name
- tisfeng/Easydict★ 15ksame name
- doocs/md★ 14ksame name
- spinabot/brigade★ 11ksame name
- PC2005-cloud/dsh-pet★ 5.9ksame name
- GitTools/GitVersion★ 3.1ksame name
- igorescodro/alkaa★ 1.6ksame name
- microsoft/hve-core★ 1.6ksame name
- mattmireles/gemma-tuner-multimodal★ 1.5ksame name
164 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository3 other files it gives its agents.
The file
Files
Git Commit
Conventional Commits形式でコミットメッセージを生成し、gitコミットを実行する。
ワークフロー
- 変更内容を分析する
- コミットを計画する(必要に応じて分割)
- Planモードでユーザーに提示・承認を得る
- コミットを実行する
Step 1: 変更内容の分析
以下のコマンドを並列実行して変更内容を把握する:
git status— 変更・未追跡ファイルの一覧git diff— 未ステージの変更内容git diff --cached— ステージ済みの変更内容git log --oneline -10— 直近のコミットスタイル確認
Step 2: コミット計画
種別の判定
変更内容から適切な種別を選択する:
| 種別 | 用途 |
feat | 新機能の追加 |
fix | バグ修正 |
chore | ビルド、依存関係、設定などの雑務 |
docs | ドキュメントのみの変更 |
style | コードの意味に影響しない変更(空白、フォーマット、セミコロンなど) |
refactor | バグ修正でも機能追加でもないコード変更 |
perf | パフォーマンス改善 |
test | テストの追加・修正 |
build | ビルドシステムや外部依存関係の変更 |
ci | CI設定ファイル・スクリプトの変更 |
スコープの自動推定
変更ファイルのパスからスコープを推定する:
- 変更が単一ディレクトリ配下に集中 → そのディレクトリ名をスコープにする
- 例:
src/auth/login.ts,src/auth/token.ts→auth
- 例:
- モノレポのパッケージ → パッケージ名をスコープにする
- 例:
packages/api/src/handler.ts→api
- 例:
- 変更が広範囲に及ぶ場合 → スコープを省略する
- 設定ファイルのみ →
configをスコープにする
コミット分割の判断
以下の場合はコミットを分割する:
- 異なる種別の変更が混在(例: 新機能追加とバグ修正が同時)
- 論理的に無関係な変更が含まれる
- 異なるモジュール/機能に対する独立した変更
分割時のルール:
- 関連する変更をグループ化する
- 各コミットが単独で意味を持つようにする
- 依存関係がある場合は正しい順序でコミットする
メッセージ形式
type(scope): summary
Optional body with more details.- summaryは英語、命令形、小文字開始、末尾にピリオドなし、50文字以内
- bodyは必要な場合のみ。変更の理由や背景を英語で記述
良い例:
feat(auth): add JWT token refresh endpoint
Add automatic token refresh when access token expires.
Refresh tokens are stored in HTTP-only cookies.fix(api): handle null response from payment gatewaychore: update dependencies to latest versionsStep 3: Planモードでの提示
EnterPlanModeを使用して、コミット計画をユーザーに提示する。
EnterPlanModeツールが存在しない場合は、コミット計画をユーザーに メッセージ で提示する。
Planには以下を含める:
単一コミットの場合
## コミット計画
### コミット
- **タイトル:** `feat(auth): add JWT token refresh endpoint`
- **説明:** Add automatic token refresh when access token expires.
- **対象ファイル:**
- `src/auth/refresh.ts` (新規)
- `src/auth/middleware.ts` (変更)
- `src/auth/types.ts` (変更)複数コミットに分割する場合
## コミット計画(N件のコミット)
### コミット 1/N
- **タイトル:** `fix(api): handle null response from payment gateway`
- **説明:** Add null check before accessing response body.
- **対象ファイル:**
- `src/api/payment.ts` (変更)
### コミット 2/N
- **タイトル:** `feat(api): add retry logic for failed payments`
- **説明:** Retry up to 3 times with exponential backoff.
- **対象ファイル:**
- `src/api/payment.ts` (変更)
- `src/api/retry.ts` (新規)ユーザーの承認を待つ。修正要望があれば反映する。
Step 4: コミットの実行
承認後、各コミットを順番に実行する:
- 対象ファイルをステージング:
git add <files> - コミット実行(HEREDOCを使用):
git commit -m "$(cat <<'EOF' type(scope): summary Optional body. EOF )" - 複数コミットの場合は1-2を繰り返す
- 最後に
git statusで結果を確認する
注意事項
.env、credentials、秘密鍵などの機密ファイルをコミットしないgit add -Aやgit add .ではなく、ファイルを個別に指定する--amendは使用しない(ユーザーが明示的に要求した場合を除く)--no-verifyは使用しない(ユーザーが明示的に要求した場合を除く)- pre-commitフックが失敗した場合は、問題を修正して新しいコミットを作成する
- コミット前の調査でLintやTestを行わない。pre-commitフックが失敗した場合のみ追加調査を行う
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

