Skip to Content
agore-skill
Reference

release

Reference for agore-skill release — flags, tag resolution, gating, bundling, and publishing.

Usage

Usage
agore-skill release [--flags]

Flags

FlagDefaultDescription
--tagExplicit release tag, for example diataxis/v1.2.0
--skillSkill to bundle with --snapshot
--snapshotoffLocal-only snapshot bundle (v0.0.0-snapshot, no git tag or GitHub release)
--cleanoffRemove dist/ before bundling
--configagore.yamlGlobal flag: path to the config file
--verboseoffGlobal 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 to v0.0.0-snapshot and 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 with Release --snapshot requires --skill in a workspace with N skills.

  • Tag mode: the tag is resolved in this order:

    1. the --tag flag, when given;
    2. a CI tag push: GITHUB_REF_TYPE=tag with a non-empty GITHUB_REF_NAME;
    3. with --skill <name>: a <skill>/v* SemVer tag pointing at HEAD (git tag --points-at HEAD, lexicographically first) — this resolves even when the tree is dirty;
    4. any release tag (<skill>/v* or plain v* SemVer) pointing at HEAD, lexicographically first;
    5. the fallback git describe --tags --exact-match HEAD, which fails with No exact tag on HEAD (use --tag or --snapshot): ... when HEAD has no exact tag.

    The tag is parsed per the release format rules: <skill>/vX.Y.Z always, or plain vX.Y.Z only with exactly one skill. The working tree must be clean: Working tree is not clean; commit or stash changes before releasing <tag>.

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:

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

Error cases

ConditionMessageExit
No agore.yamlAgore.yaml not found; run agore-skill init before releasing.1
No skills discoveredno skills found under <root>1
No tag on HEAD (tag mode)No exact tag on HEAD (use --tag or --snapshot): ...1
Malformed tagTag "<t>" is not <skill>/vX.Y.Z or vX.Y.Z.1
Unknown skill in tagTag "<t>" references unknown skill "<s>".1
Plain tag with multiple skillsplain 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 failureLint gate failed for <skill> (N error(s)): ...1
No gh and no GITHUB_TOKENgithub publisher: gh CLI not found and GITHUB_TOKEN is not set1

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

On this page