AgentSkillsCN

skill-commit-message

根据 conventionalcommits.org 规范,分析仓库的变更历史,自动生成符合规范的常规提交信息。

SKILL.md
--- frontmatter
name: skill-commit-message
description: Generate conventional commit messages by analyzing repository changes following conventionalcommits.org specification

skill-commit-message

Commit Message Generator Skill

Generate conventional commit messages by analyzing repository changes.

Usage

Ask Copilot to:

  • "Generate a commit message"
  • "Create a commit for my changes"
  • "What should my commit message be?"
  • "Commit"

Features

  • Analyzes staged and unstaged changes
  • Follows Conventional Commits specification
  • Suggests appropriate type (feat, fix, docs, etc.)
  • Identifies scope from affected files
  • Provides ready-to-use git commands

Commit Types

TypeDescription
featNew feature
fixBug fix
docsDocumentation changes
styleFormatting, whitespace
refactorCode restructuring
perfPerformance improvement
testAdding/fixing tests
buildBuild system/dependencies
ciCI configuration
choreMaintenance tasks
revertRevert previous commit

Format

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

<optional body>

<optional footer>