本文へスキップ
Skillpedia
デプロイとクラウド(DevOps)11k · #11720

git-commit

できること

このスキルは、gitプロジェクトの変更を整った形で保存するよう、AIを導きます。わかりやすいコミットメッセージと、説明の行き届いたプルリクエストがほしい開発者向けです。

使う場面

  • ✓gitプロジェクトの変更をコミットしようとしているとき。
  • ✓変更が無関係な複数のテーマを含み、別々のコミットに分ける必要があるとき。
  • ✓わかりやすいタイトルと説明付きのプルリクエストを作りたいとき。

スキルのリンク

https://github.com/spinabot/brigade/blob/main/skills/git-commit/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/spinabot/brigade/blob/main/skills/git-commit/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“このプロジェクトの変更を、わかりやすいメッセージでコミットし、mainブランチ宛てのプルリクエストを作成してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

AIは、どのファイルがステージされているかを正確に確認し、標準的なスタイルで短いメッセージを書き、無関係な作業は別々のコミットに分けます。プルリクエストの場合は、ブランチをプッシュし、GitHubのコマンドラインツールでリクエストを作成します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Git commits & PRs

Use this when committing changes or opening a pull request.

Before committing

  • Run git status and git diff --staged to see exactly what's going in. Never git add -A blindly — stage the files that belong to this change.
  • Keep one logical change per commit. If the diff does two unrelated things, make two commits.
  • Don't commit secrets, large binaries, or generated artifacts. Check .gitignore covers them.

Message format

Conventional Commits:

<type>(<optional scope>): <short imperative summary>

<optional body — what changed and WHY, wrapped at ~72 cols>

Types: feat, fix, docs, refactor, test, chore, perf, build, ci.

  • Summary in the imperative mood ("add", not "added"), ≤72 chars, no trailing period.
  • The body explains the reasoning a future reader needs — not a restatement of the diff.

Pull requests (gh CLI)

  • git push -u origin <branch> then gh pr create --fill (or --title/--body).
  • PR body: what changed, why, and how it was verified (tests run, manual checks).
  • Confirm the base branch is correct before creating.

Conventions to honor

Match the repository's existing style — read recent git log --oneline first and follow whatever format the project already uses if it differs from the above.

よくある質問

どのコミットメッセージのスタイルを使いますか?

Conventional Commitsを使います。fixやfeatなどの種類と短い要約を付ける標準の形式です。

すべてのファイルをまとめて追加しますか?

いいえ。全部を追加するのではなく、変更に属するファイルだけをステージします。

プロジェクト独自のスタイルに従いますか?

はい。まず最近のコミット履歴を読み、プロジェクトがすでに使っているスタイルに従います。

詳細

作者による元の説明

Stage, write, and structure git commits and pull requests cleanly. Read this before committing — for conventional-commit message format, when to split commits, and how to open a PR with the gh CLI.

repo: spinabot/brigade

人気

GitHubのスター
11k
ランキング
#11720
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル