npm-publish — automated package publishing npm-publish, duroxide-node, community, automated package publishing, ide skills, npm-publish install, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Ideal for Node.js Agents needing streamlined package publishing to npm. npm-publish is a skill that automates the publishing of packages to npm, following a pre-publish checklist that includes clean build, tests, and changelog updates

Features

Runs cargo clippy with zero warnings for clean build
Executes napi build with release flag for optimized package
Passes 52 tests via npm run test:all with DATABASE_URL in .env
Updates CHANGELOG.md with new version entries following Keep a Changelog guidelines
Supports pre-publish checklist for verification before release
Utilizes npx napi build for platform-specific release builds

# Core Topics

affandar affandar
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The npm-publish skill by affandar is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for automated package publishing, npm-publish install.

Ideal Agent Persona

Ideal for Node.js Agents needing streamlined package publishing to npm.

Core Value

Empowers agents to automate the publishing process for duroxide-node to npm, ensuring a clean build via Cargo and napi, passing tests with npm run test:all, and updated changelog in CHANGELOG.md, leveraging platforms like npm and utilizing tools such as Clippy for zero-warning builds.

Capabilities Granted for npm-publish

Automating package publishing to npm
Validating pre-publish checks for clean builds and passing tests
Updating changelogs for new versions

! Prerequisites & Limits

  • Requires npm and Cargo installation
  • Needs .env file with DATABASE_URL for testing
  • Specific to duroxide-node package
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

npm-publish

Install npm-publish, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Publishing duroxide-node to npm

Pre-Publish Checklist

Before publishing, verify ALL of the following:

1. Clean Build

bash
1cd duroxide-node 2 3# Clippy — must pass with zero warnings 4cargo clippy --all-targets 5 6# Release build via napi 7npx napi build --platform --release

2. Tests Pass

bash
1# All 52 tests must pass (requires DATABASE_URL in .env) 2npm run test:all

3. Changelog Updated

  • CHANGELOG.md must have an entry for the new version
  • Follow Keep a Changelog format
  • Include all Added/Changed/Fixed/Removed sections as applicable

4. README Points to Changelog

Verify README.md contains a link to CHANGELOG.md:

markdown
1> See [CHANGELOG.md](CHANGELOG.md) for release notes.

5. Version Bumped

Update version in package.json and all platform package.json files:

bash
1# Bump version (also updates npm/npm/*/package.json) 2npx napi version

Or manually update package.json version field and ensure optionalDependencies versions match.

Build Platform Binaries

Three platforms are supported:

darwin-arm64 (macOS Apple Silicon) — native build

bash
1npx napi build --platform --release 2cp duroxide.darwin-arm64.node npm/npm/darwin-arm64/

darwin-x64 (macOS Intel) — native cross-compile

bash
1rustup target add x86_64-apple-darwin # one-time 2npx napi build --platform --release --target x86_64-apple-darwin 3cp duroxide.darwin-x64.node npm/npm/darwin-x64/

linux-x64-gnu — Docker build

bash
1docker run --rm -v "$(pwd):/build" -w /build --platform linux/amd64 rust:latest bash -c " 2 curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && 3 apt-get install -y nodejs && 4 npm install && 5 npx napi build --platform --release --target x86_64-unknown-linux-gnu 6" 7cp duroxide.linux-x64-gnu.node npm/npm/linux-x64-gnu/

win32-x64-msvc (Windows) — Docker + cargo-xwin (optional)

Not currently built. Can be added with cargo-xwin in a Linux Docker container.

Publish Order

Platform packages MUST be published before the main package (npm resolves optionalDependencies at install time).

1. Publish platform packages

bash
1# Requires an npm Automation token (bypasses 2FA) 2AUTH="--//registry.npmjs.org/:_authToken=<TOKEN>" 3 4cd npm/npm/darwin-arm64 && npm publish --access public $AUTH && cd - 5cd npm/npm/darwin-x64 && npm publish --access public $AUTH && cd - 6cd npm/npm/linux-x64-gnu && npm publish --access public $AUTH && cd -

2. Publish main package

bash
1cd duroxide-node 2npm publish --access public $AUTH

The prepublishOnly script runs napi prepublish -t npm automatically, which verifies platform binaries exist.

3. Verify

bash
1# Test in a clean directory 2cd /tmp && mkdir test-duroxide && cd test-duroxide 3npm install duroxide 4node -e "const d = require('duroxide'); console.log('loaded:', Object.keys(d).slice(0,5))" 5rm -rf /tmp/test-duroxide

npm Authentication

  • Publishing requires an Automation token (bypasses 2FA)
  • Create at: https://www.npmjs.com/settings/<username>/tokens
  • Token type: Automation (not Granular, unless "bypass 2FA" is enabled)
  • Never commit tokens to source code

Version Cascade

When bumping versions, update optionalDependencies in the main package.json to match:

json
1"optionalDependencies": { 2 "duroxide-darwin-arm64": "<NEW_VERSION>", 3 "duroxide-darwin-x64": "<NEW_VERSION>", 4 "duroxide-linux-x64-gnu": "<NEW_VERSION>", 5 "duroxide-win32-x64-msvc": "<NEW_VERSION>" 6}

Summary Checklist

  • cargo clippy --all-targets — zero warnings
  • npx napi build --platform --release — clean build
  • npm run test:all — all tests pass
  • CHANGELOG.md — updated for new version
  • README.md — links to CHANGELOG.md
  • Version bumped in package.json + platform packages
  • Platform binaries built and copied to npm/npm/*/
  • Platform packages published first
  • Main package published
  • Verified with npm install duroxide in a clean directory

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is npm-publish?

Ideal for Node.js Agents needing streamlined package publishing to npm. npm-publish is a skill that automates the publishing of packages to npm, following a pre-publish checklist that includes clean build, tests, and changelog updates

How do I install npm-publish?

Run the command: npx killer-skills add affandar/duroxide-node/npm-publish. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for npm-publish?

Key use cases include: Automating package publishing to npm, Validating pre-publish checks for clean builds and passing tests, Updating changelogs for new versions.

Which IDEs are compatible with npm-publish?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for npm-publish?

Requires npm and Cargo installation. Needs .env file with DATABASE_URL for testing. Specific to duroxide-node package.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add affandar/duroxide-node/npm-publish. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use npm-publish immediately in the current project.

Related Skills

Looking for an alternative to npm-publish or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI