agentleFS
niaka3dayoniaka3dayo/agent-skills-vrc-udon/.claude/skills/release/SKILL.md

release

Skill368 starsChanged 35 days agoMITView on GitHub

Release procedure for agent-skills-vrc-udon: sync main into dev, bump the five version fields, open and merge the release PR, rewrite the Release Drafter notes, and publish to npm. Use when asked to cut, prepare, or publish a release, to bump the version, or to sync main into dev. Maintainer-only; not distributed.

  • Commits and pushes

193 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-agent-adapter, changelog-style 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.
  • MicrosoftSkill

    create-agent-adapter

    Technical guide for creating a new Paperclip agent adapter. Use when building a new adapter package, adding support for a new AI coding tool (e.g. a new CLI agent, API-based agent, or custom process), or when modifying the adapter system. Covers the required interfaces, module structure, registration points, and conventions derived from the existing claude-local and codex-local adapters.

    Also in 6 projects that use this

  • GrinvSkill

    changelog-style

    Turn a commit range into CHANGELOG.md entries following common-changelog style. Use when finishing a PR (adding to the [Unreleased] section) or cutting a release (moving [Unreleased] under a new version heading).

    Also in 4 projects that use this

  • GrinvSkill

    docs-consistency-check

    Check README/manifest.json/server.json/CHANGELOG.md/AGENTS.md and docs/*.md for drift against the actual registered tools and source. Use after adding, renaming, or removing a tool, or as part of a live-audit pass.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    component-release

    Prepares and validates GPT-RAG MCP component releases. Use for versions, dependency locks, changelog entries, release branches, tags, GitHub Releases, and platform pin coordination.

    Also in 4 projects that use this

  • Microsoft AzureSkill

    documentation-consistency

    Keeps AI Landing Zone contributor, user, and operator documentation aligned with shipped Bicep behavior. Use for parameters, defaults, outputs, topology, deployment flow, operations, or releases.

    Also in 8 projects that use this

  • m13vSkill

    test-release

    Use when the user says "test the release", "smoke test", "verify the build works", "test staging", "test the new version", or after promoting a release to staging/beta/stable. Smoke-tests the shipped Fazm production app via Sparkle auto-update on local + MacStadium, sends test queries via distributed notifications, checks logs. Does NOT build anything.

    Also in 3 projects that use this

  • +3 more from Grinv

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 179 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Wait for all seven required CI checks.

    line 57
  2. Distinctive:

    Always rewrite the notes before publishing:

    line 93
  3. Distinctive:

    Remove the "Release vX.Y.Z (#N)" self-reference line.

    line 95
  4. Distinctive:

    Use a bilingual structure: English release notes first, then a Japanese version of the same user-facing content.

    line 97
  5. Distinctive:

    Add a contributor acknowledgement section when a bundled PR closed an externally reported Issue.

    line 98
  6. Distinctive:

    Do NOT create tags manually.

    line 125
  7. Distinctive:

    Do NOT delete a release or a tag.

    line 126
  8. Very specific:

    Do NOT push directly to dev or main.

    line 127
  9. Very specific:

    Do NOT merge feature branches directly to main.

    line 128

“Common” is measured: kept by at least 6 in 10 of the 179 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Release

main ──sync PR──> dev (when the ancestry check fails)
dev ──version-bump PR──> dev ──release PR──> main ──Release Drafter draft──> publish ──> npm

GitHub Release notes are drafted by Release Drafter, and GitHub Releases are the canonical release history. CHANGELOG.md is a historical archive through v1.2.0; later releases are not backfilled.

Version numbers must be bumped by hand on dev before the release PR is opened (Step 2). publish.yml does run npm version "$VERSION" --no-git-tag-version in the CI runner as a safety net, but those edits are not committed back, so the git tree has to be kept current by hand.

Step 1: Synchronize main into dev when needed

bash .claude/skills/release/scripts/sync-main-into-dev.sh

The script fetches both branches and checks that dev contains the current main history. If it does not, it opens a sync PR from a new chore/sync-main-into-dev-<timestamp> branch, waits for the seven required checks (Symlink Integrity, Hook Scripts, Documentation Smoke Tests, Markdown Links, npm Pack Test, EditorConfig, Version Sync), merges with a merge commit, and repeats the ancestry check. Do not continue until that final check succeeds.

Step 2: Bump the version fields on dev

Decide the target version vX.Y.Z from the labels on the PRs merged into dev since the last release (see Version resolution). From this point until the release PR is merged, merge nothing else into dev. If another PR does land, resolve the version again before continuing. Then:

set -e   # stop at the first failing command
git checkout dev && git pull
git checkout -b chore/release-vX.Y.Z

bash .claude/skills/release/scripts/bump-version.sh X.Y.Z

git commit -am "chore(version): bump to vX.Y.Z"
git push -u origin chore/release-vX.Y.Z
gh pr create --base dev --label "release: maintenance" \
  --title "chore(version): bump to vX.Y.Z" \
  --body "Pre-release version bump for Step 3 of the release flow."

The script moves these five fields together and stops unless exactly those five lines changed:

  • package.json → .version
  • .claude-plugin/marketplace.json → .metadata.version
  • skills/unity-vrc-udon-sharp/SKILL.md → frontmatter metadata.version
  • skills/unity-vrc-world-sdk-3/SKILL.md → frontmatter metadata.version
  • .claude/skills/unity-vrc-skills-renovator/SKILL.md → frontmatter metadata.version

Wait for all seven required CI checks. Version Sync verifies that the five fields agree. Merge the bump PR into dev (squash is fine here; it is a single-purpose commit). CodeRabbit review is optional on this PR.

Step 3: Create the release PR from dev to main

gh pr create --base main --head dev \
  --title "Release vX.Y.Z" \
  --body "Merge dev into main for release"

The title must include the version that matches package.json#version on dev after Step 2. The body can follow .github/PULL_REQUEST_TEMPLATE/release.md. Wait for CI to pass. CodeRabbit approval is not required for release PRs: they are mechanical merges of commits that were already reviewed.

Step 4: Merge the release PR

Merge with a merge commit. Do NOT squash: Release Drafter needs each underlying PR commit. The merge triggers Release Drafter to update the draft release on main.

Step 5: Publish the GitHub Release draft

# List draft releases
gh release list --exclude-drafts=false

# Rewrite the auto-generated notes, then publish
gh release edit vX.Y.Z --notes "$(cat <<'NOTES'
## What's New in vX.Y.Z
...

## vX.Y.Z の変更点
...
NOTES
)"

# Publishing triggers publish.yml → npm publish
gh release edit vX.Y.Z --draft=false

Always rewrite the notes before publishing:

  • Remove the "Release vX.Y.Z (#N)" self-reference line.
  • Replace bare PR titles with user-facing prose.
  • Use a bilingual structure: English release notes first, then a Japanese version of the same user-facing content.
  • Add a contributor acknowledgement section when a bundled PR closed an externally reported Issue. Name the Issue number and the reporter, keep it respectful, and mirror the reporter's language when possible.

The published event triggers publish.yml, which validates the tag, runs npm version "$VERSION" --allow-same-version (a no-op when Step 2 was done), syncs SKILL.md and marketplace.json again as a safety net, and runs npm publish. It authenticates with npm trusted publishing (OIDC) instead of a stored token, runs in the npm-publish environment, and npm adds provenance automatically.

If the Publish step fails with an authentication error (ENEEDAUTH, E401, or E404 on PUT), check the trusted publisher on npmjs.com (package Settings, Trusted Publisher). Every field is case-sensitive and npm does not validate them on save: user niaka3dayo, repository agent-skills-vrc-udon, workflow filename publish.yml, environment npm-publish, and npm publish allowed (not only npm stage publish). Also confirm the job still has id-token: write and the workflow still uses Node 24 or later (npm 11.5.1 or later). After correcting the configuration, re-run the failed Publish job from the Actions tab; do not create a second release.

A newly created trusted publisher expires unless the first publish succeeds within two days, so create or recreate one right before a release, not in advance.

Afterwards, npm view agent-skills-vrc-udon version should return the new version.

Version resolution (label-driven)

Count the labels on the PRs merged into dev since the last release:

LabelBump
release: breakingmajor
release: featureminor
release: fixpatch
release: docspatch
release: maintenancepatch

The highest bump wins. If no label matches, default to patch. Release Drafter resolves the same labels for the draft body, so the draft and package.json agree as long as the manual bump matches.

What NOT to do

  • Do NOT skip Step 2. publish.yml changes the version only inside the runner and does not commit it back, so a missed bump leaves the git tree frozen. Version Sync passes when all five fields agree on the wrong value; this drifted for five release cycles before it was caught (PR #169).
  • Do NOT create tags manually. Release Drafter creates the tag when the release is published.
  • Do NOT delete a release or a tag. Published versions may be referenced by tag (git clone --branch vX.Y.Z), and deleting a tag breaks every user who pinned it (Issue #290).
  • Do NOT push directly to dev or main. Branch protection blocks it; use the PR flows above.
  • Do NOT merge feature branches directly to main. Always go through dev.

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.