跳到正文
TakoAPI
返回技能列表

semver-helper

由 avegancafe 提供

Coding Agents & IDEs
372下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Semantic Versioning 2.0.0 reference guide.

描述

该技能的功能

Reference guide for Semantic Versioning 2.0.0 decisions. Covers when to increment MAJOR, MINOR, or PATCH, with a decision tree, real examples, pre-release naming, and common edge cases.

Cuts through the full semver spec with a decision tree and concrete examples, so you get an answer in seconds instead of reading documentation.

何时使用

  • Deciding whether removing a deprecated API endpoint requires a MAJOR bump
  • Checking which number to increment before publishing an npm package
  • Resolving the correct bump when a PR contains both a bug fix and a new feature
  • Picking the right pre-release label (alpha, beta, rc) before a stable release
  • Confirming whether an internal refactor that preserves behavior needs a version change

示例工作流

输入

User asks: I renamed a public function from removeUser() to deleteUser() — what version should I bump to?

智能体
  1. 1

    Check whether the change affects something users depend on

  2. 2

    Identify the rename as a breaking change, since users must update all call sites

  3. 3

    Apply the MAJOR bump rule: breaking changes increment the first number

  4. 4

    Note that MINOR and PATCH reset to 0 after a MAJOR bump

输出

Bump to the next MAJOR version (e.g. 1.2.3 → 2.0.0), since renaming a public function is a breaking API change.

安装

clawhub install avegancafe/semver-helper

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接