agentleFS
ShopifyKnown publisherShopify/shopify-app-js/.claude/skills/prepare-release/SKILL.md

prepare-release

Skill542 starsChanged 8 months agoMITView on GitHub

Prepare the changeset-release/main branch for release by syncing version.ts files and running pnpm install

  • Installs packages

14 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run git branch --show-current and confirm the current branch is changeset-release/main.

    line 14
  2. Distinctive:

    Read all 8 files in parallel.

    line 29
  3. Very specific:

    Use the Edit tool to update the constant to match the package.json version.

    line 37
  4. Very specific:

    If all version.ts files already match their package.json versions, note that no updates were needed.

    line 40
  5. Very specific:

    Run pnpm install from the repo root to update the lock file.

    line 46
  6. Distinctive:

    Commit any changes that were just made.

    line 60

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

You are preparing the changeset-release/main branch for release.


Step 1: Verify the current branch

Run git branch --show-current and confirm the current branch is changeset-release/main. If it is not, stop and tell the user they must be on changeset-release/main to run this workflow.


Step 2: Identify which packages need version.ts updates

For each of the four packages below, read both the package.json version and the version.ts constant. If they differ, the file needs updating.

Packagepackage.jsonversion.tsConstant name
@shopify/shopify-apipackages/apps/shopify-api/package.jsonpackages/apps/shopify-api/lib/version.tsSHOPIFY_API_LIBRARY_VERSION
@shopify/shopify-app-expresspackages/apps/shopify-app-express/package.jsonpackages/apps/shopify-app-express/src/version.tsSHOPIFY_EXPRESS_LIBRARY_VERSION
@shopify/shopify-app-remixpackages/apps/shopify-app-remix/package.jsonpackages/apps/shopify-app-remix/src/server/version.tsSHOPIFY_REMIX_LIBRARY_VERSION
@shopify/shopify-app-react-routerpackages/apps/shopify-app-react-router/package.jsonpackages/apps/shopify-app-react-router/src/server/version.tsSHOPIFY_REACT_ROUTER_LIBRARY_VERSION

Read all 8 files in parallel.


Step 3: Update version.ts files

For each package where the package.json version does not match the version.ts constant:

  1. Use the Edit tool to update the constant to match the package.json version.
  2. Report what you changed (e.g., "SHOPIFY_API_LIBRARY_VERSION updated from 12.2.0 to 12.3.0").

If all version.ts files already match their package.json versions, note that no updates were needed.


Step 4: Run pnpm install

Run pnpm install from the repo root to update the lock file.


Step 5: Summary

Print a summary of:

  • Which version.ts files were updated (with old → new versions)
  • Which packages had no changes needed
  • That pnpm install was run

Remind the user that the next steps are:

  1. Commit any changes that were just made.
  2. Review and edit the CHANGELOG.md files if needed, then commit any changes to changeset-release/main.
  3. Merge the Packages for release PR into main to trigger the release.

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.