release
Skill46 starsChanged 2 months agoMITView on GitHub
Release a new version of Scraps from start to finish. Opens and merges the version-bump PR, publishes the GitHub Release with categorized notes, follows the workflow that ships the binaries, crates.io and Homebrew, then moves the floating v{major} / v{major}.{minor} tags. Use this whenever the user asks to release, cut, ship or publish a Scraps version (e.g. "release 3.1.0", "v3.0.1 をリリースして"), or to finish a release that stopped halfway, such as a merged release PR with no GitHub Release yet or floating tags still on the previous version.
- Reads credentials
- Commits and pushes
190 other projects use a version of this.
Adopted by
Most recently taken up by
- bonboncinnabon/gemini-plugin-cctheir own version, first seen Oct 5, 2026
- NahumLitvin/prismantistheir own version, first seen Oct 5, 2026
- Kangentic/kangentictheir own version, first seen Oct 5, 2026
- colonyops/hivetheir own version, first seen Oct 5, 2026
- vericontext/vibeframetheir own version, first seen Oct 4, 2026
- shaharia-lab/slackclitheir own version, first seen Oct 4, 2026
Used with
Projects with it also use watch-pr, marketplace and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Hugging FaceSkillwatch-pr
Monitor a PR's CI checks and Greptile code review after submission. Polls CI status, auto-fixes failures via ralph-loop, waits for Greptile review, addresses comments, and iterates until green.
Also in 3 projects that use this
OpenAISkillmarketplace
Vercel Marketplace expert guidance — discovering, installing, and managing third-party integrations via the `vercel integration` CLI. Use when building any app that needs an external capability without a dedicated skill — commerce (stores, storefronts, selling products), payments (checkout, subscriptions, billing), observability/monitoring, messaging/email, search, or CMS — or when discovering, installing, or managing integrations.
Also in 4 projects that use this
Microsoft AzureSkillengineering-principles
GPT-RAG Orchestrator architecture and implementation principles. Use for design, review, meaningful refactoring, runtime strategies, FastAPI, Azure integration, security, testing, or operations.
Also in 4 projects that use this
ZAidBinAsifSkillwrite-readme
Write README files as landing pages not API docs
Also in 3 projects that use this
polyant-aiSkillplugin-authoring
Use when creating, converting, or loading Polyant agent tools/plugins — authoring a *.tool.ts with defineTool, the serialized (JSON Schema) contract, converting a legacy registerTool tool, or wiring an external plugin via PLUGIN_DIRS / src/plugins. Also covers authoring a *.hook.ts with defineHook (conversation lifecycle hooks + control returns halt/injectContext/replaceResponse/regenerate). Covers the module-resolution rules that decide where a plugin can live.
Also in 3 projects that use this
eugenelimSkillnew-spec
Use this skill when the user wants to start a new feature with a spec, or wants to write a spec for something they're about to build. Triggers on "new spec", "write a spec for X", "let's spec this out", "start a feature for…". Spec-driven development; the spec drives implementation. Do NOT use for cross-cutting proposals (use `new-rfc`) or recording decisions (use `new-adr`).
Also in 3 projects that use this
Other versions190 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 190
- tw93/Pake★ 62ksame name
- Yeachan-Heo/oh-my-claudecode★ 40ksame name
- openai/symphony★ 28ksame name
- slopus/happy★ 24ksame name
- coleam00/Archon★ 24ksame name
- microsoft/agent-lightning★ 19ksame name
- EverMind-AI/EverOS★ 13ksame name
- 0xJacky/nginx-ui★ 12ksame name
- modelcontextprotocol/inspector★ 11ksame name
- max-sixty/worktrunk★ 8.8ksame name
180 more not listed
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 repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ade-rule-dslSkill
- adr-checkSkill
- adr-reviewSkill
- doc-updateSkill
- releaseSkill
- ade-rule-dslSkill
- adr-checkSkill
- adr-reviewSkill
- doc-updateSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 1 is distinctive, and 6 are very specific to this project.
0
Common
Most of the 172 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 49
If the checkout has uncommitted changes, stop and ask.
- Very specific: line 84
Run generate-notes again with -f target_commitish="$sha", since PRs merged while the release PR was open ship too.
- Very specific: line 86
If there is a breaking change, the notes open with ## ⚠️ Breaking change: what changed, how to keep the old behaviour, and why.
- Very specific: line 102
Write the notes to a file outside the repository, because --notes-file keeps backticks and $ away from the shell.
- Very specific: line 117
Use the run whose headBranch is v<version>.
- Very specific: line 119
When one fails, show gh run view <run-id> --log-failed and let the user decide.
- Very specific: line 139
Keep the braces in ${sha}: zsh reads the :r after a bare $sha as a modifier and mangles the refspec.
“Common” is measured: kept by at least 6 in 10 of the 172 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.
Files
Release
Takes a version such as 3.1.0 (semver, no v); the tag is v3.1.0. If the user gave none, propose one from what is shipping (step 1): a breaking change means major, a feature means minor, anything else patch. Confirm it before going on.
Three constraints shape the flow:
maintakes changes only through a PR that passes the checks and has the approval its rulesets require, so the version bump travels as a release PR.- Publishing the GitHub Release runs
.github/workflows/release.yml. It uploads the binaries, publishes both crates to crates.io and updatesboykush/homebrew-tap. None of that can be taken back. - The floating
v{major}/v{major}.{minor}tags are moved from this checkout with the user's credentials.GITHUB_TOKENcan't move them: GitHub refuses a tag whose commit has different.github/workflows/from the default branch, and any workflow change merged after the release commit makes them differ.
Get the user's go-ahead before merging, before publishing and before moving the floating tags. In between, keep going without stopping. Draft the release notes yourself: the user reviews them as a whole before publishing.
A release can stop halfway, for example when a PR is waiting on checks or a session ends. Check what already exists before starting, and resume from the first step that hasn't happened:
git fetch origin main --tags --force
gh pr list --head release/v<version> --state all --json number,state,mergeCommit
gh release view v<version>
git ls-remote origin refs/tags/v<version> refs/tags/v<major> refs/tags/v<major>.<minor>Without --force, git refuses to update a tag it already has, so the fetch fails once the floating tags have moved. The floating tags are done when they point where v<version> does.
1. See what is shipping
prev=$(git tag --list 'v[0-9]*.[0-9]*.[0-9]*' --merged origin/main --sort=-v:refname | grep -v -e - | grep -vx 'v<version>' | head -1)
gh api repos/boykush/scraps/releases/generate-notes -f tag_name=v<version> -f target_commitish=main -f previous_tag_name="${prev:?no previous tag found}" --jq .bodyThe tag pattern skips the floating v3 / v3.0 tags, and grep -v -e - skips pre-releases. Keep the -e: Claude Code's shell wraps grep with ugrep, which finds no pattern in grep -v -- - and leaves $prev empty. The :? stops the call when $prev is empty, because GitHub would guess the previous tag rather than fail. If it stops, find out why before going on: don't call generate-notes without a previous tag.
generate-notes returns every PR merged since $prev, whether it was merged or squashed (Renovate's are squashed), and only formats text: it creates nothing. Read the PRs that matter with gh pr view <N> --json title,body. A ! in the title or BREAKING CHANGE in the body marks a breaking change.
2. Open the release PR
Branch from origin/main in the current checkout:
git status --porcelain # must print nothing
git switch -c release/v<version> origin/mainIf the checkout has uncommitted changes, stop and ask. Don't git stash: every worktree of this repository shares the stash stack. Don't git checkout main either: it fails while another worktree has main checked out.
Bump the version in three places, then build so that Cargo.lock picks up both scraps and scraps_libs:
Cargo.toml:versionunder[workspace.package]and under[workspace.dependencies.scraps_libs]modules/libs/Cargo.toml:versionmise run cargo:build
The diff should touch those two manifests and Cargo.lock, nothing else. Commit it with the message v<version> and push it with git push -u origin release/v<version>. Then open the PR with gh pr create --base main --title "v<version>". Start the body with "Version bump for v<version>." and summarize what ships from step 1. Put breaking changes first, saying how to keep the old behaviour and why it changed. The release notes grow out of this summary.
3. Merge it
gh pr checks <number> --watch --requiredwaits for the checks the rulesets onmainrequire.The approval comes from ai-review. Its
ai-review / reviewcheck reviews the PR against the rules in boykush/adr and submits the verdict as aclaude[bot]review: an approval when nothing is violated, a request for changes otherwise. The check isn't required, so the first command doesn't wait for it:gh run list --workflow=ai-review.yml --branch release/v<version> --limit 1 --json databaseId,status gh run watch <run-id> --exit-status gh pr view <number> --json reviewDecisionIf the run fails, or the decision is
CHANGES_REQUESTEDorREVIEW_REQUIRED, look at the run and the review, and tell the user. Don't look for another way to approve. The owner can bypass the approval, but that is for the user to do: never rungh pr merge --admin.- With both in place, ask the user whether to merge.
- On a yes, run
gh pr merge <number> --merge. A merge commit keeps the release as one commit onmain, and the tag goes on it.
4. Publish
The release commit is the PR's merge commit, not the tip of main, which may have moved on:
sha=$(gh pr view <number> --json mergeCommit --jq .mergeCommit.oid)
git fetch origin main --tags --force
git show "$sha:Cargo.toml" | grep -m1 '^version' # must be <version>Run generate-notes again with -f target_commitish="$sha", since PRs merged while the release PR was open ship too. Write the notes in the shape of earlier releases; gh release view v3.0.0 is a good one to match.
- If there is a breaking change, the notes open with
## ⚠️ Breaking change: what changed, how to keep the old behaviour, and why. Leave the section out otherwise. ## What's Changedhas one line per PR,<PR title> (#N), filed by the title's prefix. Show only the sections that have entries.Prefix Section feat✨ Features fix🐛 Bug Fixes perf⚡ Performance docs📚 Documentation refactor🔧 Refactoring test✅ Tests anything else, and the release PR itself 🔧 Maintenance - Under a feature, a fix users would notice, or a performance change, add a short paragraph from the PR body. Say what a user will notice, with numbers for performance. Routine maintenance stays on one line, and dependency updates can share one.
- End with
**Full Changelog**: https://github.com/boykush/scraps/compare/<prev>...v<version>.
Write the notes to a file outside the repository, because --notes-file keeps backticks and $ away from the shell. Show the user the notes, the commit and what publishing sets off. On a yes:
gh release create v<version> --target "$sha" --title "v<version>" --notes-file <file>This creates the tag on GitHub at $sha, so nothing is tagged or pushed locally. A pre-release version (-rc.N) also takes --prerelease. The workflow then only builds binaries.
5. Follow the release workflow
gh run list --workflow=release.yml --limit 3 --json databaseId,headBranch,status
gh run watch <run-id> --exit-statusUse the run whose headBranch is v<version>. Build uploads the five binaries. Update homebrew formula and Publish to crates.io each start after Build. Any of them can fail alone and leave the release half-published, so report every job.
When one fails, show gh run view <run-id> --log-failed and let the user decide. Re-running is not always safe. cargo publish rejects a version that is already on crates.io, so a re-run fails after scraps_libs has gone out.
6. Move the floating tags
Skip this for a pre-release. Users of the setup action pin boykush/scraps@v<major> or @v<major>.<minor>, and the action installs the binaries of the version its ref carries. Move the tags once Build has succeeded, whatever happened to the other jobs. Check where they point now:
git ls-remote origin refs/tags/v<major> refs/tags/v<major>.<minor>Show the user both tags' current commits and $sha from step 4. On a yes, move both in one atomic push. Each lease is the commit its tag points at now, or empty for a tag that doesn't exist yet, so nothing moves if either tag changed after you looked:
git push --atomic \
--force-with-lease=refs/tags/v<major>:<current commit> \
--force-with-lease=refs/tags/v<major>.<minor>:<current commit, or empty> \
origin "${sha}:refs/tags/v<major>" "${sha}:refs/tags/v<major>.<minor>"
git fetch origin --tags --forceKeep the braces in ${sha}: zsh reads the :r after a bare $sha as a modifier and mangles the refspec.
7. Hand off
Give the user the release URL. Then suggest the doc-update skill to check the docs against what shipped.
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
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.

