Release

From gabrielmoreira/agent-skills-mirror · View interactive version

Release is an AI agent skill from the GitHub repository gabrielmoreira/agent-skills-mirror. Use when preparing or publishing an NGINX UI release, including version bumping with version.sh, bilingual (English and Chinese) release notes, Avira pre-publication checks, tags, GitHub Releases, and optional post-release publication to the RainYun cloud app store.

How to use this skill

Skill file

NGINX UI Release

Use this workflow for NGINX UI releases from the repository root.

Preconditions

Version Preparation

  1. Run ./version.sh outside the sandbox when possible. It updates app/package.json, runs the frontend build, and refreshes generated artifacts that can require network access.
  2. Enter the release version as vX.Y.Z when prompted and confirm it.
  3. Check the generated diff with git status --short and git diff --stat.
  4. Commit only version-preparation artifacts with:
git add <version-prep-files>
git commit -m "chore: prepare vX.Y.Z"

Do not commit release-notes-vX.Y.Z.md.

Release Notes

Create release-notes-vX.Y.Z.md in the repository root using exactly these sections:

## Features

- <User-facing feature summary> by @<contributor> ([<short-hash>](https://github.com/0xJacky/nginx-ui/commit/<full-sha>))

## Bug Fixes

- <User-facing fix summary> by @<contributor> ([<short-hash>](https://github.com/0xJacky/nginx-ui/commit/<full-sha>))

## 中文更新日志

### 新功能

- <面向用户的功能摘要> by @<contributor> ([<short-hash>](https://github.com/0xJacky/nginx-ui/commit/<full-sha>))

### 问题修复

- <面向用户的修复摘要> by @<contributor> ([<short-hash>](https://github.com/0xJacky/nginx-ui/commit/<full-sha>))

## Contributors

@handle

Guidelines:

Chinese changelog (## 中文更新日志):

Before finalizing, check every change bullet for accurate attribution, a resolving commit link, and membership in the release range, and confirm the Chinese sections have the same bullet count, order, and attribution suffixes as the English sections. Reuse the same reviewed notes for the tag annotation and GitHub Release body.

References: Keep a Changelog for curated, grouped summaries and GitHub release notes for contributor credit and change traceability. Per-change handles and short hashes are this project's required format.

Validation

Avira Pre-Publication Gate

Complete this gate after the release-prep commit and before creating or pushing the release tag or publishing the GitHub Release:

  1. Record the exact release-candidate commit from git rev-parse HEAD.
  2. After explicit publication authorization, push only dev so the Build workflow can produce the Windows amd64 artifact from that exact commit. Do not push the release tag yet.
  3. Wait for the Build workflow for the candidate commit to succeed. Download its Windows amd64 artifact and verify that it contains the expected nginx-ui.exe.
  4. Record the executable SHA-256. Archive only nginx-ui.exe in a password-protected ZIP under Avira's 50 MB limit using password infected.
  5. Immediately before transmitting the archive and contact details, obtain the required external-submission confirmation. Submit the sample to Avira VirusLab as Suspected False Positive (Not Malware) with the planned version, candidate commit, executable hash, source URL, and release URL.
  6. Stop until Avira explicitly reports Clean. A pending result or detection leaves the release tag and GitHub Release unpublished.
  7. Recheck that HEAD and origin/dev still resolve to the scanned candidate commit. Any commit change invalidates the result and requires a new artifact and scan.

The pre-publication artifact is content-level evidence, not guaranteed byte-for-byte proof of the final GitHub Release asset because the build embeds settings.buildTime. After publication, record the exact published Windows ZIP and extracted EXE SHA-256 values. If WinGet flags the final executable, submit that exact EXE to Avira before requesting an ESRP rerun.

Tag, Push, And Publish

Only after the Avira pre-publication result is Clean and the candidate commit is unchanged:

git -c tag.gpgSign=false tag -a vX.Y.Z -F release-notes-vX.Y.Z.md
git push origin vX.Y.Z
gh release create vX.Y.Z --verify-tag --title vX.Y.Z -F release-notes-vX.Y.Z.md --discussion-category Announcements

Notes:

Homebrew Tap

The update-homebrew job of the release Build run opens a PR titled nginx-ui X.Y.Z (branch update-nginx-ui-X.Y.Z) in 0xJacky/homebrew-tools. It is not merged automatically, so merge it as part of every release once that job has succeeded:

  1. Find the PR with gh pr list --repo 0xJacky/homebrew-tools --state open.
  2. Confirm it only changes Formula/nginx-ui.rb, both test-bot checks passed, and it is MERGEABLE.
  3. Check that each of the four formula sha256 values matches the digest of the asset it points to (gh api repos/0xJacky/nginx-ui/releases/tags/vX.Y.Z --jq '.assets[] | "\(.digest) \(.name)"').
  4. Merge with a merge commit, as earlier tap PRs were, and delete the branch:
gh pr merge <number> --repo 0xJacky/homebrew-tools --merge --delete-branch

If test-bot fails, reproduce it locally against the tapped checkout (brew style 0xjacky/tools, brew readall, brew audit --tap=0xjacky/tools) and fix the formula template in nginx-ui's release workflow rather than editing the tap by hand.

RainYun Cloud App Publication

RainYun is a downstream distribution phase. Start it only after the GitHub Release is final, the required release workflows have completed, and the versioned Docker image is available for the target RainYun architecture. Do not make RainYun a prerequisite for publishing the GitHub Release.

When the release request includes RainYun or store publication, read and follow references/rainyun.md. Its template contract, deployment proof, external-action boundaries, billing confirmation, CAPTCHA handoff, store-state readback, and README promotion requirements are release gates for this phase.

A generic GitHub release authorization does not by itself authorize RainYun template changes, a potentially billed test deployment, or application submission. Obtain the required RainYun scope before external mutations and obtain action-time confirmation immediately before the final install/deploy control.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.