Skip to Content
agore-skill
Explanation

Versioning and the single source of truth

How two tag namespaces and a purity rule keep versions honest.

Why do versions live in git tags — never in a manifest field, never in a bump commit — and why are there two namespaces instead of one?

One source of truth per artifact

Every versioned artifact here has exactly one place its version is written: the git tag that names the release.

  • The CLI binary is versioned by vX.Y.Z tags; GoReleaser injects the version into the binaries it builds via ldflags (-s -w -X main.version={{.Version}} in .goreleaser.yaml), so agore-skill --version reports the tagged version (local builds report dev), and names the archives after it.
  • A skill is versioned by <skill>/vX.Y.Z tags; the CLI embeds the version only in artifact file names and the changelog, never inside the skill.

Two namespaces are needed because the artifacts are different in kind: the binary is one program with one version at a time; skills are many, independent things that ship on their own clocks (alpha/v1.4.0 next to beta/v0.3.1). One shared namespace would either force lockstep releases or make v1.2.0 ambiguous — so plain vX.Y.Z is the binary's namespace, and a skill tag always names its skill. The workflow's v* filter and the tag parser enforce the boundary from both sides.

Why the purity rule exists

SKILL.md is the file consumers read — agents and skills.sh install from it. If a release rewrote a version into it, every release would dirty the working tree or create a commit, and the file a consumer reads would differ from the file the author wrote and reviewed. So the CLI never writes into a skill directory — the e2e script hashes SKILL.md before and after a release to keep that honest.

The cost is strictness: a real release needs an exact tag on HEAD and a clean tree. That friction is the mechanism — it is what makes "this tag" mean exactly "this content". The snapshot mode exists so local iteration never pays the friction.

What this means for contributors

  • Never add a version field to a skill's frontmatter or bump it; versions are not content.
  • When a change lands, no version action is needed until something is released — and inspect now makes the in-between state visible: the newest <skill>/v* tag and the number of commits since it show up as the [unreleased] / [v1.2.0] / [v1.2.0 · +N unreleased] badge and as latest_version / unreleased_commits in the JSON report.
  • The docs package (docs/package.json) is the one tracked version that is not a release artifact — it identifies the docs build, not the CLI.

On this page