release
Reference for agore-skill release — flags, tag resolution, gating, bundling, and publishing.
Usage
agore-skill release [--flags]
Flags
| Flag | Default | Description |
|---|---|---|
--tag | Explicit release tag, for example diataxis/v1.2.0 | |
--skill | Skill to bundle with --snapshot | |
--snapshot | off | Local-only snapshot bundle (v0.0.0-snapshot, no git tag or GitHub release) |
--clean | off | Remove dist/ before bundling |
--config | agore.yaml | Global flag: path to the config file |
--verbose | off | Global flag: verbose diagnostics |
Behavior
release is the only command that requires agore.yaml; without it:
Agore.yaml not found; run agore-skill init before releasing.
It then resolves the target skill and version:
-
Snapshot mode (
--snapshot): version is fixed tov0.0.0-snapshotand the tag is the same string. With--skill, exactly one matching skill is selected; without it, a single-skill workspace auto-selects its only skill and a multi-skill workspace fails withRelease --snapshot requires --skill in a workspace with N skills. -
Tag mode: the tag is resolved in this order:
- the
--tagflag, when 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) — this resolves even when the tree is dirty; - any release tag (
<skill>/v*or plainv*SemVer) pointing atHEAD, lexicographically first; - the fallback
git describe --tags --exact-match HEAD, which fails withNo exact tag on HEAD (use --tag or --snapshot): ...whenHEADhas no exact tag.
The tag is parsed per the release format rules:
<skill>/vX.Y.Zalways, or plainvX.Y.Zonly with exactly one skill. The working tree must be clean:Working tree is not clean; commit or stash changes before releasing <tag>. - the
The repository slug resolves from project.repository, then the origin
remote, then project.name.
Lint gate. Before bundling, the full lint rule set runs against the
target skill with the configured lint config. Any Error diagnostic aborts
the release with a message naming the rule IDs and messages:
Lint gate failed for <skill> (N error(s)): .... Warnings do not block.
Bundling. Artifacts are written to dist/ (created as needed, emptied
first with --clean):
<skill>_<version>.zip<skill>_<version>.tar.gz<skill>_<version>_checksums.txt(SHA-256 of the two archives)<skill>_<version>_CHANGELOG.md
Archive layout, exclusions, and changelog contents are specified in
Release format; the excluded file set comes from the
same funnel inspect uses. Bundling never writes inside the skill
directory.
Publishing. In non-snapshot mode with the github publisher enabled,
the release is created via the gh CLI when present, otherwise via the
GitHub REST API with GITHUB_TOKEN. Snapshot mode never publishes. See
How to publish to GitHub.
Output
Success prints the bundle line and the four artifact paths:
✓ 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
Error cases
| Condition | Message | Exit |
|---|---|---|
No agore.yaml | Agore.yaml not found; run agore-skill init before releasing. | 1 |
| No skills discovered | no skills found under <root> | 1 |
| No tag on HEAD (tag mode) | No exact tag on HEAD (use --tag or --snapshot): ... | 1 |
| Malformed tag | Tag "<t>" is not <skill>/vX.Y.Z or vX.Y.Z. | 1 |
| Unknown skill in tag | Tag "<t>" references unknown skill "<s>". | 1 |
| Plain tag with multiple skills | plain tag "<t>" is ambiguous in a workspace with N skills; use <skill>/<t> | 1 |
| Dirty working tree (tag mode) | Working tree is not clean; commit or stash changes before releasing <tag>. | 1 |
| Lint gate failure | Lint gate failed for <skill> (N error(s)): ... | 1 |
No gh and no GITHUB_TOKEN | github publisher: gh CLI not found and GITHUB_TOKEN is not set | 1 |
Examples
agore-skill release --skill demo-skill --snapshot --clean
agore-skill release --tag diataxis/v1.2.0
git tag diataxis/v1.2.0 && agore-skill release