commit-message

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Commit Message

提交信息

Generate a high-quality commit message from staged changes.
根据暂存区的变更生成高质量的提交信息。

When to apply

适用场景

  • User asks: "生成 commit 信息", "写 commit message", "根据暂存区生成提交说明"
  • User asks: "generate commit message from staged diff", "write a conventional commit"
  • 用户提问:"生成 commit 信息", "写 commit message", "根据暂存区生成提交说明"
  • 用户提问:"generate commit message from staged diff", "write a conventional commit"

Rule categories

规则分类

RuleTriggerDescription
commit-message
commit 信息 / commit message / staged diffAnalyze
git diff --cached
and produce Conventional Commits output
规则触发词描述
commit-message
commit 信息 / commit message / staged diff分析
git diff --cached
并生成符合Conventional Commits规范的输出

Quick reference

快速参考

  • Rule file: rules/commit-message.md
  • Input source: staged changes (
    git diff --cached
    )
  • Reusable context: prefer upstream
    DIFF_CONTEXT
    /
    RAW_DIFF
    when provided
  • Default output language: Chinese + English
  • Language override: if user explicitly asks for single language, output only that language
  • Bilingual formatting rule: in bilingual mode,
    中文
    and
    English
    outputs must be in independent copy-ready code blocks
  • 规则文件: rules/commit-message.md
  • 输入来源: 暂存区变更 (
    git diff --cached
    )
  • 可复用上下文: 若提供了上游的
    DIFF_CONTEXT
    /
    RAW_DIFF
    则优先使用
  • 默认输出语言: 中英双语
  • 语言覆盖规则: 若用户明确要求使用单一语言,则仅输出该语言内容
  • 双语格式规则: 双语模式下,
    中文
    英文
    输出必须放在独立的可直接复制的代码块中

How to use

使用方法

  • Match request to this skill's trigger.
  • Follow rules/commit-message.md for exact workflow and format constraints.
  • 将用户请求与该技能的触发词匹配
  • 遵循rules/commit-message.md的要求执行具体工作流和遵守格式约束