Semantic Versioning

aj-geddes/useful-ai-prompts/skills/semantic-versioning

作者 aj-geddes3f5182cfd739无许可证355 个星标收录于 2026年10月8日更新于 2026年10月8日仓库7个月前更新

Implement semantic versioning (SemVer) with automated release management. Use conventional commits, semantic-release, and version bumping strategies.

AI 生成的概览

使用约定式提交和 semantic-release 建立语义化版本与自动化发布管理。

功能
该技能建立语义化版本实践,使 MAJOR.MINOR.PATCH 版本号与发布重要性保持一致。内容涵盖约定式提交格式、semantic-release 配置、版本号递增策略、变更日志生成以及破坏性变更跟踪。技能附带参考指南、一个校验脚本和一个 API 脚手架模板。
适用场景
适用于发布软件包或库、为 API 做版本管理、自动化版本号递增、生成发布说明或变更日志,以及跟踪破坏性变更和依赖关系。
运行要求
需要 Node.js 工具链(如 semantic-release 和 conventional-changelog-cli)以及 git 仓库;技能附带可执行脚本和参考文档。

Semantic Versioning

Table of Contents

Overview

Establish semantic versioning practices to maintain consistent version numbering aligned with release significance, enabling automated version management and release notes generation.

When to Use

  • Package and library releases
  • API versioning
  • Version bumping automation
  • Release note generation
  • Breaking change tracking
  • Dependency management
  • Changelog management

Quick Start

Minimal working example:

yaml
# package.json{  "name": "my-awesome-package",  "version": "1.2.3",  "description": "An awesome package",  "main": "dist/index.js",  "repository": { "type": "git", "url": "https://github.com/org/repo.git" },  "scripts": { "release": "semantic-release" },  "devDependencies":    {      "semantic-release": "^21.0.0",      "@semantic-release/changelog": "^6.0.0",      "@semantic-release/git": "^10.0.0",      "@semantic-release/github": "^9.0.0",      "conventional-changelog-cli": "^3.0.0",    },}

Reference Guides

Detailed implementations in the references/ directory:

GuideContents
Semantic Versioning Configuration [blocked]Semantic Versioning Configuration
Conventional Commits Format [blocked]Conventional Commits Format
Semantic Release Configuration [blocked]Semantic Release Configuration
Version Bumping Script [blocked]Version Bumping Script
Changelog Generation [blocked]Changelog Generation

Best Practices

✅ DO

  • Follow strict MAJOR.MINOR.PATCH format
  • Use conventional commits
  • Automate version bumping
  • Generate changelogs automatically
  • Tag releases in git
  • Document breaking changes
  • Use prerelease versions for testing

❌ DON'T

  • Manually bump versions inconsistently
  • Skip breaking change documentation
  • Use arbitrary version numbering
  • Mix features in patch releases

来源与署名

来源:aj-geddes/useful-ai-prompts位于skills/semantic-versioning提交3f5182c

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架

Semantic Versioning · skills/semantic-versioning 智能体技能 | SourceWeft