microsoft/pre-release-npm-package
Prepare already-public npm packages for pre-release publishing. Keywords: prerelease, pre-release, publish, npm, alpha, beta, rc, release group.
npx skills add https://github.com/microsoft/fluentui-system-icons --skill pre-release-npm-package
This skill prepares already-public packages for pre-release publishing. No code changes are needed — the skill validates the pre-release branch and guides the user to trigger the CI workflow, where the package(s) are selected via the workflow's projects input.
> Scope: Only already-public packages can be pre-released. A private package ("private": true) must first be made public and released through the standard publishing pipeline before it is eligible for pre-release. Being already released also implies the package belongs to a release group under release.groups.*.projects in nx.json, which is what nx release publish requires.
After this skill completes, the Publish Prerelease NPM GitHub Actions workflow (.github/workflows/publish-prerelease.yml) can be triggered to build, version, and publish the selected packages to npm. Each package is versioned and published independently.
Check the current git branch:
git branch --show-current
If the branch matches release/pre/react-icons/<feature-name>:
If the branch does NOT match:
<feature-name> (kebab-case, e.g., sprite-subsetting).git checkout -b "release/pre/react-icons/<feature-name>"
> Important: The branch MUST follow the release/pre/react-icons/<feature-name> naming convention. The publish-prerelease workflow blocks execution on main.
Inform the user of next steps:
git push -u origin release/pre/react-icons/<feature-name>projects to the already-public package(s) to pre-release using Nx selection syntax (e.g. react-icons, react-icons,react-icons-file-type, react-*, or tag:npm:standalone),exclude,preid (alpha/beta/rc), and optionally enable dry-run.> Note: Each selected package is versioned and published independently. Cross-package dependencies are not auto-included: a pre-released package keeps depending on the already-published version of its repo dependencies. If you also want a dependent to consume a new prerelease, select it explicitly too.
Take microsoft/pre-release-npm-package from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.