agentleFS
Microsoft AzureKnown publisherAzure/AppConfiguration-JavaScriptProvider/.github/skills/prepare-release/SKILL.md

prepare-release

Skill18 starsChanged 7 months agoMITView on GitHub

Prepare a release for the Azure App Configuration JavaScript Provider. Use when user mentions release preparation, version bump, creating merge PRs, preview release, or stable release for this project.

14 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 5 are distinctive, and 9 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 9

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when you need to:

    line 12
  2. Distinctive:

    Create merge PRs to sync branches (main → preview, main → release/stable, preview → release)

    line 14
  3. Distinctive:

    Ask the user whether this is a stable or preview release, and what the new version number should be.

    line 43
  4. Distinctive:

    Create a version bump PR targeting main by running the version bump script:

    line 51
  5. Very specific:

    Read the current version from src/version.ts.

    line 60
  6. Very specific:

    Create a new branch from main named <username>/version-<new_version> (e.g., linglingye/version-2.5.0).

    line 61
  7. Very specific:

    Update the version in all four files (src/version.ts, package.json, package-lock.json lines 3 and 9).

    line 62
  8. Very specific:

    Commit, push, and create a PR to main with title: Version bump <new_version>.

    line 63
  9. Very specific:

    When the script prompts Proceed?

    line 65
  10. Distinctive:

    After the version bump PR is merged, create a PR to merge main into the stable release branch by running:

    line 69
  11. Very specific:

    Create a PR to merge main into preview.

    line 87
  12. Very specific:

    Create a new branch from preview named <username>/resolve-conflict (or similar).

    line 90
  13. Very specific:

    After the merge-to-preview PR is merged, create a version bump PR targeting preview by running the version bump script with the --preview …

    line 100
  14. Very specific:

    After the version bump PR is merged, create a PR to merge preview into the preview release branch by running:

    line 112

“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

Prepare Release

This skill automates the release preparation workflow for the Azure App Configuration JavaScript Provider project.

When to Use This Skill

Use this skill when you need to:

  • Bump the package version for a new stable or preview release
  • Create merge PRs to sync branches (main → preview, main → release/stable, preview → release)
  • Prepare all the PRs needed before publishing a new release
  • Resolve merge conflicts between main and preview branches

Background

Repository Information

Branch Structure

  • main – primary development branch for stable releases
  • preview – development branch for preview releases
  • release/stable/v{major} – release branch for stable versions (e.g., release/stable/v2)
  • release/v{major} – release branch for preview versions (e.g., release/v2)

Version Files

The version must be updated in all four locations simultaneously:

  1. src/version.ts – line 4: export const VERSION = "<version>";
  2. package.json – line 3: "version": "<version>",
  3. package-lock.json – line 3: "version": "<version>",
  4. package-lock.json – line 9: "version": "<version>",

Version Format

  • Stable: {major}.{minor}.{patch} (e.g., 2.4.0)
  • Preview: {major}.{minor}.{patch}-preview (e.g., 2.4.2-preview)

Quick Start

Ask the user whether this is a stable or preview release, and what the new version number should be. Then follow the appropriate workflow below.


Workflow A: Stable Release

Step 1: Version Bump PR

Create a version bump PR targeting main by running the version bump script:

./scripts/version-bump.sh <new_version>

For example: ./scripts/version-bump.sh 2.5.0

The script will automatically:

  1. Read the current version from src/version.ts.
  2. Create a new branch from main named <username>/version-<new_version> (e.g., linglingye/version-2.5.0).
  3. Update the version in all four files (src/version.ts, package.json, package-lock.json lines 3 and 9).
  4. Commit, push, and create a PR to main with title: Version bump <new_version>.

When the script prompts Proceed? [y/N], confirm by entering y.

Step 2: Merge Main to Release Branch

After the version bump PR is merged, create a PR to merge main into the stable release branch by running:

./scripts/merge-to-release.sh <new_version>

For example: ./scripts/merge-to-release.sh 2.5.0

When the script prompts Proceed? [y/N], confirm by entering y.

Important: Use "Merge commit" (not squash) when merging this PR to preserve commit history.


Workflow B: Preview Release

Step 1: Merge Main to Preview (Conflict Resolution)

Create a PR to merge main into preview. This will likely have conflicts.

  1. Fetch the latest main and preview branches.
  2. Create a new branch from preview named <username>/resolve-conflict (or similar).
  3. Merge main into this branch. If there are conflicts, inform the user and let them resolve manually.
  4. Push the branch and create a PR targeting preview with title: Merge main to preview.

Important: Use "Merge commit" (not squash) when merging this PR.

Sample PR: https://github.com/Azure/AppConfiguration-JavaScriptProvider/pull/272

Step 2: Version Bump PR

After the merge-to-preview PR is merged, create a version bump PR targeting preview by running the version bump script with the --preview flag:

./scripts/version-bump.sh <new_version> --preview

For example: ./scripts/version-bump.sh 2.5.1-preview --preview

When the script prompts Proceed? [y/N], confirm by entering y.

Step 3: Merge Preview to Release Branch

After the version bump PR is merged, create a PR to merge preview into the preview release branch by running:

./scripts/merge-to-release.sh <new_version> --preview

For example: ./scripts/merge-to-release.sh 2.5.1-preview --preview

When the script prompts Proceed? [y/N], confirm by entering y.

Important: Use "Merge commit" (not squash) when merging this PR.


Review Checklist

Each PR should be reviewed with the following checks:

  • Version is updated consistently across all 3 files
  • No unintended file changes are included
  • Merge PRs use merge commit strategy (not squash)
  • Branch names follow the naming conventions
  • All CI checks pass

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.