Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Skills Version Management and Iteration

Skills Version Management and Iteration

Skills evolve as requirements change. Proper version management lets you avoid losing existing work when modifying, and quickly roll back when errors occur.


Version numbering conventions

Skills use Semantic Versioning, in the format MAJOR.MINOR.PATCH.

Version number segment When to increment Example
MAJOR (major version) Incompatible major changes (such as input format changes) 1.0.0 → 2.0.0
MINOR (minor version) New features, but backward compatible 1.0.0 → 1.1.0
PATCH (revision) Bug fixes, no impact on functionality 1.0.0 → 1.0.1

Declaring the version in SKILL.md

Example


name

:

csv-analyzer

version

:

1.2.0

description

:

Analyze CSV files and output a statistical summary.



Using Git to manage Skill versions

Git is the best tool for managing Skill versions; every modification can form a clear history record.

Example

Initialize the Git repository

cd

my-skill

/

git init

git add

.

git commit

-m

"feat: initial version v1.0.0"

Commit a new version after modifying the Skill

git add

SKILL.md

git commit

-m

"fix: fix the space issue in file path handling"

Tag stable versions

git tag

v1.0.1

git tag

v1.1.0

-m

"Add multi-file batch processing feature"

Recommended commit message format

Prefix Meaning Example
feat: New features feat: add Excel output support
fix: Bug fixes fix: fix the crash on empty files
docs: Documentation updates docs: supplement parameter descriptions
refactor: Code refactoring (no functional changes) refactor: extract cleaning logic into a standalone function
perf: Performance optimization perf: 3x speedup in large file processing

Maintaining CHANGELOG in SKILL.md

For Skills that will be used by others, appending a change log at the end of SKILL.md helps users understand the changes in each version.



## Version History



### v1.2.0(2026-05-18)

- 新增:支持 .xlsx 输入格式

- 优化:大文件(>10MB)处理速度提升 40%



### v1.1.0(2026-04-10)

- 新增:--col 参数,支持只分析指定列

- 修复:列名包含空格时的解析错误



### v1.0.0(2026-03-01)

- 初始版本:支持 CSV 文件的基础统计分析


Version migration: how to handle incompatible changes

When a Skill undergoes incompatible changes (such as modifying the input format or removing a feature), clear migration guidance must be given to existing users.



## Migration Guide: Upgrading from v1.x to v2.0



### Major Changes



v2.0 修改了输出文件的命名规则,由原来的 `output.xlsx` 改为带日期的 `output_YYYYMMDD.xlsx`。



### 受影响场景



如果你的工作流依赖固定的输出文件名,需要在使用时重命名文件,或使用 `--output` 参数指定文件名。



### Migration Steps



1. 更新 Skill 到 v2.0

2. 检查是否有依赖固定文件名的脚本或工作流

3. 如有,添加 `--output output.xlsx` 参数保持旧行为

The impact of incompatible changes should be fully assessed before release. If there are many users, consider keeping the old parameters and marking them as "deprecated" to give users transition time, rather than deleting them outright.


Roll back to a historical version

Example

View all historical commits

git log

--oneline

View all version tags

git tag

Roll back to a specified version tag

git checkout

v1.1.0

Or roll back to a specified commit (via commit hash)

git checkout

a3f7b2c

If you need to continue development on the rolled-back version as a new branch

git checkout

-b

hotfix

/

v1.1.1 v1.1.0