AgentSkillsCN

committing-changes

按照传统提交规范生成一条 Git 提交记录。当用户要求提交、保存更改,或提及“/commit”时使用此技能。

SKILL.md
--- frontmatter
name: committing-changes
description: Creates ONE git commit following Conventional Commits. Use when user asks to commit, save changes, or mentions /commit.

Commit Changes

Command

bash
git add <files>
git commit -m "type(scope): description"

Commit Format

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

Co-Authored-By: Claude <noreply@anthropic.com>

Types

TypeUsage
featNew feature
fixBug fix
docsDocumentation
refactorCode restructure
testAdd/fix tests
choreMaintenance

Scopes

battle, creatures, moves, ui, world, player, events, store, config, tests, assets

Rules

  • Lowercase description, no period
  • Body explains "why" if needed
  • Breaking changes: add ! after type

Example

Input: "Commit les changements" Output:

bash
git add src/data/species.ts
git commit -m "feat(creatures): add Rocklet rock-type creature

Co-Authored-By: Claude <noreply@anthropic.com>"