| name | omcustomcodex:npm-publish |
| description | Publish package to npm registry with pre-checks |
| scope | package |
| argument-hint | [--tag <tag>] [--dry-run] |
| disable-model-invocation | false |
| 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
npm-publish
npm-publish --tag beta
npm-publish --dry-run