Skip to Content
agore-skill
Reference

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):

Format A
<skill-name>/v<SemVer>

Example: diataxis/v1.2.0 — binds version v1.2.0 to skill diataxis.

Format B — single-skill compatibility tag:

Format B
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:

  1. a CI tag push: GITHUB_REF_TYPE=tag with a non-empty GITHUB_REF_NAME;
  2. with --skill <name>: a <skill>/v* SemVer tag pointing at HEAD (git tag --points-at HEAD, lexicographically first);
  3. any release tag (<skill>/v* or plain v* SemVer) pointing at HEAD, lexicographically first;
  4. 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 zip
  • dist/<skill>_<version>.tar.gz — gzipped tar

Both archives contain a single top-level directory named after the skill, with file paths relative to it:

archive root
  • 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 skippedExamples
Dotfiles and dot-directories.git, .github, .DS_Store, .env, .gitignore
The workspace-root dist/ directorydist/
agore.yaml at the skill rootagore.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:

PatternMatches
*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:

demo-skill_v0.0.0-snapshot_checksums.txt
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:

  1. Install header — a ## Install via skills.sh section with the exact consumer command, using the repository slug (project.repository → origin remote → project.name) and the release tag (the fixed version string v0.0.0-snapshot in snapshot mode):

    # demo-skill v1.2.0
    
    ## Install via skills.sh
    
    ```bash
    npx skills add agore-dev/my-repo@diataxis/v1.2.0 --skill diataxis

    Changes

  2. 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>..HEAD otherwise. The previous tag is the newest other <skill>/v* tag (listed with git 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:

AspectSnapshotReal release
VersionFixed v0.0.0-snapshotFrom the tag
Git tag requiredNoYes — exact tag on HEAD or --tag
Clean treeNot requiredRequired
GitHub publishingNeverWhen the github publisher is enabled
Changelog commitsNone recordedPath-scoped git log

Snapshot artifacts are fully-formed bundles — you can unzip them and hand them to a consumer for a smoke test.

On this page