npm-publish
npm Publish Preparation
Systematic workflow for preparing an npm package for a new release. Every step must pass before proceeding to the next.
Step 0: Gather Release Intent
Ask the user (use AskQuestion if available):
- Version bump type: patch / minor / major / explicit version / prerelease tag
- Prerelease label (if any): e.g.
alpha,beta,rc,prerelease - Confirm changelog entries: ask if the
[Unreleased]section in CHANGELOG is complete, or if the user wants to draft entries from recent commits
If the user already specified intent (e.g. "prepare 4.1.0 release"), skip the question and proceed.
Step 1: Pre-flight Checks
Run:
More from metarhia/metaskills
js-gof
Apply Gang of Four and related design patterns in JavaScript and TypeScript. Use when implementing creational, structural, or behavioral patterns, or when the user mentions factories, builder, prototype, flyweight, singleton, object pool, adapter, wrapper, decorator, proxy, bridge, composite, facade, chain of responsibility, command, interpreter, iterator, mediator, memento, EventEmitter, EventTarget, state, strategy, template method, visitor, revealing constructor, actor, service locator, or any other pattern.
13js-data-structures
Implement and use data structures in JavaScript. Use when working with arrays, sets, maps, other collections, queues, lists, trees, graphs, circular buffers, caches, or when the user mentions data structures, BTree, or choosing between Map/Object/Set/Array.
6js-conventions
Apply Metarhia JavaScript style. Use when writing or editing .js, .mjs, .ts files (with certain corrections for typescript), formatting code, or when the user asks about code style or linting.
5error-handling
Apply error handling and recovery patterns in JavaScript/TypeScript or Node.js. Use when implementing error handling, retry logic, or when the user mentions domain errors, error recovery, error escalation.
5