agentleFS
atgreenatgreen/cl-tuition/.claude/skills/make-release/SKILL.md

make-release

Skill149 starsChanged 2 months agoMITView on GitHub

Cut a new tuition release — verify release notes, tuition.asd version, README currency, a clean tree, and a green test suite, then tag vX.Y.Z and push so CI builds the GitHub release. Use when the user says "make a release", "cut a release", "tag a version", "ship a release", or runs /make-release.

  • Commits and pushes

We split this skill into the rules it gives an agent

7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If any check is BLOCKED/FAILED, stop and report — do not work around it.

    line 26
  2. Distinctive:

    Run the bundled script and show the user its full output:

    line 32
  3. Very specific:

    Read doc/release-notes/RELEASE-NOTES-<version>.md and confirm every notable user-facing change above is described, and that it omits …

    line 82
  4. Distinctive:

    Ask the user to confirm tagging and pushing.

    line 102
  5. Very specific:

    Only after confirmation. If preflight reported unpushed commits, push the branch first so origin/master matches the tag:

    line 107
  6. Very specific:

    Use an annotated tag. Substitute the real version for <version>.

    line 116
  7. Very specific:

    If the run fails, help diagnose (a common cause is a release-notes filename that doesn't match the tag version).

    line 131

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

make-release

Release a new version of tuition. In this repo a release is driven entirely by a git tag: pushing a v* tag triggers .github/workflows/release.yaml, which builds a source tarball and creates the GitHub release using doc/release-notes/RELEASE-NOTES-<version>.md as the release body. Your job is to make sure everything lines up before the tag exists, then create and push it.

The version comes from :version in tuition.asd; the tag is v<version>.

Golden rules

  • Never tag or push without explicit user confirmation. Pushing the tag publishes a release — it is outward-facing and hard to reverse.
  • Do not bump the version or write release notes as part of tagging. Those are deliberate pre-release commits. If they are missing, stop and help the user prepare them, then start over with a clean tree.
  • Tag the committed HEAD. The working tree must be clean so the tag captures exactly what was reviewed.
  • If any check is BLOCKED/FAILED, stop and report — do not work around it.

Procedure

1. Run the deterministic pre-flight checks

Run the bundled script and show the user its full output:

bash .claude/skills/make-release/scripts/preflight.sh

It reads the version, checks the git state (clean tree, branch, in sync with origin), that the v<version> tag does not already exist locally or on origin, and that doc/release-notes/RELEASE-NOTES-<version>.md exists, is non-empty, is committed, and references the version.

  • Exit 1 (BLOCKED): report the [FAIL] items and stop. Common cases and fixes to offer:
    • Uncommitted changes → the version bump and/or release notes probably aren't committed yet. Help the user commit them (on master or via a PR), then re-run from step 1.
    • Tag already exists / version not greater than latest → the version wasn't bumped. Offer to bump :version in tuition.asd and create the matching RELEASE-NOTES-<version>.md, commit, then restart.
    • Missing release notes → offer to draft RELEASE-NOTES-<version>.md from the commits since the last tag (see step 3), following the format of the previous file in doc/release-notes/.
  • Exit 0 with [WARN] items: surface them and factor them into step 4.

2. Run the test suite

CI runs the unit tests on Linux/macOS/Windows and the example tests on Linux. Reproduce the unit tests locally; they must be 100% green:

sbcl --non-interactive \
  --eval '(asdf:load-system "tuition/tests")' \
  --eval '(handler-case (progn (tuition-tests:run-tests) (format t "~%RELEASE-TESTS-OK~%")) (error (e) (format t "~%RELEASE-TESTS-FAIL: ~a~%" e) (sb-ext:exit :code 1)))'

Require RELEASE-TESTS-OK and Fail: 0. If anything fails, stop — do not release. Optionally also run ./test-examples.sh (slower; needs a PTY and the ocicl deps) to mirror CI's example check.

3. Review release-notes and README content (judgment)

The script only checks that files exist — you must confirm they are accurate.

List what changed since the last release and check it is reflected:

LAST=$(git tag -l 'v*' | sed 's/^v//' | sort -V | tail -1)
git log --no-merges --oneline "v${LAST}..HEAD"
  • Read doc/release-notes/RELEASE-NOTES-<version>.md and confirm every notable user-facing change above is described, and that it omits CI/CD-only changes (repo convention).
  • Skim README.md for anything the new features made stale (component lists, examples, option names, the current version). Point out gaps; offer to fix them (which means a new commit → restart from step 1 with a clean tree).

Summarize your findings for the user.

4. Confirm

Present a concise summary and get an explicit yes before doing anything irreversible:

  • version and tag (vX.Y.Z)
  • release-notes file that will become the release body
  • test result
  • any outstanding [WARN] items or README/notes caveats
  • whether the branch also needs pushing (preflight flags unpushed commits)

Ask the user to confirm tagging and pushing. Do not continue without a clear affirmative.

5. Tag and push

Only after confirmation. If preflight reported unpushed commits, push the branch first so origin/master matches the tag:

git push origin master        # only if the branch was ahead of origin
git tag -a "v<version>" -m "Release v<version>"
git push origin "v<version>"

Use an annotated tag. Substitute the real version for <version>.

6. Report

The tag push starts .github/workflows/release.yaml. Tell the user the release is building and link the run:

Offer to watch it to completion:

gh run watch $(gh run list --workflow=release.yaml --limit 1 --json databaseId --jq '.[0].databaseId') --exit-status

If the run fails, help diagnose (a common cause is a release-notes filename that doesn't match the tag version). To undo a mistaken tag before the release finishes: git push origin :refs/tags/v<version> and git tag -d v<version>.

Download now (ZIP)

  • Other versions5 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 5

    1. hathach/tinyusb★ 7.2ksame name
    2. quarto-dev/quarto-cli★ 6.1ksame name
    3. tradingstrategy-ai/web3-ethereum-defi★ 828same name
    4. ocicl/ocicl★ 316same name
    5. atgreen/icl★ 200same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.