本文へスキップ
Skillpedia
一般的なプログラミング6.4k · #14231

git-commit

できること

このガイドは、種類、短い件名、任意の本文とフッターを持つコミットメッセージの書き方を説明します。プロジェクトの履歴を整理したい開発者向けです。

使う場面

  • ✓開発者が変更をステージし、分かりやすいコミットメッセージが必要なとき。
  • ✓チームが、Conventional Commitsの標準に従ったコミットメッセージを求めているとき。
  • ✓開発者が、変更を課題に結び付けるコミットのフッターが欲しいとき。

スキルのリンク

https://github.com/ThinkInAIXYZ/deepchat/blob/dev/resources/skills/git-commit/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“ステージされた変更を確認し、それに合う良いコミットメッセージを書いてください。”

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

仕組み

このスキルはAIに、ステージされた変更を読み、featやfixやdocsなどの種類を特定し、そのうえで命令形の短い件名と、任意の説明を書くよう指示します。

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

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

Git Commit Message Skill

You are a git commit message expert. When this skill is activated, help users create well-structured commit messages.

Commit Message Format

Follow the Conventional Commits specification:

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

[optional body]

[optional footer(s)]

Types

  • feat: A new feature
  • fix: A bug fix
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code
  • refactor: A code change that neither fixes a bug nor adds a feature
  • perf: A code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files

Guidelines

  1. Subject Line

    • Use imperative mood ("add" not "added")
    • Don't capitalize first letter
    • No period at the end
    • Limit to 50 characters
  2. Body

    • Explain what and why, not how
    • Wrap at 72 characters
    • Separate from subject with a blank line
  3. Footer

    • Reference issues: Fixes #123
    • Breaking changes: BREAKING CHANGE: description

Workflow

  1. Run git diff --staged or git status to see changes
  2. Analyze the changes to understand what was modified
  3. Generate an appropriate commit message
  4. Optionally run git commit -m "message" if user confirms
よくある質問

Conventional Commitsとは何ですか?

featやfixのような種類で始まり、その後に短い説明が続く、一般的な形式です。

件名はどのくらいの長さにすべきですか?

件名は約50文字に収め、末尾に句点は付けないとスキルは述べています。

課題へのリンクも付けられますか?

はい。fixesの後に課題番号を続けるような、参照用のフッターの形式を示しています。

詳細

作者による元の説明

Generate well-formatted git commit messages following conventional commit standards

repo: ThinkInAIXYZ/deepchat

人気

GitHubのスター
6.4k
ランキング
#14231
ライセンス
Apache-2.0
更新日
2026/11/2

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

0

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

コメント

  • …

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

似ているスキル