AGENT SKILL

release

Cut a versioned release — infer the version bump, update the changelog, tag, and publish artifacts (GitHub Release, package registries). The heavy sibling of /merge. Use when the user says "cut a release", "publish a release", "tag a version", "ship a release", or invokes /release.

License 许可
AGPL-3.0
所属仓库
aaronsb/agent-ways
最近更新
2026-11-14
Stars
★ 26
Forks
13

01 前言 Front Matter

name
release
description
Cut a versioned release — infer the version bump, update the changelog, tag, and publish artifacts (GitHub Release, package registries). The heavy sibling of /merge. Use when the user says "cut a release", "publish a release", "tag a version", "ship a release", or invokes /release.
allowed-tools
Bash, Read, Grep, Glob

03 SKILL.md 正文

Release — publish a versioned release

The occasional, heavier tail: turning merged work into a published, versioned artifact. This is not landing an increment (that's /merge) — it's the one-way door of putting a version into the world. Confirm before anything publishes.

The doctrine lives in the delivery/release way; this skill runs it.

First: check for make release

make help 2>/dev/null | grep -iE 'release|dist|publish|deploy'
grep -E '^(release|dist|publish):' Makefile 2>/dev/null

If a target exists, use it — the Makefile is the canonical release interface; it knows the project's packaging, signing, and publishing steps. Confirm with the user, then run it.

When there's no make release

1. Infer the version bump

From commits since the last tag:

git log --oneline "$(git describe --tags --abbrev=0 2>/dev/null || echo HEAD~20)"..HEAD
  • feat!: / BREAKING CHANGE → major
  • feat: → minor
  • only fix: / docs: / chore: → patch

State the inferred bump and the resulting version; let the user override.

2. Update the version file

Detect and update: package.json, Cargo.toml, pyproject.toml, version.txt, etc.

3. Changelog

Keep a Changelog format, grouped Added / Changed / Fixed / Removed.

4. Reconcile the issue tracker

A release is when "fixed in X" becomes a true statement. Find what this release claims to close, before the tag makes the claim public:

git log $(git describe --tags --abbrev=0)..HEAD --format='%s%n%b' \
  | grep -oiE '(clos|fix|resolv)(e[sd])? +#?[A-Z]+-?[0-9]+'

That catches #123 and PROJ-456 alike. What to do with the hits depends on what the project's tracker offers:

  • Items the commits closed — stamp the released version, if there's a fix-version field.
  • Items referenced without a closing keyword — check whether this release resolves them.
  • An item named in the changelog that the tracker still shows open — one of the two is wrong.

Use whatever CLI the project already uses (gh issue, glab, jira, an MCP tool, a TODO.md). Detect it; don't assume one. No tracker is a valid answer — say so and move on rather than inventing one.

5. Tag

git tag -a vX.Y.Z -m "summary"
git push origin main --tags

6. Publish artifacts (confirm first — one-way door)

Destination How
GitHub Release gh release create vX.Y.Z --generate-notes <artifacts>
npm npm publish
PyPI python -m build && twine upload dist/*
Cargo cargo publish
Container docker build -t repo:vX.Y.Z . && docker push

For multi-platform binaries, build per-platform and attach all to one GitHub Release with a checksums.txt.

Key Principles

  • make release first — don't hand-roll what the project already encodes.
  • Never auto-publish — every publish target is a one-way door; confirm each.
  • Apply semver, don't explain it — infer the bump, state it, proceed on confirm.
  • Release follows merge — the work should already be on main before you release it.

Not for

  • Landing an increment to main — that's /merge.
  • Writing or reviewing the code being released — that's /develop and code-review.

See Also

  • merge — land the work first; release publishes what's already merged.
  • delivery/release(softwaredev) — the release doctrine this runs.

04 同仓库更多 Skills

aaronsb
aaronsb/agent-ways

my-skill

A hand-built skill the user keeps in ~/.claude/skills. The fixture asserts it survives the install.

Skill与智能体开发
★ 26
aaronsb
aaronsb/agent-ways

work-skill

A skill in a second Claude Code config directory. The fixture asserts the directory is untouched.

Skill与智能体开发
★ 26
aaronsb
aaronsb/agent-ways

wrap

Wrap up a session at a natural seam — land in-flight work, square the TaskList honestly, write a copy-paste continuation prompt, then hand off to a directed /compact. Use when the user says "wrap up", "wrap this up", "let's wrap", "end of session", "checkpoint and compact", "hand off", or invokes /wrap.

Skill与智能体开发
★ 26
aaronsb
aaronsb/agent-ways

ways-update

Update the agent-ways installation to the latest version — preview the update with `ways manage update --what-if` (versions, release notes, the commits, local changes, the actions, dev links), read it back to the user, then apply it with `ways manage update --commit`, which pulls the app source in $XDG_DATA, refreshes the binaries and corpus, and reprojects ~/.claude. Use when the user wants to update agent-ways, pull the latest ways/hooks, or refresh their ways framework install. Not for editing or authoring individual ways (that is the ways skill) or upgrading project dependencies.

Skill与智能体开发
★ 26
aaronsb
aaronsb/agent-ways

ways-tests

Score way matching via embedding similarity, analyze vocabulary, and validate frontmatter. Use when testing how well a way matches prompts, checking cosine similarity scores, inspecting the embedding engine status, or validating way files.

★ 26
aaronsb
aaronsb/agent-ways

ways-localize

Localize agent-ways into the operator's language — translate every way's matching metadata against the English root, tune it clean, and switch ways (and Claude Code) into that language. Use when the operator asks to run ways in their language ("set up ways in Spanish", "localiza ways al español", "ways auf Deutsch"). Not for authoring or editing individual ways (that is the ways skill), not for English installs (already built), and not for changing Claude Code's language alone (that is a settings.json edit).

★ 26