AGENT SKILL

commit-message-writer

Generates conventional commit messages from staged git diffs. Activates when the user requests a commit message and produces type(scope) subject format.

适用职业开发工程师
License 许可
MIT
最近更新
2026-11-12
Stars
★ 3
Forks
0

01 前言 Front Matter

name
commit-message-writer
tags
[ "git", "developer-tools" ]
model
sonnet
author
Jeremy Longshore <jeremy@jeremylongshore.com>
license
MIT
version
1.0.0
description
Generates conventional commit messages from staged git diffs. Activates when the user requests a commit message and produces type(scope) subject format.
allowed-tools
Bash(git:diff --staged)
compatibility
Designed for Claude Code 2.x

02 资源文件 3

03 SKILL.md 正文

Commit Message Writer

Generate a commit message for the currently staged changes.

Instructions

  1. Read the staged diff using git diff --staged
  2. Analyze the changes to determine:
    • The type (feat, fix, docs, refactor, test, chore, ci, style)
    • The scope (affected module or component)
    • A concise subject line (under 72 characters)
  3. Output the commit message in conventional commit format

Format

type(scope): subject line

Optional body explaining the motivation for the change.

Examples

Input: A diff showing a new function added to auth.ts Output: feat(auth): add token refresh endpoint

Input: A diff fixing a typo in README.md Output: docs(readme): fix installation instructions typo

04 同仓库更多 Skills