Skip to Content
agore-skill
How-to Guides

How to release a skill

Tag-based releases with independent versions, snapshot test runs, and the four artifacts in dist/.

You have a skill that is ready to ship and want to produce its release artifacts — and eventually a GitHub release — using an independent version tag for that one skill.

Understand the two modes first

release has two separate modes, and they have different requirements:

  • Real release — requires an exact git tag on HEAD (or one passed with --tag), a clean working tree, and an agore.yaml in the repository. Publishes via the configured publishers.
  • Snapshot — --snapshot. Requires nothing from git. Bundles with the fixed version v0.0.0-snapshot and never uploads anything.

Use a snapshot to verify bundling works before you tag anything.

Test with a snapshot

agore-skill release --skill demo-skill --snapshot --clean
agore-skill release --skill demo-skill --snapshot --clean
✓ Bundled demo-skill v0.0.0-snapshot
  /path/to/repo/dist/demo-skill_v0.0.0-snapshot.zip
  /path/to/repo/dist/demo-skill_v0.0.0-snapshot.tar.gz
  /path/to/repo/dist/demo-skill_v0.0.0-snapshot_checksums.txt
  /path/to/repo/dist/demo-skill_v0.0.0-snapshot_CHANGELOG.md
Terminal recording of the release dry run: agore-skill lint --strict passes with No lint issues found, agore-skill release --skill demo-skill --snapshot --clean bundles the skill into dist/, ls dist/ lists the zip, tar.gz, checksums and changelog files, and the SHA-256 checksum file is printed. Nothing is published — the recording uses snapshot mode only.
Lint, snapshot release and the dist/ artifacts, end to end.
  • --skill names the skill to bundle. It is optional in a single-skill workspace, but required once you have more than one skill:
agore-skill release --snapshot (2 skills)
ERROR
Release --snapshot requires --skill in a workspace with 2 skills.
  • --clean removes dist/ before bundling, so old artifacts cannot linger in your commit or upload set.

Do a real release

Tag the skill you are shipping — versions are independent per skill:

git tag diataxis/v1.2.0
git push origin diataxis/v1.2.0
agore-skill release

With the tag on HEAD, release lints the skill (any Error aborts the release), builds the artifacts into dist/, and — if the github publisher is enabled — creates the GitHub release and uploads the artifacts.

Useful variants:

  • --tag diataxis/v1.2.0 — pick the tag explicitly instead of resolving it.
  • Plain v1.2.0 (no skill prefix) is accepted only when the workspace contains exactly one skill.
  • Without --tag, the tag is resolved in this order: GITHUB_REF_TYPE=tag plus a non-empty GITHUB_REF_NAME (a CI tag push); then tags pointing at HEAD (git tag --points-at HEAD), preferring a <skill>/v* tag when --skill is given; then the git describe --tags --exact-match HEAD fallback.
  • Without any tag and without --snapshot, the command fails: No exact tag on HEAD (use --tag or --snapshot): ...

The four artifacts

FileContents
<skill>_<version>.zipZip archive, top-level directory <skill>/.
<skill>_<version>.tar.gzGzipped tar, same layout.
<skill>_<version>_checksums.txtSHA-256 of the two archives, one hex digest per line.
<skill>_<version>_CHANGELOG.mdInstall command plus the path-scoped commit list.

Inside the archives every path is prefixed with the skill name, so a consumer unpacks it to a ready demo-skill/ folder. The bundle walks the same file funnel as inspect and lint: dotfiles and dot-directories (.git, .github, .DS_Store, …), the workspace-root dist/, and agore.yaml are always skipped; .gitignore rules are honored next (read from the workspace root and from the skill directory); only then do the exclude globs apply. Those globs live in skill.exclude (defaults: evals/**, tests/**, **/*_test.*) — the legacy skill.release.exclude key still parses and is merged with it. Archive timestamps are pinned to a fixed date, which makes re-bundles of identical content byte-identical.

The changelog

The changelog starts with the consumer-facing install command, using the repository slug derived from project.repository (or the git remote, or the project name):

# diataxis v1.2.0

## Install via skills.sh

```bash
npx skills add agore-dev/my-repo@diataxis/v1.2.0 --skill diataxis

Changes


Below it lists the commits from `git log <prev-tag>..<curr-tag> -- <skill
dir>` — commits touching that skill's directory only. The previous tag is the
newest other `<skill>/v*` tag. For a snapshot there is no git range, so the
changes section reads `_No changes recorded for this skill._` and the install
line uses the fixed snapshot version (`@v0.0.0-snapshot`).

## When the release refuses to start

| Message                                                       | Meaning and fix                                                      |
| ------------------------------------------------------------- | --------------------------------------------------------------------- |
| `Agore.yaml not found; run agore-skill init before releasing.` | `release` never runs zero-config; run `init` first.                   |
| `No exact tag on HEAD (use --tag or --snapshot)`              | Tag `HEAD` first, pass `--tag`, or use `--snapshot`.                  |
| `Tag "wrongtag" is not <skill>/vX.Y.Z or vX.Y.Z.`             | The tag must end in a SemVer version.                                 |
| `Tag "x/v1.0.0" references unknown skill "x".`                | The skill prefix must match a discovered skill.                       |
| `Working tree is not clean; commit or stash changes before releasing x` | Commit or stash; real releases require a clean tree.          |

## Related

- Tag grammar and the single-skill rule in full:
  [Release format reference](../reference/release-format.mdx)
- Why versioning lives in tags, never in `SKILL.md`:
  [Why the Git tag is the SSOT](../explanation/git-tag-ssot.mdx)
- Pushing the artifacts to GitHub:
  [How to publish to GitHub](./publish-to-github.mdx)
- How the CLI binary itself is released — a different tag namespace:
  [Release process reference](../../contributor/reference/release-process.mdx)

On this page