changesets

Changesets 版本与变更日志管理:协助在 JavaScript/TypeScript 单体仓库中使用 Changesets 管理版本和生成变更日志。适用于自动化语义化版本控制、从 PR 生成变更日志、协调多包发布以及发布到 npm 的工作流程。触发词包括 changesets、versioning、changelog、npm publish、monorepo release、semver。

仓库最近推送
GitHub Stars
219
Forks
38
Issues / PRs
1

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "changesets":https://skillpi.com/zh/skills/deepskill-0ef098de65202c7307dcff01629ca5684a11030e4d88ce8ce8ca93c8071362bb。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

Changesets 版本与变更日志管理:协助在 JavaScript/TypeScript 单体仓库中使用 Changesets 管理版本和生成变更日志。适用于自动化语义化版本控制、从 PR 生成变更日志、协调多包发布以及发布到 npm 的工作流程。触发词包括 changesets、versioning、changelog、npm publish、monorepo release、semver。

0 下载

介绍来源: third_party · TerminalSkills · 1.0.0 参考来源

SkillPi 解读

实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: changesets
description: >-
  Assists with managing versioning and changelogs in JavaScript/TypeScript monorepos using
  Changesets. Use when automating semantic versioning, generating changelogs from PRs,
  coordinating multi-package releases, or publishing to npm. Trigger words: changesets,
  versioning, changelog, npm publish, monorepo release, semver.
license: Apache-2.0
compatibility: "Requires Node.js 16+"
metadata:
  author: terminal-skills
  version: "1.0.0"
  category: development
  tags: ["changesets", "versioning", "changelog", "monorepo", "npm"]

Changesets

Overview

Changesets is a versioning and changelog management tool for JavaScript/TypeScript monorepos. Developers add changeset files describing their changes, then CI consumes them to bump package versions, generate changelogs, and publish to npm with coordinated releases across interdependent packages.

Instructions

  • When adding a change, run npx changeset, select affected packages, choose the semver bump type (patch, minor, major), write a user-facing description, and commit the generated .changeset/xxx.md file with the PR.
  • When releasing versions, run npx changeset version to consume pending changesets, bump package.json versions, update CHANGELOG.md per package, and handle dependency bumps automatically.
  • When publishing, run npx changeset publish to publish changed packages to npm, create git tags, and skip unchanged packages.
  • When automating with CI, use changesets/action in GitHub Actions to automatically create a "Version Packages" PR and publish on merge.
  • When coordinating packages, use linked for packages that must share the same version (CLI + SDK) and fixed for monorepo-wide versioning.
  • When testing pre-releases, use snapshot releases (--snapshot preview) for CI testing or pre-release mode (changeset pre enter next) for -next.0 versions.

Examples

Example 1: Set up automated releases for a monorepo

User request: "Configure Changesets for automated versioning and publishing in my Turborepo monorepo"

Actions:

  1. Install @changesets/cli and run npx changeset init to create .changeset/config.json
  2. Configure @changesets/changelog-github for PR links and author attribution
  3. Add changesets/action to GitHub Actions for automatic "Version Packages" PR creation
  4. Set up CI check that requires a changeset file on PRs affecting published packages

Output: A monorepo with automated versioning, changelog generation, and npm publishing triggered by merging the version PR.

Example 2: Coordinate a breaking change across multiple packages

User request: "Release a major version bump for our core package and patch bumps for all dependents"

Actions:

  1. Run npx changeset and select the core package with major bump
  2. Write a description of the breaking change for the changelog
  3. Run npx changeset version which bumps the core package and patches all dependents
  4. Review the generated changelogs and version bumps, then merge

Output: A coordinated release with a major bump on the core package and automatic patch bumps on all dependent packages.

Guidelines

  • Require changesets on every PR that affects published packages and enforce with a CI check.
  • Write changeset descriptions for users, not developers: "Fixed button hover state" not "Refactored CSS modules."
  • Use linked for packages that must stay in sync, such as CLI and SDK pairs.
  • Use snapshot releases for testing PRs since they publish 0.0.0-timestamp versions for CI testing.
  • Use @changesets/changelog-github for open-source projects to include PR links and author attribution.
  • Keep .changeset/config.json in the repo root as project configuration.

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • 针对 JavaScript/TypeScript 单体仓库的 Changesets 管理,具有明确的实用价值
  • 覆盖版本控制、变更日志生成、npm 发布等核心开发场景
触发精准95/100

亮点

  • 触发词完整且精准,覆盖 changesets、versioning、changelog 等关键术语
  • 边界清晰,不易与其他 Skill 重叠
结构规范90/100

亮点

  • 结构清晰,包含 Overview、Instructions、Examples、Guidelines 等完整章节
  • 提供端到端示例,frontmatter 完整规范
执行可靠85/100

亮点

  • 工具来源明确,参数正确,覆盖主要异常场景
  • 提供 review 机制确保不可逆操作的可靠性
证据可验 (前四项均值)89/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。