AgentSkillsCN

code-commit

遵循 Conventional Commits 规范,以结构化的提交信息提交代码变更。适用于在完成实现或修复缺陷后准备提交时使用。

SKILL.md
--- frontmatter
name: code-commit
description: Commit code changes with well-structured messages following Conventional Commits. Use when ready to commit after implementation or bug fix.

Code Commit

Create well-structured git commits with meaningful messages.

Format

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

<body>

<footer>

Types

TypeUse For
featNew feature
fixBug fix
docsDocumentation
refactorCode restructuring
testAdding tests
choreMaintenance

Examples

bash
feat(auth): add user login functionality

Implement JWT-based authentication with:
- Login endpoint
- Token validation

Closes #123
bash
fix(api): handle null response in user query

Rules

  1. Atomic - One logical change per commit
  2. Present tense - "add" not "added"
  3. 50/72 - Subject ≤50, body wrapped at 72
  4. Reference issues - Closes #123 or Fixes #456