AgentSkillsCN

Commit

按照StyleList94的提交规范,自动生成智能提交信息

SKILL.md
--- frontmatter
description: Generate intelligent commit messages following StyleList94's commit convention

Analyze staged changes and generate a commit message following the project's commit convention.

Commit Format

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

<body>

Types (빈도순)

TypeUsageDescription
feat32%New feature or update
chore30%Dependencies, releases, config
refactor12%Code reorganization
ci8%CI/CD workflow changes
fix5%Bug fixes
docs5%Documentation updates
style1%Code formatting (rare)
perfrarePerformance improvements
testrareAdding or fixing tests

Style Rules

  1. Language: English only
  2. Case: All lowercase (type, scope, subject)
  3. Emoji: Do not use
  4. Length: Keep subject under 50 characters
  5. Mood: Imperative ("add" not "added")
  6. Punctuation: No period at end

Scope Usage (40% of commits)

Use scope selectively:

  • (deps): Dependency updates → chore(deps): bump next.js
  • (release): Version releases → chore(release): v1.2.3
  • (security): Security patches → fix(security): patch vulnerability
  • Most commits: Skip scope → feat: add button component

Body Format (for complex changes)

Use bullet points with type prefixes:

code
feat: migrate to vanilla-extract

* feat: add vanilla-extract/css
* refactor: migrate layout components
* refactor: migrate button component
* chore: update vite plugin

Process

  1. Run git diff --staged to analyze changes
  2. Determine the primary change type
  3. Decide if scope is needed (deps/release/security)
  4. Write concise lowercase subject
  5. Add bullet-point body for multiple changes
  6. Present ready-to-execute commit command

Examples

Simple feature:

code
feat: add loading state to button

Dependency update:

code
chore(deps): bump react to 19.0.0

Complex change with body:

code
feat: implement dark mode

* feat: add theme context provider
* refactor: update color tokens
* docs: update readme

Release:

code
chore(release): v2.1.0