publishing-homebrew-release
Use when publishing ya-skills from main or master to Homebrew, updating Yaphet2015/homebrew-tap, shipping a yk GitHub Release, or when asked to brew install / tap the latest commit.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- publishing-homebrew-release
- description
- Use when publishing ya-skills from main or master to Homebrew, updating Yaphet2015/homebrew-tap, shipping a yk GitHub Release, or when asked to brew install / tap the latest commit.
02 资源文件 1
- 参考文档evals/local-publish.md6.3 KB
03 SKILL.md 正文
Publishing Homebrew Release
Use the local package path for the current main. The defaults are a new
patch or minor semantic version, no tag or release overwrite, and no Release
Please merge. A major release requires the user's explicit request; do not infer
it from interface or storage changes.
Honor an explicit user choice after checking the exact tag, release, asset, or
PR state. Record every exception and every omitted check; never describe an
omitted check as passed.
Recipe
- Confirm macOS arm64, branch
main,HEAD == origin/main, and a clean tracked tree. Do notgit reset --hard. - Read the latest GitHub Release tag and classify the changes. Prefer patch
for fixes and small adjustments; use minor for new capabilities or broader
changes. Select major only when the user explicitly requests it. Changes
to interfaces, helper commands or state layouts do not automatically select
major; document compatibility and migration details. Avoid major-triggering
Conventional Commit markers (
!orBREAKING CHANGE) without that explicit request. If the user selects a version, use that valid semver after checking that the exact tag, release, and intended asset state are understood. The default is to stop on an existing target; an explicitly requested overwrite must name the exact target and be recorded.package.jsonmust contain the release version, because the compiledyk --versioncomes from that field. - If the root
package.jsonneeds the selected version, change only that field, commit, and push tomain. Runbun run typecheckandbun run teston this tree unless the user explicitly omits one; record an omission and its reason. - Inspect the shared
package:releasescript before packaging. It must sign the compiledykbefore archiving and runcodesign --verify --stricton that compiled file. If signing or verification is absent, fix the shared script, commit and push that fix, rebuild from scratch, and repeat the affected checks. Never patch a member of an already-created archive. - Run
bun run package:release -- --version <version>. Never hand-assemble. It writesya-skills-v<version>-macos-arm64.tar.gzand its.sha256, withyk,skills/, andruntime/at the archive root. - Run the packaged lane used by the release runner:
YK_RELEASE_TESTS=1 bun test tests/computer-e2e-release.test.ts tests/computer-session-release.test.ts tests/computer-lane-release-packaging.test.ts, thenbun run buildandbun run smoke. The packaged tests exercise the binary underdist/release;bun run smokecovers the source/Node path and does not validate the standalone executable. A failed required gate stops later tag, upload, and tap steps; an explicit omission is recorded as skipped, never passed. - Create a fresh, run-specific extraction directory and set
archive_rootto its absolute path. Validate the final archive, rather than only its build directory. Check that"$archive_root/yk","$archive_root/skills", and"$archive_root/runtime"exist; runcodesign --verify --strict "$archive_root/yk"; run"$archive_root/yk" -hand require exit 0 with non-empty help containingUsage; and require"$archive_root/yk" --versionto equal exactly<version>. Recompute the local SHA-256 and compare it with the generated.sha256before uploading. - Before tagging or uploading, confirm the tree is clean and
HEADis the tested release commit equal toorigin/main; any code or script change invalidates its affected checks. Create tagv<version>and a GitHub Release with the two assets. Do not overwrite by default. If the user explicitly chose an overwrite, check the exact existing tag/release/asset first and record the operation. The tag-triggeredrelease.ymlguard may end green with skipped steps after a local publish. That is status only, not release validation; keep the local gates and archive checks. - Download the uploaded archive into a separate run-specific directory and
compare its SHA-256 with the validated local archive before changing the
tap. A mismatch stops the release. Update
Yaphet2015/homebrew-tapFormula/ya-skills.rbwithscripts/update-ya-skills-formula.pyand envVERSION,TAG_NAME,ASSET_NAME,ASSET_SHA256. This writesurl,sha256, and the--versionassertion. Do not addversion; Homebrew infers it from the GitHub release URL. Commit and push the tap change. Do not force-push. - Install or upgrade the formula and test the installed executable. The
/opt/homebrew/bin/ykpath is a wrapper, so use the formula prefix:formula_prefix="$(brew --prefix ya-skills)",codesign --verify --strict "$formula_prefix/libexec/yk", then run"$formula_prefix/bin/yk" -hand require exit 0 with non-empty help containingUsage; run"$formula_prefix/bin/yk" --version, requiring the exact selected version. Any signature, help, or version failure means the release is not complete; retain the diagnosis artifacts and do not claim success. - Close or refresh the open Release Please PR under the local-path default; honor an explicit user choice after checking the PR and version state. Do not merge it silently.
Evidence and cleanup
Keep a durable, run-specific evidence record containing the commit SHA, tag and
release, bun --version, macOS version and architecture, local/uploaded/
downloaded SHA-256 values, CI URL and status, and every command with its result
or explicit skip reason. A skipped-green CI run must be recorded as skipped,
not as a substitute for validation.
After every release and tap check succeeds, remove only the exact artifacts
created by this run: its named archive and .sha256, dist/yk, the exact
dist/release/ya-skills tree, and its extraction/download/staging directory.
Do not glob away archives from other runs or pre-existing files. On any
failure, retain the archive, hashes, extracted files, downloads, staging
directory, and diagnosis logs.
Done when
- The selected tag and GitHub Release exist without an unrequested overwrite.
- The shared package script signed and strictly verified the compiled binary.
- A fresh extraction passed signature, exit-0 help with
Usage, exact--version, andskills//runtime/checks. bun run typecheckand defaultbun run testpassed, or each explicit omission is recorded; packaged tests, build, and smoke also passed. Smoke is not treated as standalone-binary validation.- The uploaded/downloaded hash matched the validated local hash before the tap update.
- The formula URL, sha256, and
--versionassertion match the release and the formula has noversionline. - The Homebrew-installed executable passed signature, help, and exact version checks.
- Evidence is retained, and only this run's packaging leftovers were removed after success.
04 同仓库更多 Skills
video-transcript
Video transcript (captions first, Whisper fallback). Use when the user wants text from a video.
validator
Deprecated. Plan Completion Standard. Use only when the user invokes /validator after a Plan is complete.
ultra-simplify
Use when the user asks for a massive simplification pass
ultra-produce
Deprecated. Coordinate native Planner, Builder and Verifier subagents through implementation and testing, with file-based handoffs, stage hooks and local commits. Use for an end-to-end delegated implementation workflow.
ultra-cr
Coordinate independent code reviewers, architectural impact analysis and finding verification. Use for multi-agent code review or an ultra-cr review against a diff and requirements, with resumable reports.
ui-parity
Align existing UI surfaces or extract shared interactions with baseline regression checks, state comparisons, and rendered evidence. Use for UI parity work.