agentleFS
LIXIAO199115LIXIAO199115/skillrig/skills/release-engineer/SKILL.md

release-engineer

Skill0 starsChanged 25 days agoMITView on GitHub

Use when cutting a release or publishing a package: choosing a semver bump, writing the changelog, tagging the exact commit, building reproducibly, publishing with provenance, verifying the published artifact from a clean environment, and planning rollback. Covers npm, GitHub Releases, and container images.

  • Reads credentials
  • Installs packages
  • Commits and pushes

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

25 rules. About 0 are common, 24 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈24

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when:

    line 22
  2. Distinctive:

    No open blocking issues for the milestone.

    line 44
  3. Distinctive:

    No secrets in the tree or in test fixtures.

    line 47
  4. Distinctive:

    If any check fails, stop. A release is a bad place to discover a dirty tree.

    line 49
  5. Distinctive:

    Never reuse a published version.

    line 70
  6. Distinctive:

    Write for users, not for the commit log.

    line 97
  7. Distinctive:

    Every breaking change needs a migration note.

    line 98
  8. Distinctive:

    Do not include internal ticket ids that users cannot resolve.

    line 101
  9. Distinctive:

    Do not claim a fix that is not in the artifact.

    line 102
  10. Distinctive:

    Use an annotated, signed tag when the project supports it.

    line 133
  11. Distinctive:

    Verify: git show v1.5.0 --stat and git rev-list -n 1 v1.5.0.

    line 135
  12. Distinctive:

    If the tag is wrong, delete it before anyone consumes it.

    line 137
  13. Distinctive:

    Use a short-lived CI token, not a personal long-lived token.

    line 146
  14. Distinctive:

    If publishing manually, publish the exact artifact you tested, not a fresh build.

    line 148
  15. Distinctive:

    Keep the previous artifact available for rollback.

    line 176
  16. Distinctive:

    Write the rollback command before you need it.

    line 177
  17. Distinctive:

    Update docs, migration guides, and examples.

    line 182
  18. Distinctive:

    No test on the tagged commit, no changelog, no verification, and the tag may point somewhere else.

    line 215
  19. Distinctive:

    Do not publish from a dirty working tree.

    line 232
  20. Distinctive:

    Do not reuse or overwrite a published version.

    line 233
  21. Distinctive:

    Do not publish with a personal long-lived token when CI tokens are available.

    line 234
  22. Distinctive:

    Do not skip the clean-environment install test.

    line 235
  23. Distinctive:

    Do not mark a release "stable" before the canary window passes.

    line 236
  24. Distinctive:

    Do not delete a release that users may have installed.

    line 237
  25. Very specific:

    Do not include .env, credentials, test fixtures with real data, or local paths in the package.

    line 238

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Release Engineer

A release is a promise that a specific artifact, built from a specific commit, works for the people who install it. Every step exists to keep that promise verifiable.

Most release incidents come from one of four gaps: the tag points at the wrong commit, the published artifact differs from the tested one, the changelog hides a breaking change, or there is no rollback path.

When to use

Use this skill when:

  • Publishing a package, CLI, container image, or GitHub Release.
  • Deciding whether a change is major, minor, or patch.
  • Writing or repairing a changelog.
  • Setting up automated releases with provenance.
  • A release is broken and you need to roll back or publish a fix.

Workflow

1. Preflight

git status
git fetch --tags
git log --oneline -10

Confirm:

  • Working tree clean, on the release branch, up to date with the remote.
  • CI green on the exact commit you intend to release.
  • No open blocking issues for the milestone.
  • Dependency lockfile committed.
  • Version in the manifest is the version you intend to publish.
  • No secrets in the tree or in test fixtures.

If any check fails, stop. A release is a bad place to discover a dirty tree.

2. Choose the version

Semantic versioning for a public API:

ChangeBumpExample
Bug fix, no API changepatch1.4.2 → 1.4.3
New backward-compatible featureminor1.4.2 → 1.5.0
Breaking changemajor1.4.2 → 2.0.0
Pre-releasesuffix2.0.0-rc.1
Build metadatasuffix1.4.3+build.7

Rules that prevent pain:

  • Removing or renaming an export is breaking.
  • Changing a default is breaking if callers depend on it.
  • Raising the minimum runtime is breaking for users on the old runtime.
  • Changing error types or status codes can be breaking.
  • A 0.x project may use minor for breaking changes, but say so in the README.
  • Never reuse a published version. Publish a new patch instead.

3. Write the changelog

Group by impact, not by commit:

## [1.5.0] - 2026-10-21

### Added
- `skillrig budget` reports always-on token cost per skill. (#214)

### Changed
- Installer now refuses to overwrite an unmanaged directory unless `--force`. (#219)

### Fixed
- Tar reader no longer strips the top-level folder from `.skm` bundles. (#221)

### Security
- Scan blocks skills that pipe remote content into a shell. (#226)

### Breaking
- Node.js 18 is no longer supported. Minimum is 20.11.

Rules:

  • Write for users, not for the commit log.
  • Every breaking change needs a migration note.
  • Link the issue or pull request when the project does that.
  • Credit external contributors.
  • Do not include internal ticket ids that users cannot resolve.
  • Do not claim a fix that is not in the artifact.

4. Build the exact artifact

npm ci
npm run build
npm test
npm pack --dry-run

Check:

  • The build uses the lockfile, not a floating install.
  • The toolchain version matches CI.
  • The package includes the files users need and excludes secrets, tests, and local config.
  • The artifact hash is recorded.
sha256sum dist/*.tgz

For containers, pin the base image by digest and record the image digest after the build.

5. Tag the exact commit

git tag -s v1.5.0 -m "v1.5.0"
git push origin v1.5.0
  • Use an annotated, signed tag when the project supports it.
  • Tag the commit that CI tested, not a later merge.
  • Verify: git show v1.5.0 --stat and git rev-list -n 1 v1.5.0.

If the tag is wrong, delete it before anyone consumes it. After publication, never move a tag; publish a new patch.

6. Publish

npm publish --access public --provenance
  • Enable provenance or attestations where the registry supports them.
  • Use a short-lived CI token, not a personal long-lived token.
  • Publish from CI when possible, so the artifact matches the pipeline.
  • If publishing manually, publish the exact artifact you tested, not a fresh build.

7. Verify from a clean environment

This step catches the majority of packaging mistakes.

<!-- skillrig-ignore-block: global-install -- clean-room verification inside a throwaway container -->
docker run --rm -it node:22 bash
npm install --global skillrig@1.5.0
skillrig --version
skillrig search test

Check:

  • The version string is the released one.
  • The binary or entry point exists.
  • Required files are present.
  • A minimal example from the README works.
  • The install does not execute unexpected scripts.
  • The package size is in the expected range.

8. Roll out

  • Canary or staged rollout for services.
  • Feature flags off by default for risky behavior changes.
  • Watch error rate, latency, and saturation for a defined window.
  • Keep the previous artifact available for rollback.
  • Write the rollback command before you need it.

9. Close the loop

  • Publish the GitHub Release with the changelog and checksums.
  • Update docs, migration guides, and examples.
  • Announce in the channels users actually read.
  • Bump to the next development version.
  • Close the milestone.
  • Record the release in the incident log if anything went wrong.

Examples

Good release commit sequence:

# version bump and changelog in one commit
npm version 1.5.0 --no-git-tag-version
git add package.json package-lock.json CHANGELOG.md
git commit -m "release: v1.5.0"
git push origin main

# wait for CI on that commit
gh run watch

# tag the tested commit
git tag -s v1.5.0 -m "v1.5.0"
git push origin v1.5.0

Bad release sequence:

npm version patch
npm publish
git push --tags

No test on the tagged commit, no changelog, no verification, and the tag may point somewhere else.

Failure modes

FailureConsequencePrevention
Tag on a later commitUsers get untested codeTag the CI-tested SHA
Version not bumpedCache serves old filesCheck npm view before publish
Missing files in packageInstall breaksnpm pack --dry-run, clean install
Secret in artifactCredential leakSecret scanning, .npmignore review
Breaking change in patchSilent breakageSemver review in the PR
No provenanceCannot verify originPublish from CI with provenance
No rollback artifactLong outageKeep the previous version
Moving a published tagUnreproducible buildsNever move; publish a new patch

Guardrails

  • Do not publish from a dirty working tree.
  • Do not reuse or overwrite a published version.
  • Do not publish with a personal long-lived token when CI tokens are available.
  • Do not skip the clean-environment install test.
  • Do not mark a release "stable" before the canary window passes.
  • Do not delete a release that users may have installed; yank or deprecate it instead.
  • Do not include .env, credentials, test fixtures with real data, or local paths in the package.

Verification checklist

  • Tests pass on the exact tagged commit.
  • Version follows semver and is not already published.
  • Changelog has added, changed, fixed, security, and breaking sections as needed.
  • Artifact built from the lockfile and hashed.
  • Tag is annotated and points at the tested commit.
  • Provenance or attestation is present.
  • Clean-environment install and smoke test pass.
  • Rollback path and previous artifact are available.
  • Release notes published.
  • Next development version set.

References

  • references/release-checklist.md contains copyable checklists for libraries, CLIs, containers, and emergency releases.

Download now (ZIP)

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.