Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计提醒

semantic-version-advisor语义版本顾问

Agent Skill

semantic-version-advisor 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,523

周安装

110

GitHub Stars

公开资料未说明

下载量

903
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:semantic-version-advisor(语义版本顾问)
来源仓库:https://github.com/alienfast/claude
仓库路径:skills/semantic-version-advisor
安装命令:
npx skills add https://github.com/alienfast/claude --skill 'Semantic Version Advisor'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/alienfast/claude --skill 'Semantic Version Advisor'

简介

用于查找、检索和筛选相关信息,支持根据关键词快速定位候选结果。

  • 适合在需要任务场景或来源线索进行信息筛选时使用。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装方式:通过 npx skills add 命令从指定 GitHub 仓库添加。
  • 注意权限范围和维护状态,确认是否会触发联网、命令执行或文件读写。

SKILL.md

Semantic Version Advisor

This skill helps classify version changes, determine appropriate version bumps, and validate semantic versioning decisions.

Quick Reference

Version Format: MAJOR.MINOR.PATCH

  • MAJOR: Breaking changes, incompatible API changes
  • MINOR: New features, backward-compatible additions
  • PATCH: Bug fixes, backward-compatible fixes

Core Workflows

Workflow 1: Classify Version Change

Input: Old version and new version Output: Classification (MAJOR/MINOR/PATCH) with explanation

Decision Tree

┌─────────────────────────────────┐
│  Compare versions X.Y.Z         │
└────────────┬────────────────────┘
             │
             v
    ┌────────────────┐
    │ X changed?     │─ YES ──> MAJOR (breaking changes)
    └────┬───────────┘
         │ NO
         v
    ┌────────────────┐
    │ Y changed?     │─ YES ──> MINOR (new features)
    └────┬───────────┘
         │ NO
         v
    ┌────────────────┐
    │ Z changed?     │─ YES ──> PATCH (bug fixes)
    └────┬───────────┘
         │ NO
         v
    Same version

Classification Steps

  1. Parse versions: Extract MAJOR.MINOR.PATCH from both versions
  2. Strip notation: Remove ^, ~, >= prefixes if present
  3. Compare MAJOR: If different → MAJOR change
  4. Compare MINOR: If different → MINOR change
  5. Compare PATCH: If different → PATCH change
  6. Verify: Confirm classification matches change type

Examples

^4.0.0 → ^5.0.0     = MAJOR (4 → 5, breaking changes)
^13.1.5 → ^13.2.0   = MINOR (1 → 2, new features)
^7.1.5 → ^7.1.6     = PATCH (5 → 6, bug fixes)
9.35.0 → 9.36.0     = MINOR (35 → 36, new features)
1.0.0 → 1.0.1       = PATCH (0 → 1, bug fixes)

Workflow 2: Determine Version Bump

Input: List of changes to be included in release Output: Recommended version bump (MAJOR/MINOR/PATCH)

Change Classification

MAJOR bump required if ANY of:

  • Breaking API changes (removed methods, changed signatures)
  • Incompatible behavior changes
  • Removed public APIs or interfaces
  • Changed default behaviors that break existing code
  • Renamed public modules or packages
  • Dropped support for language/runtime versions

MINOR bump required if ANY of:

  • New features or capabilities added
  • New APIs or methods added
  • New optional parameters added
  • Deprecated APIs (but still functional)
  • Performance improvements (non-breaking)
  • New dependencies added

PATCH bump if ALL of:

  • Bug fixes only
  • Documentation updates
  • Internal refactoring (no API changes)
  • Security patches (backward-compatible)
  • Test improvements
  • Build process changes

Decision Process

Start with PATCH (default)
  ↓
For each change:
  - Breaking change? → Upgrade to MAJOR, stop
  - New feature? → Upgrade to MINOR, continue
  - Bug fix? → Keep current level, continue
  ↓
Return highest level encountered

Example Analysis

Changes:

  • Fixed null pointer exception in getData()
  • Added new fetchAsync() method
  • Updated documentation

Analysis:

  1. Null pointer fix → PATCH candidate
  2. New method → MINOR upgrade (overrides PATCH)
  3. Documentation → No impact

Result: MINOR bump (new functionality added)

Workflow 3: Validate Version Proposal

Input: Current version, proposed version, change list Output: Validation result (valid/invalid) with reasoning

Validation Rules

  1. Version must increase: New version > current version
  2. Only one segment increases: Increment MAJOR OR MINOR OR PATCH
  3. Reset lower segments: When incrementing, reset lower segments to 0

- MAJOR bump: 1.5.3 → 2.0.0 ✅ (MINOR and PATCH reset) - MINOR bump: 1.5.3 → 1.6.0 ✅ (PATCH reset) - PATCH bump: 1.5.3 → 1.5.4 ✅ (no reset needed)

  1. Match change severity: Version bump matches most severe change

- Breaking change → MAJOR required - New feature → MINOR minimum - Bug fix only → PATCH appropriate

Validation Examples

Valid:

  • 1.2.3 → 2.0.0 with breaking changes ✅
  • 1.2.3 → 1.3.0 with new features ✅
  • 1.2.3 → 1.2.4 with bug fixes ✅

Invalid:

  • 1.2.3 → 1.4.0 (skipped MINOR version) ❌
  • 1.2.3 → 2.1.0 (MINOR not reset to 0) ❌
  • 1.2.3 → 1.2.3 (no change) ❌
  • 1.2.3 → 1.3.0 with breaking changes (under-versioned) ❌
  • 1.2.3 → 2.0.0 with only bug fixes (over-versioned) ❌

Common Pitfalls

❌ Misclassifying Range Notation

Wrong: ^7.1.5 → ^7.1.6 = "Major" because of the caret Right: ^7.1.5 → ^7.1.6 = PATCH (ignore the ^, compare numbers)

❌ Assuming Package Importance

Wrong: Core package changed → must be MAJOR Right: Classify by version numbers, not package importance

❌ Ignoring Reset Rules

Wrong: 1.5.3 → 2.1.0 for MAJOR bump Right: 1.5.3 → 2.0.0 for MAJOR bump (reset MINOR and PATCH)

❌ Security Assumptions

Wrong: Security fix → must be PATCH Right: Security fixes can be any level (breaking fix = MAJOR)

Pre-release Versions

Format

  • 1.0.0-alpha.1 - Alpha pre-release
  • 1.0.0-beta.2 - Beta pre-release
  • 1.0.0-rc.1 - Release candidate

Precedence

1.0.0-alpha.1
  < 1.0.0-alpha.beta
  < 1.0.0-beta
  < 1.0.0-beta.2
  < 1.0.0-rc.1
  < 1.0.0

Pre-release Classification

  • 1.0.0 → 1.0.0-alpha.1 = Pre-release (no semver bump)
  • 1.0.0-beta.1 → 1.0.0 = Release (no semver change)
  • 1.0.0-rc.1 → 1.1.0 = MINOR release from RC

Research Depth by Type

MAJOR Version Changes

Required Research:

  • Full changelog review
  • Breaking change analysis
  • Migration guide review
  • API compatibility check
  • Test coverage verification

Time Investment: High (30-60 minutes)

MINOR Version Changes

Required Research:

  • Feature overview
  • Deprecated API checks
  • New dependency review
  • High-level compatibility check

Time Investment: Medium (10-20 minutes)

PATCH Version Changes

Required Research:

  • Security advisory check only
  • Skip detailed changelog review

Time Investment: Low (2-5 minutes)

Integration with Other Tools

NPM/pnpm Commands

# View outdated packages with version info
npm outdated

# Machine-readable upgrade information
npx ncu --jsonUpgraded

# pnpm version check
pnpm outdated

Semver Utility Commands

# Classify version difference
semver diff 1.2.3 1.3.0  # Output: "minor"

# Compare versions
semver gt 1.3.0 1.2.3    # Output: true

# Check range satisfaction
semver satisfies 1.2.4 "^1.2.3"  # Output: true

Advisory Templates

Template: Version Bump Recommendation

**Recommended Version Bump**: [MAJOR/MINOR/PATCH]

**Current Version**: X.Y.Z
**Proposed Version**: A.B.C

**Change Summary**:

- [Breaking/Feature/Fix]: Description

**Reasoning**:
[Explain why this classification based on change types]

**Migration Notes** (if MAJOR):
[Required steps for consumers]

Template: Dependency Update Classification

**Package**: package-name
**Version Change**: X.Y.Z → A.B.C
**Classification**: [MAJOR/MINOR/PATCH]

**Impact Assessment**:

- Breaking Changes: [Yes/No]
- New Features: [Yes/No]
- Security Fixes: [Yes/No]

**Recommended Action**: [Update now/Test first/Review carefully]

Quick Classification Chart

Old VersionNew VersionChange TypeClassification
1.2.32.0.0X changedMAJOR
1.2.31.3.0Y changedMINOR
1.2.31.2.4Z changedPATCH
^4.0.0^5.0.0X changedMAJOR
~1.2.3~1.3.0Y changedMINOR
9.35.09.36.0Y changedMINOR
0.2.30.3.0Y changedMINOR (0.x)

Resources

Full Specification

For complete semver rules and standards, see: ~/.claude/standards/semver.md

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Cursor

39.03%
按下载量换算352

Claude Code

29.25%
按下载量换算264

Antigravity

18.2%
按下载量换算164

Gemini CLI

8.52%
按下载量换算77

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。来源字段存在多来源差异,先按来源优先级自动处理,无法消解时进入异常复核队列。

来源信息

继续浏览同类 Skills