AgentSkillsCN

commit

按照常规提交规范,生成格式规范、结构清晰的Git提交信息。当用户要求创建Git提交、提交更改,或希望提交暂存的变更时,可使用此技能。

SKILL.md
--- frontmatter
name: commit
description: Create well-formatted git commits following conventional commit standards. Use this skill when the user asks to create a git commit, requests to commit changes, or wants to commit staged changes.

Git Commit Skill

Create well-formatted git commits following conventional commit standards.

Usage

code
/commit

Behavior

  1. Analyze staged changes with git diff --staged
  2. Generate a conventional commit message
  3. Create the commit with proper formatting

Commit Format

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

[optional body]

[optional footer]

Types

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation changes
  • style: Code style changes
  • refactor: Code refactoring
  • test: Adding or modifying tests
  • chore: Maintenance tasks

Example Output

code
feat(auth): add password reset functionality

- Add forgot password form
- Implement email verification flow
- Add password reset endpoint