Skip to content
Skill Authoring
Skill

/npm

Manage npm packages — install, publish, version bump, audit, and run scripts using the npm tool.

BOOST
From plugin
pi
12238 skills5 agents
Install
$ npx -y skills add espennilsen/pi --skill npm --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/npm

Context preview

The summary Claude sees to decide when to auto-load this skill.

Manage npm packages — install, publish, version bump, audit, and run scripts using the npm tool.

SKILL.md

npm.SKILL.md
name: npm
description: Manage npm packages — install, publish, version bump, audit, and run scripts using the npm tool.

NPM Skill

Use the `npm` tool to manage Node.js packages and run npm workflows.

Common workflows

Install dependencies

npm tool: action=install
npm tool: action=install, args="express @types/express --save-dev"

Run scripts

npm tool: action=run, args="dev"
npm tool: action=test
npm tool: action=build

Publish a package

Always do a dry run first to verify what will be published:

npm tool: action=publish, dry_run=true

Then publish for real:

npm tool: action=publish
npm tool: action=publish, args="--tag beta"

Version bumps

Preview first, then apply:

npm tool: action=version, args="patch", dry_run=true
npm tool: action=version, args="minor"

Check for issues

npm tool: action=outdated
npm tool: action=audit
npm tool: action=audit, args="--fix"

Inspect packages

npm tool: action=info, args="react"
npm tool: action=list, args="--depth=0"

Guidelines

1. **Before publishing**, always read `package.json` to verify name, version, files, and registry config. 2. **Use `dry_run: true`** for publish, pack, and version to preview before committing. 3. **Check `npm outdated`** before updating to understand what will change. 4. **Run `npm audit`** after installing new dependencies. 5. When working in a monorepo, use the `path` parameter to target specific packages.

Read more
Ships withpi

This repository is my Pi coding agent home directory. I keep it under version control and symlink it to ~/.pi/agent so Pi loads configuration, extensions, skills, and runtime state from here.

Get the whole plugin

Other skills on pi.