Release format reference
Tag grammar, archive layout, exclusion globs, checksums and changelog generation.
Tag formats
Two formats are accepted by release:
Format A — standard independent tag (always valid):
<skill-name>/v<SemVer>
Example: diataxis/v1.2.0 — binds version v1.2.0 to skill diataxis.
Format B — single-skill compatibility tag:
v<SemVer>
Example: v1.2.0 — accepted only when the workspace contains exactly one
skill, to which it is then bound. In a multi-skill workspace it is
ambiguous and fails:
plain tag "v1.2.0" is ambiguous in a workspace with 2 skills; use <skill>/v1.2.0.
SemVer is enforced strictly: vMAJOR.MINOR.PATCH with optional prerelease
(-beta.1) and build metadata (+build), no leading zeroes. Skill names in
tags must be kebab-case. When the tag names a skill, that skill must be one
of the discovered skills.
Tag resolution precedence, when --tag is not given:
- a CI tag push:
GITHUB_REF_TYPE=tagwith a non-emptyGITHUB_REF_NAME; - with
--skill <name>: a<skill>/v*SemVer tag pointing atHEAD(git tag --points-at HEAD, lexicographically first); - any release tag (
<skill>/v*or plainv*SemVer) pointing atHEAD, lexicographically first; - the fallback
git describe --tags --exact-match HEAD.
There is no fallback to "the newest tag anywhere": only tags on HEAD
count.
The single-skill rule
A release always bundles exactly one skill. The tag names it (format A) or the workspace has only one skill (format B, snapshot mode). There is no multi-skill release.
Lint gate
Before any bundling, the target skill is linted with the configured lint
config. Any Error-severity diagnostic aborts the release with the rule IDs
in the message. Warnings are non-blocking.
Archive layout
Bundling walks the skill directory through the same layered funnel
inspect uses — "what you inspect is what you publish" — and writes:
dist/<skill>_<version>.zip— deflate-compressed zipdist/<skill>_<version>.tar.gz— gzipped tar
Both archives contain a single top-level directory named after the skill, with file paths relative to it:
- demo-skill
- SKILL.mdentrypoint
- references
- guide.md
Determinism: timestamps of every archived entry are pinned to 1980-01-01 00:00:00 UTC, and file permissions are preserved (scripts stay executable). Re-bundling identical content produces identical archives.
The file funnel
Before any pattern matching, some paths are always skipped, at any depth:
| Always skipped | Examples |
|---|---|
| Dotfiles and dot-directories | .git, .github, .DS_Store, .env, .gitignore |
The workspace-root dist/ directory | dist/ |
agore.yaml at the skill root | agore.yaml |
Next, .gitignore rules apply, read from the workspace root and, when it
differs, from the skill directory. Blank lines, # comments and !
negation lines are ignored (negation is not supported: !keep.log
neither excludes nor un-excludes). A rule ending in / (dist/,
node_modules/) matches that directory and everything under it, at any
depth; a rule without / (*.log) matches by base name at any depth; a
rule containing / (build/out.txt, optionally with a leading /) is
anchored to the .gitignore's location.
Finally, the exclude globs below apply. See also inspect — lint scans the same file set.
Exclude globs
Patterns come from skill.exclude (defaults evals/**, tests/**,
**/*_test.*), matched against skill-relative slash paths. The legacy
skill.release.exclude key is still honored — when skill.exclude is
absent its value is promoted to skill.exclude, and when both are set both
lists apply merged. The glob dialect:
| Pattern | Matches |
|---|---|
* | Any characters within one path segment (not /). |
** | Any characters across segments; **/ optionally matches zero directories. |
? | Exactly one non-slash character. |
[abc] / [!abc] | Character class (negation with !). |
So tests/** skips everything under tests/, and **/*_test.* skips test
files at any depth.
Checksums
dist/<skill>_<version>_checksums.txt contains one SHA-256 line per
archive, in <hex> <basename> format — compatible with sha256sum -c:
b5ade79099be2132e127443f6462e65ee448fbe8c57f9f1ccc20f6b980d85444 demo-skill_v0.0.0-snapshot.zip
a7cee2e555a1792da1304d646d98952e6f446566724e9d8de9e2190ae28def62 demo-skill_v0.0.0-snapshot.tar.gz
Changelog
dist/<skill>_<version>_CHANGELOG.md is generated, never hand-edited, with
two sections:
-
Install header — a
## Install via skills.shsection with the exact consumer command, using the repository slug (project.repository→originremote →project.name) and the release tag (the fixed version stringv0.0.0-snapshotin snapshot mode):# demo-skill v1.2.0 ## Install via skills.sh ```bash npx skills add agore-dev/my-repo@diataxis/v1.2.0 --skill diataxisChanges
-
Changes — commits from
git log <range> --oneline -- <skill rel-path>, i.e. commits touching this skill's directory only. The range is<previous-tag>..<current-tag>when a previous tag exists,<previous-tag>..HEADotherwise. The previous tag is the newest other<skill>/v*tag (listed withgit tag --list "<skill>/v*"--sort=-v:refname). With no git history to read — always the case in snapshot mode, whose changelog covers untagged work — it writes_No changes recorded for this skill._
Snapshot semantics
--snapshot is the local try-it mode. Differences from a real release:
| Aspect | Snapshot | Real release |
|---|---|---|
| Version | Fixed v0.0.0-snapshot | From the tag |
| Git tag required | No | Yes — exact tag on HEAD or --tag |
| Clean tree | Not required | Required |
| GitHub publishing | Never | When the github publisher is enabled |
| Changelog commits | None recorded | Path-scoped git log |
Snapshot artifacts are fully-formed bundles — you can unzip them and hand them to a consumer for a smoke test.
Related
- Why versions live in tags: Why the Git tag is the SSOT
- The publisher configuration: agore.yaml reference
- How the CLI binary's own releases differ: Release process