Skip to content
dev-swarm-npm-publish logo

AI Builder - NPM Publish

dev-swarm-npm-publish

Publish JavaScript/TypeScript packages to the npm registry with consistent metadata, versioning, and release checks. Use when preparing or executing an npm release.

SKILL.md

Full skill instructions

AI Builder - NPM Publish

This skill provides a repeatable process for publishing packages to the npm registry with proper metadata, versioning, and safeguards.

When to Use This Skill

  • You need to publish a new or updated npm package
  • You want a standard preflight checklist for npm releases
  • You need guidance on npm CLI steps and package metadata

Your Roles in This Skill

  • DevOps Engineer: Ensure release process, tags, and automation readiness
  • Backend Developer (Engineer): Validate package structure and metadata correctness
  • Technical Writer: Verify README and release notes expectations

Role Communication

As an expert in your assigned roles, you must announce your actions before performing them using the following format:

As a {Role, and Role-XYZ if have more roles}, I will {action description}

This communication pattern ensures transparency and allows for human-in-the-loop oversight at key decision points.

Instructions

Follow these steps in order:

Step 1: Confirm prerequisites and access

  • Verify required tools are installed and versions are visible.
  • Ensure npm account access works from the CLI.
  • If missing prerequisites, stop and resolve before continuing.

Step 2: Validate package metadata and repository links

  • Confirm package.json includes required fields and correct naming.
  • Ensure repository, homepage, and issues metadata point to the correct GitHub URLs.
  • Ensure README exists and meets the minimum content expectation.

Step 3: Control published files

  • Use the files field or .npmignore to exclude non-release content.
  • Double-check the package tarball content before publishing.

Step 4: Apply semantic versioning

  • Choose patch/​minor/​major based on the change impact.
  • Use npm version to update metadata and create the git tag.
  • Ensure the branch matches the expected release branch.

Step 5: Publish to npm

  • Run a dry run with npm pack.
  • Publish with correct access flags (especially for scoped packages).
  • Verify the published package is visible on npm.

Step 6: Post-publish management

  • Add owners or deprecate as needed.
  • Handle unpublish within the allowed window if necessary.

Expected Output

  • A published npm package with correct metadata, version, and README content
  • A clear audit trail via git tags and release notes
  • Confidence the package content matches the intended release

Key Principles

  • Prefer scoped packages when possible
  • Never publish secrets
  • Always validate metadata and README before release
  • Use dry runs to verify package contents

Common Issues

  • 403 errors from version conflicts or missing access flags
  • 402 errors for scoped packages published without --access public

References

  • For detailed commands, checks, and error handling, see references/​npm-publish.md

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View