Skip to Content
agore-skill
Explanation

Why the Git tag is the SSOT

The single source of truth for skill versions is the git tag — and SKILL.md is never modified.

Most release tools write version numbers back into the artifact they ship: a version field in a manifest, a bump commit, a changelog inside the repository. agore-skill deliberately does none of that. The version of a skill exists in exactly one place: the git tag <skill>/vX.Y.Z.

The consequences of that choice

SKILL.md stays pure. The entry-point file of a skill is consumed by external tools — agents and skills.sh. If release rewrote a version into its frontmatter, every release would produce a dirty working tree or a commit, and the file a consumer reads would differ from the file the author wrote. The implementation never writes to the skill directory at any stage, including release; bundling reads it, archives it, and leaves it alone.

Versions are independent per skill. A monorepo with skills alpha and beta ships them on their own clocks: alpha/v1.4.0 and beta/v0.3.1 can coexist. This is why the plain vX.Y.Z form is only tolerated for single-skill repositories — in a monorepo it would silently claim to version the whole repo when it really versions one skill, so the CLI rejects it as ambiguous instead.

Reproducibility over decoration. Artifacts embed the version in their file names (demo-skill_v1.2.0.zip), the changelog title, and nothing inside the skill. Two bundles built from the same commit are byte-identical (fixed archive timestamps), and the same tag always means the same content.

The tag you ship is the tag the consumer installs. The generated changelog's install line, npx skills add <owner>/<repo>@<tag> --skill <skill>, points the consumer at the very tag the release was cut from. There is no intermediate "latest" indirection to drift.

What this costs

The strictness has a price: release requires a release tag on HEAD and a clean working tree. There is no "newest tag anywhere" fallback — the tag naming the release must point at the commit being released. The lookup reads that tag robustly (--tag wins, then a CI tag push's GITHUB_REF_TYPE/GITHUB_REF_NAME, then release tags found with git tag --points-at HEAD, and finally git describe --tags --exact-match HEAD for the detailed error), but every path still requires the tag to sit on HEAD. You cannot release "roughly at" a tag or with uncommitted changes lying around. That friction is intentional — it is the mechanism that keeps the tag meaningful. The --snapshot mode exists as the pressure valve for local verification without tagging.

The cost is softened on the reading side: inspect reports where each skill stands between tags. The panel header carries a badge — muted [unreleased] with no tag, success [v1.2.0] when the tag is current, warning [v1.2.0 · +2 unreleased] when commits have landed since — and the JSON output adds latest_version and unreleased_commits. A skill between tags is no longer invisible.

On this page