NPM Publisher

## Overview

25 stars

Best use case

NPM Publisher is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

## Overview

Teams using NPM Publisher should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/npm-publisher/SKILL.md --create-dirs "https://raw.githubusercontent.com/ComeOnOliver/skillshub/main/skills/klaudworks/universal-skills/npm-publisher/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/npm-publisher/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How NPM Publisher Compares

Feature / AgentNPM PublisherStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

## Overview

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# NPM Publisher

## Overview

This skill provides a complete workflow for publishing npm packages with automated CI/CD. It handles version bumping, git tagging, and triggering automated npm publishing through GitHub Actions.

## Release Workflow

Follow this workflow when releasing a new version with unstaged changes:

### Step 1: Stage All Changes

Stage all pending changes:

```bash
git add .
```

### Step 2: Commit the Changes

Commit with a meaningful message describing what changed:

```bash
git commit -m "$(cat <<'EOF'
<Description of changes>

<Optional: more details>
EOF
)"
```

**Important:** Never add attributions to a coding agent in commit messages.

### Step 3: Determine Version Type

Ask the user which type of version bump is appropriate, or infer from the changes:

- **patch** - Bug fixes (3.0.2 → 3.0.3)
- **minor** - New features (3.0.3 → 3.1.0)
- **major** - Breaking changes (3.1.0 → 4.0.0)

If unclear, analyze the git diff to determine the appropriate version type based on:

- Bug fixes only → patch
- New features without breaking changes → minor
- Breaking changes or major refactors → major

### Step 4: Bump Version

Bump the version using npm:

```bash
npm version <patch|minor|major>
```

This command will:

- Increment the version in package.json
- Create a git commit with the version bump
- Create a git tag (e.g., v3.0.3)

### Step 5: Push Commits and Tags

Push both commits and tags to the remote repository:

```bash
git push && git push --tags
```

### Step 6: Verify Publishing

After pushing, publishing happens automatically through CI/CD:

1. GitHub Actions automatically publishes to npm when a new tag is pushed
2. Wait approximately 30 seconds for CI to complete
3. Verify the release succeeded:

```bash
gh run list --limit 1
```

### Step 7: Test the New Version

After CI completes successfully, verify the published version:

```bash
# Clear npx cache if needed
npx clear-npx-cache

# Test the new version (replace 'universal-skills' with the actual package name)
npx <package-name> --version
```

## Error Handling

### Common Issues

**Uncommitted changes error:**

- Ensure all changes are committed before running `npm version`
- Use `git status` to check for uncommitted changes

**Push rejected:**

- Pull latest changes with `git pull --rebase`
- Resolve any conflicts
- Retry the push

**CI/CD failure:**

- Check GitHub Actions logs: `gh run view --log`
- Common causes: failing tests, missing credentials, npm registry issues
- Fix the issue and create a new patch release if needed

**Version already exists:**

- Check if the version was already published: `npm view <package-name> versions`
- Bump to the next version if needed

## Best Practices

1. **Always review changes** before publishing with `git status` and `git diff`
2. **Run tests** before publishing to catch issues early
3. **Write meaningful commit messages** that explain the "why" not just the "what"
4. **Use semantic versioning** consistently to manage user expectations
5. **Verify the release** by testing the published package

## Pre-Release Checklist

Before starting the release workflow, ensure:

- [ ] All tests pass
- [ ] Build succeeds without errors
- [ ] Breaking changes are documented
- [ ] Dependencies are up to date
- [ ] No sensitive information in commits

Related Skills

x-article-publisher

25
from ComeOnOliver/skillshub

Publish Markdown articles to X (Twitter) Articles editor with proper formatting. Use when user wants to publish a Markdown file/URL to X Articles, or mentions "publish to X", "post article to Twitter", "X article", or wants help with X Premium article publishing. Handles cover image upload and converts Markdown to rich text automatically.

skill-marketplace-publisher

25
from ComeOnOliver/skillshub

Publish a Codex or Claude skill to Skillstore, SkillMap, or similar public skill marketplaces. Use when you need to audit a skill for public safety, build a public package, create a public GitHub repo, or submit a repo URL to marketplace intake endpoints.

x-article-publisher-skill

25
from ComeOnOliver/skillshub

Publish articles to X/Twitter

Daily Logs

25
from ComeOnOliver/skillshub

Record the user's daily activities, progress, decisions, and learnings in a structured, chronological format.

Socratic Method: The Dialectic Engine

25
from ComeOnOliver/skillshub

This skill transforms Claude into a Socratic agent — a cognitive partner who guides

Sokratische Methode: Die Dialektik-Maschine

25
from ComeOnOliver/skillshub

Dieser Skill verwandelt Claude in einen sokratischen Agenten — einen kognitiven Partner, der Nutzende durch systematisches Fragen zur Wissensentdeckung führt, anstatt direkt zu instruieren.

College Football Data (CFB)

25
from ComeOnOliver/skillshub

Before writing queries, consult `references/api-reference.md` for endpoints, conference IDs, team IDs, and data shapes.

College Basketball Data (CBB)

25
from ComeOnOliver/skillshub

Before writing queries, consult `references/api-reference.md` for endpoints, conference IDs, team IDs, and data shapes.

Betting Analysis

25
from ComeOnOliver/skillshub

Before writing queries, consult `references/api-reference.md` for odds formats, command parameters, and key concepts.

Research Proposal Generator

25
from ComeOnOliver/skillshub

Generate high-quality academic research proposals for PhD applications following Nature Reviews-style academic writing conventions.

Paper Slide Deck Generator

25
from ComeOnOliver/skillshub

Transform academic papers and content into professional slide deck images with automatic figure extraction.

Medical Imaging AI Literature Review Skill

25
from ComeOnOliver/skillshub

Write comprehensive literature reviews following a systematic 7-phase workflow.