AgentSkillsCN

commit

按照常规提交规范,创建格式规范的 Git 提交。

SKILL.md
--- frontmatter
name: commit
description: Create well-formatted git commits following conventional commit standards
metadata:
  style: Precise
  audience: engineering + testing

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
  4. Don't commit anything in .gitignore

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