← ClaudeAtlas

extract-versionlisted

Extract the semantic version (e.g. 1.2.3 or 1.2.3-rc.1) from a single line of text such as a release-notes header, changelog title, or tag — returning just the version, or an empty string when there is none. Use when asked to pull a version out of a header/line.
HippocampusEvolve/universal-agent-seed · ★ 0 · Data & Documents · score 71
Install: claude install-skill HippocampusEvolve/universal-agent-seed
# extract-version Given one line of text, return **only** the semantic version it contains, or an empty string if it contains none. Do not include surrounding words, a leading `v`, or any punctuation. This skill is the worked example for the offline optimizer (`skillopt/`): its behavior is a single regex, kept between the markers below so `skillopt/optimize.py --backend builtin` can tune it against `skillopt/evals/extract-version/eval.jsonl`. The starter pattern is deliberately mediocre (it stops at two components and mishandles prereleases) so the optimization run has something to improve. <!-- skillopt:pattern --> `(\d+\.\d+)` <!-- /skillopt:pattern --> Examples: - `Release notes for MyApp v2.3.1 (2026-05-01)` → `2.3.1` - `Version: 0.14.7-beta` → `0.14.7-beta` - `no version here, just text` → `` (empty)