Skip to content
Back to skills

Npm Publish

ASecurity

Publish package to npm registry with pre-checks

  • 43 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
testingbash

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add baekenough/oh-my-customcode --skill npm-publish --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Npm Publish?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Npm Publish
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/baekenough-npm-publish/badge)](https://www.skillsdirectory.com/skills/baekenough-npm-publish)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: omcustom:npm-publish
description: Publish package to npm registry with pre-checks
scope: package
argument-hint: "[--tag <tag>] [--dry-run]"
disable-model-invocation: true
user-invocable: true
---

# NPM Publish Skill

Publish package to npm registry with comprehensive pre-publish checks and validation.

## Options

```
--tag            npm dist-tag (default: latest)
--dry-run        Run all checks without publishing
--skip-tests     Skip test execution
```

## Workflow

```
1. Validate package.json configuration
2. Check version against registry
3. Run pre-publish checks (tests, lint, build)
4. Execute npm pack (dry-run)
5. Publish with appropriate tag
6. Verify publication success
```

## Output Format

### Success
```
[NPM Publish] package-name@1.2.3

Pre-checks: All passed
Registry: https://registry.npmjs.org
Tag: latest

Package published successfully.
```

### Failure
```
[NPM Publish] Failed

Error: {error_message}
Suggested fix: {fix_suggestion}
```

## Examples

```bash
# Publish to npm with all checks
npm-publish

# Publish to beta tag
npm-publish --tag beta

# Validate without publishing
npm-publish --dry-run
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.