piv-commit

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Commit: Create a New Commit

提交:创建新提交

Create a new commit for all of our uncommitted changes.
为所有未提交的更改创建一个新提交。

Process

流程

  1. Read this project's conventions. If
    .claude/references/conventions.md
    exists, read its
    ## commit
    section and follow it — those rules win over the defaults below. That file is where a project's specifics live; this skill stays general.
  2. Run
    git status && git diff HEAD && git status --porcelain
    to see what files are uncommitted.
  3. Add the untracked and changed files.
  4. Write an atomic commit message with an appropriate, descriptive summary.
  5. Add a tag such as
    feat
    ,
    fix
    ,
    docs
    ,
    refactor
    ,
    test
    ,
    chore
    , etc. that reflects our work.
  1. 阅读本项目的约定规范。如果存在
    .claude/references/conventions.md
    文件,请阅读其中的
    ## commit
    章节并遵循其规则——这些规则优先于下方的默认规则。该文件用于存储项目的特定规范;本技能保持通用性。
  2. 运行
    git status && git diff HEAD && git status --porcelain
    命令查看哪些文件未提交。
  3. 添加未跟踪和已修改的文件。
  4. 撰写一条原子化的提交信息,包含恰当且具有描述性的摘要。
  5. 添加一个能反映工作内容的标签,例如
    feat
    fix
    docs
    refactor
    test
    chore
    等。

Output

输出结果

A single commit containing all uncommitted changes, with a conventional-commit-style message (
<tag>: <atomic description>
) that accurately reflects the work done.
After the commit succeeds, print two clearly labelled summaries:
一个包含所有未提交更改的提交,附带一条符合约定式提交风格的信息(
<tag>: <atomic description>
),准确反映已完成的工作。
提交成功后,打印两个标注清晰的摘要:

What Changed

更改内容

One short paragraph (3–6 sentences) describing the feature/fix/refactor that was committed — what problem it solves and what files were the key touch points. Write for a developer skimming the git log.
一段简短的文字(3-6句话)描述已提交的功能/修复/重构内容——解决了什么问题,以及哪些文件是关键修改点。撰写时需面向快速浏览git日志的开发者。

AI Layer Changes

AI层更改

Only include this section if any files under
.claude/
were modified or added (CLAUDE.md,
.claude/references/
,
.claude/skills/
,
.claude/agents/
, etc.).
List each changed AI-layer file with a one-line note on what evolved and why. If nothing in
.claude/
changed, omit this section entirely.
仅当
.claude/
目录下的文件(如CLAUDE.md、
.claude/references/
.claude/skills/
.claude/agents/
等)被修改或添加时,才包含此部分。
列出每个被修改的AI层文件,并附上一行说明,阐述更改内容及原因。如果
.claude/
目录下无任何更改,则完全省略此部分。