金色时刻 · 15:48
让好资源,触手可及
AGENT SKILL

git-commit

git-commit 是面向测试与安全、效率工具、开发运维的 Agent Skill,来自 fredrikaverpil/dotfiles。查看技能说明、操作步骤与使用约定,并通过原项目了解详细用法。

Use this skill BEFORE running any git commit command. Triggers when about to run `git commit`. Ensures commit messages follow Conventional Commits specification.

SKILL.md

下载 MD ↓
namegit-commit
descriptionUse this skill BEFORE running any git commit command. Triggers when about to run `git commit`. Ensures commit messages follow Conventional Commits specification.

Git Commit Messages

Write commit messages following the Conventional Commits specification.

Format

<type>(<scope>): <description>

[optional body]

[optional footer(s)]

Types

Type Purpose
feat New feature
fix Bug fix
docs Documentation only
style Code style (formatting, no logic change)
refactor Code change that neither fixes a bug nor adds a feature
perf Performance improvement
test Adding or correcting tests
build Build system or external dependencies
ci CI configuration
chore Maintenance tasks
revert Reverts a previous commit

Rules

  1. Use imperative mood in description ("add feature" not "added feature")
  2. Do not end description with a period
  3. Keep description under 72 characters
  4. Separate subject from body with a blank line
  5. Use body to explain what and why, not how

Breaking Changes

Add ! after type/scope or include BREAKING CHANGE: in footer:

feat(api)!: remove deprecated endpoints

BREAKING CHANGE: The /v1/users endpoint has been removed.

Scope

Optional. Use to specify area of change (e.g., api, ui, auth, db).

Attribution

Do NOT include any AI attribution, co-author tags, or generated-by footers in commit messages.

来源:fredrikaverpil/dotfiles · MIT 许可 · 许可原文 · MD 为来源页保存的历史版本