npm-release-pipeline
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Use when releasing a Node.js package to npm, or when asked to verify release readiness, run prepublish checks, publish a new version, create/push git tags, create a GitHub Release, or close release-related issues/epics. Best for repo-agnostic npm package release work where the package is defined by package.json and the exact release checklist must be executed safely.
- Installs packages
- Commits and pushes
In this repository38 other files it gives its agents.
- skills/supabase-postgres-best-practices/AGENTS.mdAGENTS.md
- skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- skills/supabase-postgres-best-practices/CLAUDE.mdCLAUDE.md
- ai-app-security-auditSkill
- ai-slide-templatesSkill
- backlog-ready-specSkill
- check-compiler-errorsSkill
- clawpackerSkill
- deslopSkill
- devex-reviewSkill
- fix-ciSkill
- fix-merge-conflictsSkill
- founder-office-hoursSkill
- get-cookiesSkill
- get-pr-commentsSkill
- gh-issue-priority-handoffSkill
- image2-with-codexSkill
- investigateSkill
- local-ultra-reviewSkill
- loop-on-ciSkill
- loop-on-pr-review-and-fixSkill
- new-branch-and-prSkill
- peer-reviewSkill
- plan-devex-reviewSkill
- planmode-ceoSkill
- planmode-engineerSkill
- qa-onlySkill
- review-and-shipSkill
- run-smoke-testsSkill
- security-best-practicesSkill
- site-design-auditSkill
- site-design-fixSkill
- slow-is-fastSkill
- supabase-postgres-best-practicesSkill
- vercel-react-best-practicesSkill
- xianyu-api-client-skillSkill
- xianyu-automation-skillSkill
- xianyu-product-manager-skillSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
34 rules. About 0 are common, 27 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈27
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use this skill to run a safe, repeatable npm release flow for a generic Node.js package.
- Distinctive: line 17
Verify remote default branch / release branch state.
- Distinctive: line 18
Verify version, changelog / release-notes inputs, npm availability, release channel, CI, and working tree safety.
- Distinctive: line 19
Run local release checks.
- Distinctive: line 22
Verify published version and dist-tags.
- Distinctive: line 23
Create and push git tag.
- Distinctive: line 24
Create GitHub Release if requested.
- Distinctive: line 30
Check these before publishing:
- Distinctive: line 40
If a changelog or release notes process exists, confirm the new version is documented or draftable from merged PRs.
- Very specific: line 41
If prepublishOnly exists, treat it as a final guardrail, not a substitute for proactive verification.
- Distinctive: line 43
If any of the above is unclear, ask the smallest clarifying question needed.
- Distinctive: line 47
Use the package's actual scripts and metadata.
- Very specific: line 103
Use a non-latest tag such as next for prereleases, staged rollouts, or any release that should not become the default install target.
- Distinctive: line 115
Use semantic tags unless the repo uses another convention.
- Distinctive: line 135
Stop and report instead of publishing when:
- Distinctive: line 148
Treat these as separate states and report them explicitly:
- Very specific: line 171
If the repo uses files, .npmignore, or publishConfig, inspect them when package contents look surprising.
- Very specific: line 183
If CHANGELOG.md exists, prefer its version-specific entry as the canonical notes source.
- Distinctive: line 206
Keep the notes factual and compact.
- Distinctive: line 210
Check release-channel intent before publishing.
- Very specific: line 214
use latest for the default stable release users should get from npm install <package-name>
- Very specific: line 215
use next (or another explicit tag) for prereleases, canaries, beta lines, or staged rollouts
- Distinctive: line 216
do not assume a prerelease semver automatically implies the correct dist-tag.
- Distinctive: line 218
Before publish, check current tags:
- Distinctive: line 224
After publish, verify that:
- Distinctive: line 230
If channel state looks wrong, stop and report the exact mismatch before doing follow-up steps such as GitHub Release creation or issue …
- Distinctive: line 234
Create a GitHub Release only when the user asks for it or the repo's release flow clearly requires it.
- Distinctive: line 236
Use the finalized release notes as the source of truth for the GitHub Release body.
- Distinctive: line 240
Do not assume every release should close issues automatically.
- Distinctive: line 242
Before closing release-related issues/epics, confirm that:
- Distinctive: line 249
If closing an issue, leave a short comment stating the released package version.
- Distinctive: line 253
Ask only if not already obvious from repo state:
- Distinctive: line 255
default branch name (main, master, or another branch)
- Distinctive: line 271
Keep the report short and operational.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Npm Release Pipeline
Overview
Use this skill to run a safe, repeatable npm release flow for a generic Node.js package.
Favor a strict order: verify release readiness first, publish second, then do Git/GitHub follow-up. Stop on failed preconditions. If a step partially succeeds, report the exact state instead of pretending the whole release is clean.
Default workflow
- Identify the package and release target.
- Verify remote default branch / release branch state.
- Verify version, changelog / release-notes inputs, npm availability, release channel, CI, and working tree safety.
- Run local release checks.
- Generate or confirm release notes.
- Publish to npm with the intended dist-tag/channel.
- Verify published version and dist-tags.
- Create and push git tag.
- Create GitHub Release if requested.
- Close or comment on related release issues/epics if requested.
- Report final state, including any partial-success cleanup needed.
Release-readiness checklist
Check these before publishing:
package.jsonexists and containsnameandversion.- The intended release version is already committed on the branch you plan to release from.
- The working tree is clean, unless the user explicitly wants a different flow.
- The local branch matches the intended remote branch tip.
- Relevant PRs are merged.
- Relevant CI checks are green.
- The intended npm release channel is clear (
latest,next, or another tag). - Set
<channel>to the intended npm release tag (latest,next, or another tag) and verify the target channel does not already point at the release version by checkingnpm view <package-name>@<channel> versionornpm view <package-name> dist-tags.<channel>. - If a changelog or release notes process exists, confirm the new version is documented or draftable from merged PRs.
- If
prepublishOnlyexists, treat it as a final guardrail, not a substitute for proactive verification.
If any of the above is unclear, ask the smallest clarifying question needed.
Core commands
Use the package's actual scripts and metadata; do not assume every repo has the same tooling.
Inspect package metadata
jq '{name,version,scripts,files,publishConfig}' package.jsonCheck git state
git status --short --branch
git fetch --tags origin
git rev-parse HEAD
git rev-parse origin/<default-branch>Check npm auth, remote version, and dist-tags
npm whoami
npm view <package-name> versions --json
npm dist-tag ls <package-name>
npm view <package-name>@<channel> version
# or
npm view <package-name> dist-tags.<channel>Set <channel> to the intended release tag such as latest, next, or a custom tag before using the channel-specific checks above.
Run prepublish verification
Preferred baseline for npm repos:
npm run build
npm test
npm pack --dry-runAlso inspect package contents when npm pack --dry-run prints the tarball file list. Confirm the built output and only intended files are included.
Publish
For the default stable channel:
npm publishFor an explicit release channel/tag:
npm publish --tag <dist-tag>Use a non-latest tag such as next for prereleases, staged rollouts, or any release that should not become the default install target.
Then verify both version visibility and tag assignment:
npm view <package-name> version
npm dist-tag ls <package-name>
npm view <package-name>@<dist-tag> versionTag and push
Use semantic tags unless the repo uses another convention.
git tag -a v<version> -m "release: v<version>"
git push origin v<version>GitHub follow-up
Examples:
gh release create v<version> --repo <owner/repo> --title "v<version>" --notes-file <notes-file>
gh issue close <number> --repo <owner/repo> --comment "Released in <package-name>@<version>."Decision rules
When to stop before publish
Stop and report instead of publishing when:
- local version does not match the intended release version
- target version is already on npm for the intended channel
- working tree is dirty in a way that changes release output
- branch is behind remote release branch
- required CI is failing or missing
npm run build,npm test, ornpm pack --dry-runfails- package contents look wrong or incomplete
- npm auth is missing
When partial success happens
Treat these as separate states and report them explicitly:
- Publish succeeded, tag not pushed
- Publish succeeded, GitHub Release not created
- Tag pushed, issue/epic still open
- GitHub Release created, npm publish failed
For each partial-success state, report:
- what succeeded
- what failed
- whether users can already install the release
- the exact next repair step
Package-content validation
During npm pack --dry-run, verify at least:
- built artifacts expected by the package are present
- tests, fixtures, secrets, local scratch files, and unrelated source files are not accidentally included unless intentionally published
- README/LICENSE and other required metadata files are present when expected
- tarball name and version match
package.json
If the repo uses files, .npmignore, or publishConfig, inspect them when package contents look surprising.
Release-notes guidance
Generate release notes before creating a GitHub Release or final release announcement.
Preferred source order:
CHANGELOG.mdentry for the target version- merged PR titles/descriptions since the previous tag
- issue/epic summary or explicit user-supplied notes
If CHANGELOG.md exists, prefer its version-specific entry as the canonical notes source. If it does not exist or is incomplete, synthesize concise notes from merged PRs and call out that the notes were generated from Git history / PR metadata.
Suggested release-notes template:
## <package-name> v<version>
### Highlights
- <most important user-visible change>
- <second important change>
- <third important change>
### Included changes
- PR #123 — <title>
- PR #124 — <title>
- <other merged change if no PR number is available>
### Notes
- Install: `npm install <package-name>@<version>`
- Channel: `<dist-tag>`
- Migration/compatibility: <none|brief note>Keep the notes factual and compact. Include only user-relevant changes, migration notes, and the actual install/package name when useful.
Dist-tags and release channels
Check release-channel intent before publishing.
Default guidance:
- use
latestfor the default stable release users should get fromnpm install <package-name> - use
next(or another explicit tag) for prereleases, canaries, beta lines, or staged rollouts - do not assume a prerelease semver automatically implies the correct dist-tag; verify the repo's intended channel
Before publish, check current tags:
npm dist-tag ls <package-name>After publish, verify that:
- the new version exists on npm
- the intended dist-tag points to that version
latestwas not moved unintentionally when publishing a non-stable release
If channel state looks wrong, stop and report the exact mismatch before doing follow-up steps such as GitHub Release creation or issue closure.
GitHub Release guidance
Create a GitHub Release only when the user asks for it or the repo's release flow clearly requires it.
Use the finalized release notes as the source of truth for the GitHub Release body.
Closing issues and epics
Do not assume every release should close issues automatically.
Before closing release-related issues/epics, confirm that:
- the code is merged to the intended branch
- the package is actually published
- the tag exists remotely
- any promised release artifact is complete
If closing an issue, leave a short comment stating the released package version.
Repo-specific inputs to gather when needed
Ask only if not already obvious from repo state:
- default branch name (
main,master, or another branch) - whether a GitHub Release is required
- which issue/epic should be closed
- whether release notes should come from
CHANGELOG.md, merged PRs, or custom text - whether the publish tag/channel (
latest,next, etc.) differs from default npm publish behavior
Output format
Report in this order:
- release-readiness verdict
- evidence
- actions taken
- resulting published version / tag / release links
- any remaining follow-up
Keep the report short and operational.
Common mistakes
- Publishing before checking whether the version already exists on npm.
- Assuming the default branch is
main. - Relying on
prepublishOnlyalone and skipping proactive checks. - Forgetting to inspect
npm pack --dry-runcontents. - Claiming release completion before verifying npm actually serves the new version.
- Treating publish, tag, GitHub Release, and epic closure as one atomic step.
- Closing issues before the package is publicly available.
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.

