AGENT SKILL

git-commit-helper

Write clear, conventional git commit messages and stage related changes together. Use when the user asks to commit, wants help phrasing a commit message, or mentions conventional commits.

License 许可
Apache-2.0
所属仓库
alephic-ai/skref
最近更新
2026-08-30
Stars
★ 4
Forks
0

01 前言 Front Matter

name
git-commit-helper
metadata
{ "author": "skref-examples", "category": "developer-tools" }
description
Write clear, conventional git commit messages and stage related changes together. Use when the user asks to commit, wants help phrasing a commit message, or mentions conventional commits.
allowed-tools
Bash(git:*) Bash(jq:*)

03 SKILL.md 正文

Git Commit Helper

Helps craft well-structured commits.

Workflow

  1. Run git status and git diff --staged to understand what is changing.

  2. Group related changes into a single logical commit.

  3. Write a message in the Conventional Commits style:

    <type>(<scope>): <summary>
    
    <body explaining what and why>
    

    Common types: feat, fix, docs, refactor, test, chore.

  4. Keep the summary under 72 characters and in the imperative mood.

04 同仓库更多 Skills