semver
How to report versions once they are ordered, and what to do with a string that is not a version or a tie that precedence cannot break.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- semver
- description
- How to report versions once they are ordered, and what to do with a string that is not a version or a tie that precedence cannot break.
03 SKILL.md 正文
Reporting versions
The order order_versions gave, lowest first, one line per version:
<as written> <where it came from, if it came from a file>
Then the ties, then the strings that are not versions.
The rules
Run order_versions on the whole set in one call, including a set of two
that looks obvious. The mistakes it prevents are the ones that look right:
1.9.0 above 1.10.0, 1.0.0 below 1.0.0-rc.1, beta.11 above rc.1.
The highest version is not always the latest release. 2.0.0-rc.1 outranks
1.9.0, so when a pre-release tops the list and the caller asked for the latest
release, name both: the highest version, and the highest with no pre-release
part.
A tie is a result, not a failure. 1.4.0+build.7 and 1.4.0+build.9 have the
same precedence -- SemVer ignores build metadata -- and nothing in the strings
says which is newer. Report them as tied. Do not break the tie by the build
number, by file order, or by date: if the caller needs one, that is their call.
What is not a version stays as written. 1.2, 1.02.0 and release-7 are
not SemVer. List them under not versions and do not pad, trim or reorder them
into something that parses -- a caller cannot tell a version you read from one
you repaired.
Do not edit the file. This procedure reports; whoever asked decides what to change.
04 同仓库更多 Skills
probe-skill
A skill that exists so seeding has a folder to copy.
iso-8601
How to report a date once it has been read, and what to do with one that cannot be read unambiguously.
tabular-qa
Profiling and quality-checking a delimited data file — row and value counts, duplicate and blank detection, outlier rules, and normalising inconsistent categorical values before counting them.
release-notes
Turning a commit range or changelog into release notes written for the people who will read them, grouped by what changed for the user rather than by commit.
timeline
Building the timeline section of an incident writeup from raw log files — every warning and error in time order, repeats collapsed, silences marked — by running the script this skill ships rather than reading the logs by eye.
postmortem
Writing up an incident after it is resolved — assembling the timeline from logs and messages, separating what happened from why, and producing follow-up actions that name an owner and a trigger rather than an intention.