Token导航 LogoToken导航

Agent Skill · 开发

change-pack(更换包)

change-pack 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

change-pack 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 18,732。

总安装 318周安装 13GitHub Stars 公开资料未说明下载 103核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:change-pack(更换包)
来源仓库:https://github.com/quentinhsu/skills
仓库路径:skills/change-pack
安装命令:
npx skills add https://github.com/quentinhsu/skills --skill change-pack
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/quentinhsu/skills --skill change-pack

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

change-pack 从单一 diff 上下文生成 Git 分支名、提交信息与 PR 描述,提升协作效率。避免重复解析 diff,一次读取后复用上下文生成多类输出。输出分为标题与正文两个独立块,适配 GitHub 表单字段要求。依赖 DIFF_CONTEXT 或 RAW_DIFF 环境变量传递变更内容。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/change-pack

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/quentinhsu/skills --skill change-pack;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

change-pack 怎么安装?

在终端执行 npx skills add https://github.com/quentinhsu/skills --skill change-pack。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

change-pack 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

change-pack 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

change-pack 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

change-pack 用的人多吗?

公开数据是累计安装 318 次,近一周安装 13 次,下载 103 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

change-pack 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
change-pack

更换包 · 本页

318—接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Change Pack

Generate a complete Git writing pack (Branch Name + Commit Message + PR Content) from one shared diff context.

Why this skill exists: Reading and analyzing diffs is expensive (tokens + time). This skill reads the diff once, builds a shared context, then generates all three outputs from that same context. Much more efficient than calling three separate skills.

PR Title and PR Description are output as separate copy-ready blocks because GitHub has two different input fields.

Context Reuse (Step 0)

See _shared/context-reuse.md for the context reuse protocol.

If DIFF_CONTEXT or RAW_DIFF is already provided, use it directly to save time and tokens.

Build Shared DIFF_CONTEXT (Step 1)

See _shared/branch-diff-gathering.md for branch diff collection details.

Use branch-level diff as primary source (compare current branch against base branch).

Build one compact DIFF_CONTEXT containing:

  • base_branch and effective diff range (for traceability)
  • change scope (major modules/files)
  • primary intent (feat|fix|refactor|docs|chore|test|perf)
  • key behavior changes (what + why)
  • notable risks/compatibility impact
  • optional issue references if explicitly provided
  • domain keywords (terms) for naming consistency

Why build DIFF_CONTEXT:

  • Single source of truth for all three outputs
  • Avoids re-reading the same diff three times
  • Ensures consistency across branch name, commit, and PR
  • Keeps token usage reasonable (≤ 220 lines recommended)

Fallback behavior:

  • If branch diff is empty, stop and ask user to confirm target base branch
  • If current branch equals base but no upstream tracking, ask for explicit comparison ref
  • If user explicitly asks to include uncommitted work, append working tree deltas and mark source: mixed

Chain Generation from DIFF_CONTEXT (Step 2)

Use the same DIFF_CONTEXT as single source of truth. Do not re-read full diff in downstream steps.

2.1 Branch Name

Generate 3 candidates: one recommended + two alternatives.

Use format <prefix>/<slug> (e.g., feat/user-auth, fix/token-race).

Keep best candidate ≤ 48 chars preferred (hard max 63 due to filesystem limits).

2.2 Commit Message

Generate Conventional Commits output:

  • required Header: type(scope): subject
  • optional Body and Footer

Keep header ≤ 72 chars (Git tools truncate longer headers).

English subject starts with lowercase (Conventional Commits spec requirement).

Chinese subject written in Simplified Chinese (type(scope) remains in English — they are Conventional Commits keywords).

2.3 PR Content

Generate Title + Description in Markdown.

Type-driven sections with fixed headings (see _shared/pr-heading-map.md).

Why fixed headings: Consistent headings help teams quickly scan PRs and automated tools parse descriptions reliably.

Keep claims grounded in DIFF_CONTEXT facts.

Quick reference:

Type: feat

  • 中文: ### 概述 → ### 改动说明 → ### 使用方式
  • English: ### Summary → ### Changes → ### Usage

Type: fix

  • 中文: ### 问题描述 → ### 复现步骤(optional) → ### 修复方式 → ### 测试说明
  • English: ### Problem → ### Steps to Reproduce(optional) → ### Solution → ### Testing

Type: perf|refactor

  • 中文: ### 概述 → ### 改动说明 → ### 效果(optional)
  • English: ### Summary → ### Changes → ### Impact(optional)

Type: docs|chore

  • 中文: ### 概述 → ### 改动说明
  • English: ### Summary → ### Changes

Output Consistency

Branch prefix, commit type, and PR title type should be semantically aligned with intent whenever possible. This creates a coherent story across all three artifacts.

Reuse terms from DIFF_CONTEXT.terms to avoid wording drift between outputs.

Language Behavior (Step 3)

See _shared/bilingual-output.md for bilingual output rules.

Default: Simplified Chinese + English (semantically aligned, not word-for-word translation).

If user requests one language, output only requested language.

When bilingual, Chinese and English must each be wrapped in independent code blocks in every section.

Each language version must be written entirely in its respective language — not one version copied and relabeled.

Token-Efficiency Constraints (Step 4)

  • Prefer git diff --stat + targeted excerpts over massive full-file dumps
  • Summarize raw diff once; downstream sections consume only DIFF_CONTEXT
  • Keep internal DIFF_CONTEXT concise (recommended ≤ 220 lines equivalent text)
  • Avoid duplicate explanations across branch/commit/PR outputs

Final Output Format (Step 5)

Output in order:

  1. Branch Name
  2. Commit Message
  3. PR Title
  4. PR Description

PR Title and PR Description are in two separate code blocks for direct paste into different GitHub input fields.

For each section, provide bilingual or single-language content based on request.

Exception: Branch Name is always English only (no bilingual output needed — branch names are English tokens).

In bilingual mode, each section (except Branch Name) contains exactly two copy-ready code blocks (one for 中文, one for English).

Language label line (中文 / English) appears immediately above its corresponding code block.

Copy-Ready Template

Branch Name

Recommended: <prefix/slug>
Alternatives:
- <prefix/slug-2>
- <prefix/slug-3>

Commit Message

中文

<type(scope): subject>

- <what + why>
- <what + why>

English

<type(scope): subject>

- <what + why>
- <what + why>

PR Title

中文

<type: brief description>

English

<type: brief description>

PR Description

中文

### <fixed-section-heading>
- <fact>

English

### <fixed-section-heading>
- <fact>

Example (End-to-End)

Input (context provided once):

DIFF_CONTEXT
- source: staged
- files: src/auth/token.ts, src/auth/refresh.ts, tests/auth/refresh.test.ts
- intent: fix
- highlights:
  - serialize token refresh requests to prevent concurrent overwrite
  - add retry guard for 401 edge case
  - add regression tests for refresh race
- terms: auth, token, refresh, race

Expected chained output:

Branch Name

中文

Recommended: fix/auth-token-refresh-race
Alternatives:
- fix/auth-refresh-lock
- test/auth-refresh-race-coverage

English

Recommended: fix/auth-token-refresh-race
Alternatives:
- fix/auth-refresh-lock
- test/auth-refresh-race-coverage

Commit Message

中文

fix(auth): 修复 token 刷新竞态

- 串行化 refresh 请求,避免并发覆盖有效 token。
- 为 401 重试边界场景补充回归测试。

English

fix(auth): handle token refresh race

- serialize refresh requests to avoid concurrent token overwrite.
- add regression tests to lock behavior for 401 retry edge cases.

PR Title

中文

fix: 防止认证 token 刷新竞态

English

fix: prevent auth token refresh race

PR Description

中文

### 问题描述
- 并发 refresh 请求可能覆盖有效 token。

### 修复方式
- 串行化 refresh 流程,并为 401 边界场景增加重试保护。

### 测试说明
- 增加 refresh 竞态场景的回归测试。

English

### Problem
- concurrent refresh requests could overwrite valid tokens.

### Solution
- serialize refresh flow and add retry guard for 401 edge cases.

### Testing
- add regression tests for refresh race scenarios.

Before Finalizing (Step 6)

Quick verification:

  • All sections generated from one shared DIFF_CONTEXT (no repeated full-diff reads)
  • Branch prefix, commit type, and PR title type are semantically aligned with intent
  • PR description headings follow the type-specific map (see _shared/pr-heading-map.md)
  • In bilingual mode, each section uses independent code blocks for each language
  • Statements are factual and grounded in DIFF_CONTEXT only

If something doesn't look right, adjust and regenerate only the failing section(s).

Conventions

  • Do not fabricate details outside provided diff context
  • Prefer domain terms from file paths/symbols (maintains consistency with codebase)
  • Optimize for clarity and token efficiency by reusing one shared context

平台分布

Codex

38.28%
按下载量换算39

Claude

29.61%
按下载量换算30

Cursor

18.74%
按下载量换算19

Gemini CLI

8.3%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills