change-pack

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Change Pack

Change Pack

Generate a complete Git writing pack (Branch Name + Commit Message + PR Content) from one shared diff context.
PR Title and PR Description should be output as separate copy-ready blocks for two different input fields.
基于同一共享diff上下文生成完整的Git文案包(分支名 + Commit 信息 + PR 内容)。
PR 标题和 PR 描述需要分别输出为可直接复制的独立内容块,适配两个不同的输入字段。

When to apply

适用场景

  • User asks: "一口气生成分支名、commit、PR 内容"
  • User asks: "链式生成 git 文案", "一次分析改动生成全部"
  • User asks: "generate branch + commit + PR from same diff"
  • 用户提问:"一口气生成分支名、commit、PR 内容"
  • 用户提问:"链式生成 git 文案", "一次分析改动生成全部"
  • 用户提问:"generate branch + commit + PR from same diff"

Rule categories

规则分类

RuleTriggerDescription
change-pack
chain / pack / one-shot git writingBuild one
DIFF_CONTEXT
and generate all three outputs without repeated full-diff reads
规则触发条件描述
change-pack
链式/批量/一站式Git文案生成构建唯一的
DIFF_CONTEXT
,无需重复读取完整diff即可生成全部三类输出

Quick reference

快速参考

  • Rule file: rules/change-pack.md
  • Input sources:
    git status
    ,
    git diff --stat
    ,
    git diff --cached
    (prefer staged), fallback
    git diff
  • Shared context:
    DIFF_CONTEXT
    (single source of truth)
  • Reusable input: normalize
    RAW_DIFF
    to
    DIFF_CONTEXT
    once, then reuse
  • Default output language: Chinese + English
  • Language override: if user explicitly asks for single language, output only that language
  • Bilingual formatting rule: in bilingual mode, each section must use two independent copy-ready code blocks (
    中文
    and
    English
    )
  • PR heading rule: PR Description headings are fixed by PR type; do not use dynamic or synonym headings
  • Output checklist rule: must run compliance checklist before final output and regenerate failing sections
  • 规则文件: rules/change-pack.md
  • 输入源:
    git status
    ,
    git diff --stat
    ,
    git diff --cached
    (优先暂存区内容),降级备选为
    git diff
  • 共享上下文:
    DIFF_CONTEXT
    (唯一可信数据源)
  • 可复用输入: 一次性将
    RAW_DIFF
    标准化为
    DIFF_CONTEXT
    后重复使用
  • 默认输出语言: 中英双语
  • 语言覆写规则: 如果用户明确要求单语言输出,则仅输出对应语言
  • 双语格式规则: 双语模式下,每个模块必须使用两个独立的可直接复制的代码块(
    中文
    English
  • PR标题规则: PR描述的标题由PR类型固定,不得使用动态标题或同义替换标题
  • 输出检查规则: 最终输出前必须执行合规检查,重新生成未通过检查的模块

How to use

使用方法

  • Match request to this skill's trigger.
  • Follow rules/change-pack.md for chain workflow and output constraints.
undefined
  • 将用户请求与本技能的触发条件匹配。
  • 遵循rules/change-pack.md中的链式工作流和输出约束要求。
undefined