Token导航 LogoToken导航TokenDH.com
运维和基础设施需要联网github未标认证来源可访问clear审计通过

create-changeset创建变更集

Agent Skill

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

总安装

1,248

周安装

51

GitHub Stars

189

下载量

336
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/openameba/spindle --skill create-changeset

简介

用于在 monorepo 中自动分析分支变更并生成发布变更集。

  • 依据 Conventional Commits 判断版本 bump 类型, 输出标准 changeset 文件。
  • 应在准备 Pull Request 时触发, 避免直接推送未版本化的更改。create-changeset 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Create Changeset Skill

Purpose

This skill automatically analyzes branch changes and creates appropriate changesets for package releases in this monorepo. It examines git history, determines version bump types based on Conventional Commits, and generates properly formatted changeset files.

When to Invoke

Automatically invoke this skill when:

  • User is preparing to create a pull request
  • User mentions "PR", "pull request", or "ready for review"
  • Branch has commits ready for review
  • User explicitly mentions "changeset" or "version bump"

Do NOT invoke when:

  • User is only pushing changes without creating a PR
  • Only documentation files have changed (README,.md files)
  • Only CI/CD configuration has changed (.github/workflows/)
  • Only development tool configuration has changed (eslint, prettier, etc.)
  • Commits are only docs:, chore:, ci:, or test: types that don't affect packages

Pre-execution Validation

Before creating a changeset, check if a changeset file already exists for the current changes:

  • Look for .changeset/*.md files (excluding README.md)
  • If exists, ask user: "A changeset already exists. Create another one?"

Implementation Steps

1. Check Current State

Execute git log main..HEAD (or origin/main..HEAD) to check for committed changes on the branch. If no commits exist, exit early without creating a changeset.

2. Analyze Changes

Use git diff main...HEAD (or origin/main...HEAD) to analyze committed changes only.

Identify which packages are affected by checking files under packages/*/. Review commit messages using git log main..HEAD --oneline (or origin/main..HEAD).

3. Determine Version Bump Type

Analyze commit messages following Conventional Commits 1.0.0 format:

  • major: Contains BREAKING CHANGE in commit body, or breaking changes detected in code

- API signature changes - Removed exports or features - Incompatible behavior changes

  • minor: Starts with feat: or feat(scope): - new features (backward compatible)

- New components or functionality - New props or options (with defaults) - New exports

  • patch: Starts with fix: or fix(scope): - bug fixes and minor improvements

- Bug fixes - Performance improvements - Minor style updates

  • skip: Other types (chore:, docs:, ci:, test:) typically don't require changesets unless they affect package functionality

Review actual code changes to confirm the appropriate version bump. When in doubt between minor and patch, prefer patch for safety.

If the version bump is ambiguous or unclear:

  • Ask user for clarification
  • Explain the reasoning behind the suggested bump type
  • Allow user to override the suggestion

If all commits are types that don't require changesets (docs:, chore:, ci:, test:), exit early without creating a changeset.

4. Generate Changeset

Create a changeset file with a descriptive filename in .changeset/ directory.

Filename format:

  • Use kebab-case with .md extension
  • Examples: .changeset/add-new-button.md, .changeset/fix-layout-bug.md, .changeset/update-icon-props.md

File content format:

---
"@openameba/package-name": major|minor|patch
---

Clear description of the change

Example for single package:

---
"@openameba/spindle-ui": minor
---

Add new Button variant for secondary actions

Example for multiple packages:

---
"@openameba/spindle-ui": minor
"@openameba/spindle-tokens": patch
---

- spindle-ui: Add new Button variant for secondary actions
- spindle-tokens: Fix color token contrast ratio

Important guidelines:

  • The description should be user-friendly as it will appear in CHANGELOG
  • Use the same language as the commit messages (Japanese or English). If commit messages are mixed, prefer Japanese.
  • Split changesets into separate files when the same package has changes with different purposes (e.g., new feature + bug fix, breaking change + internal refactoring)
  • This creates individual top-level items in release notes, making it easier for readers to understand the intent of each change
  • Example: Create .changeset/add-secondary-button.md for a new feature and .changeset/fix-button-layout.md for a bug fix, even if both target the same package

5. Lint Changeset

Execute pnpm textlint.changeset/<filename>.md to validate the changeset file.

Error handling:

  • If linting errors occur, attempt to auto-fix common issues:

- Spacing and punctuation - Common grammar mistakes

  • Re-run textlint after auto-fix
  • If errors persist:

- Display error details to user - Ask user for guidance on how to fix - Do NOT proceed to commit until lint passes

6. Verify and Commit

Display the generated changeset for review:

  • Show the file path
  • Show the file content
  • Confirm it accurately reflects the changes

Once verified, commit the changeset file:

git add .changeset/<filename>.md
git commit -m "chore: add changeset"

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

28.28%
按下载量换算95

Claude Code

21.08%
按下载量换算71

Gemini CLI

19.08%
按下载量换算64

Antigravity

11.25%
按下载量换算38

Codex

7.54%
按下载量换算25

windsurf

3.24%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills