extract-versionlisted
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)