semantic-version-validator
FreeNo executable scriptsNot checkedValidate semantic versioning (SemVer) strings and recommend the correct version bump (MAJOR/MINOR/PATCH) based on change type.适用于版本校驗、changelog 分級與發布前檢查。
by trend0522346 installs in other catalogsAbout this skill
Semantic Version Validator
驗證版本字串是否符合 SemVer 2.0.0,並根據變更類型推薦正確的版本 bump。
規則
1. 格式驗證
MAJOR.MINOR.PATCH[-PRERELEASE][+BUILD]
- MAJOR:0-99999999 的數字,不可為負
- MINOR:0-99999999 的數字,不可為負
- PATCH:0-99999999 的數字,不可為負
- PRERELEASE:可選,由
.分隔的識別字串(例如alpha.1、beta.2、rc.1) - BUILD:可選,由
.分隔的識別字串
2. Bump 規則
| 變更類型 | Bump | 範例 |
|---|---|---|
| 破壞性 API 變更 | MAJOR | 1.0.0 → 2.0.0 |
| 新功能(向後相容) | MINOR | 1.0.0 → 1.1.0 |
| Bug 修復 | PATCH | 1.0.0 → 1.0.1 |
| 預覽版本 | 附加 prerelease | 1.0.0 → 1.0.1-alpha.1 |
3. 預覽版本規則
預覽版本識別字必須只包含 ASCII 字母數字和連字號 [0-9A-Za-z-]。
預覽版本比較:數字識別字 < 字母識別字,數字識別字之間做數值比較。
4. 約束
- 0.y.z 表示初始開發階段,任何版本都可能變更
- 1.0.0 定義公開 API
- 版本號遞增時,MAJOR/MINOR/PATCH 各自歸零
Install semantic-version-validator in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the semantic-version-validator skill do?
Validate semantic versioning (SemVer) strings and recommend the correct version bump (MAJOR/MINOR/PATCH) based on change type.适用于版本校驗、changelog 分級與發布前檢查。
How do I install the semantic-version-validator skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the semantic-version-validator skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
by Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
by Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
by Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
by Anthropic