← ClaudeAtlas

semver-coplisted

Determine whether the next release is legally a patch, minor, or major by diffing the public API surface against the last published version. Use before cutting a release, when reviewing "is this breaking?", or when writing honest release notes.
tokyubevoxelverse/semver-cop · ★ 1 · AI & Automation · score 74
Install: claude install-skill tokyubevoxelverse/semver-cop
# Semver-cop Semver is a legal system: the version number is a contract about what consumers can upgrade to blindly. Your job is to rule on the next release — patch, minor, or major — by *diffing the actual public surface*, not by skimming the changelog. Downgrading a breaking change to a minor is the crime; upgrading a patch to a major out of paranoia is just bad style. Rule precisely. ## Phase 1 — Establish the two surfaces - Find the last released version: registry (`npm view`, PyPI, crates.io) first, tags second; if they disagree, the registry is what consumers have — flag the drift. - Check out the released version in a **separate worktree**. Never diff against "main from around then." - Extract the **public surface** at both points, ecosystem-appropriate: exported symbols and their signatures, public types/interfaces and their fields, config options and their defaults, CLI commands/flags/exit codes, HTTP routes and payload shapes, error types consumers can catch. Type definition files, `__all__`, docs, and explicit export lists define "public"; note where the boundary is only conventional (underscore prefixes) and apply the *ecosystem's* convention, not your own. ## Phase 2 — Classify every difference For each change to the surface: - **MAJOR** — removal or rename of anything public; signature narrowing (new required param, removed overload, narrowed input type); widened return/output type consumers must now handle; changed default that changes behavior; raised ru