npmjs
npm package maintenance and lifecycle management for monorepo extensions.
Skill by espennilsen
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/espennilsen-npmjs
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 26, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/npmjs
What's inside
- Skill name
npmjs- Description
- npm package maintenance and lifecycle management for monorepo extensions. Covers health audits, dependency sync, version bumping, changelog updates, pre-publish checks, coordinated publishing, and post-publish verification. **Triggers — use this skill when:** - User asks to "publish", "release", or "version bump" extensions/packages - User says "audit packages", "check package health", "dependency sync" - User asks to "update changelogs", "prepare release", "pre-publish check" - User mentions "npm publish", "version management", "package lifecycle" - User wants to "sync dependencies" or "align versions" across packages - User asks "what needs publishing" or "which packages changed" **Covers:** Monorepo with multiple npm packages under `extensions/`. Each package has its own package.json, CHANGELOG.md, README.md, and version. Packages are scoped (e.g. `@e9n/pi-*`) and published individually.
- License
- MIT
- Instructions
- 422 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# npmjs — Package Maintenance & Lifecycle Management
Manage npm packages in a monorepo: audit health, sync dependencies, bump versions,
update changelogs, run pre-publish checks, and coordinate publishing.
---
## Commands Reference
### Health & Audit
```bash
# List all extension packages with versions and private status
for ext in extensions/pi-*/; do
name=$(basename "$ext")
pkg=$(cat "$ext/package.json")
version=$(echo "$pkg" | jq -r '.version')
private=$(echo "$pkg" | jq -r '.private // false')
echo "$name@$version (private: $private)"
done
# Check what's published vs local
for ext in extensions/pi-*/; do
local_name=$(cat "$ext/package.json" | jq -r '.name')
local_ver=$(cat "$ext/package.json" | jq -r '.version')
private=$(cat "$ext/package.json" | jq -r '.private // false')
[ "$private" = "true" ] && continue
remote_ver=$(npm view "$local_name" version 2>/dev/null || echo "not published")
status="✅"
[ "$local_ver" != "$remote_ver" ] && status="⚠️ local=$local_ver npm=$remote_ver"
echo "$local_name $status"
done
# Full dependency audit
for ext in extensions/pi-*/; do
name=$(basename "$ext")
# Check for missing imports (imported but not declared)
imports=$(grep -rh "from ['\"]@" "$ext/src/" 2>/dev/null | sed "s/.*from ['\"]//;s/['\"].*//" | grep "^@" | sort -u)
for imp in $imports; do
in_deps=$(cat "$ext/package.json" | jq -r --arg p "$imp" '(.dependencies // {})[$p] // (.peerDependencies // {})[$p] // empty')
[ -z "$in_deps" ] && echo "MISSING: $name imports $imp"
done
# Check for unused deps (declared but not imported)
deps=$(cat "$ext/package.json" | jq -r '.dependencies // {} | keys[]' 2>/dev/null)
for dep in $deps; do
grep -rq "from ['\"]$dep\|require(['\"]$dep\|import(['\"]$dep" "$ext/src/" 2>/dev/null || \
echo "UNUSED: $name has $dep in dependencies"
done
done
# Check for phantom peer deps
for ext in extensions/pi-*/; do
name=$(basename "$ext")
peers=$(cat "$ext/package.json" | jq -r '.peerDependencies // {} | keys[]' 2>/dev/null)
for peer in $peers; do
grep -rq "from ['\"]$peer" "$ext/src/" 2>/dev/null || \
echo "PHANTOM PEER: $name declares $peer but never imports it"
done
done
# Shared dependency version consistency
echo "=== Dependency Version Report ==="
for ext in extensions/pi-*/; do
cat "$ext/package.json" | jq -r --arg ext "$(basename "$ext")" \
'.dependencies // {} | to_entries[] | "\(.key) \(.value) \($ext)"'
done | sort | awk '{
key=$1; ver=$2; ext=$3
if (key != prev) { if (prev && count > 1 && versions > 1) print ""; prev=key; count=0; versions=0; delete seen }
if (!seen[ver]) { seen[ver]=1; versions++ }
count++
print " " ext ": " key "@" ver
}'
```
### Detecting Changed Packages
```bash
# Find extensions with changes since last publish (compare to npm registry)
for ext in extensions/pi-*/; do
name=$(cat "$ext/package.json" | jq -r '.name')
private=$(cat "$ext/package.json" | jq -r '.private // false')
[ "$private" = "true" ] && continue
version=$(cat "$ext/package.json" | jq -r '.version')
# Check git diff since last tag or version bump
last_tag=$(git tag -l "${name}@*" --sort=-creatordate | head -1)
if [ -z "$last_tag" ]; then
echo "NEW: $name@$version (never tagged)"
else
changes=$(git diff --name-only "$last_tag" -- "$ext" 2>/dev/null | grep -v 'CHANGELOG\|README\|AGENTS' | head -5)
[ -n "$changes" ] && echo "CHANGED: $name ($last_tag → now)" && echo "$changes" | sed 's/^/ /'
fi
done
# Simpler: find extensions with uncommitted or recent source changes
for ext in extensions/pi-*/; do
name=$(basename "$ext")
# Check for source changes in last N commits
changes=$(git log --oneline -10 -- "$ext/src/" | head -5)
[ -n "$changes" ] && echo "$name:" && echo "$changes" | sed 's/^/ /'
done
```
---
## Lifecycle Operations
### 1. Pre-publish Checks
Run these before every publish. All must pass.
```bash
EXTENSION="pi-example" # Set target
# 1. TypeScript check
cd "extensions/$EXTENSION" && npx tsc --noEmit
# 2. Required files exist
for f in README.md CHANGELOG.md package.json .npmignore; do
[ -f "extensions/$EXTENSION/$f" ] || echo "MISSING: $f"From espennilsen/pi, MIT.
More from espennilsen/pi
- 0.739score
herdr-setup
espennilsen
Use when installing, updating, configuring, or troubleshooting Herdr, including missing commands, PATH errors, version differences, or Pi integration setup.
SkillBFreshness: B★ 122Claude Code +9 - 0.739score
herdr-operations
espennilsen
Use when inspecting or operating Herdr sessions, workspaces, tabs, panes, agents, terminal output, agent messaging, or waits.
SkillBFreshness: B★ 122Claude Code +9 - 0.729score
cmux
espennilsen
Orchestrate cmux terminal panes — split terminals, run parallel processes, read output from other panes, and use the built-in browser.
SkillBFreshness: B★ 122Claude Code +9 - 0.726score
pi-subagent
espennilsen
Delegate tasks to specialized subagents for parallel or sequential execution.
SkillBFreshness: B★ 122Claude Code +9 - 0.681score
github
espennilsen
Interact with GitHub repos, PRs, issues, CI, and notifications via the pi-github extension commands and gh CLI.
SkillCFreshness: C★ 122Claude Code +9 - 0.676score
docstring-generator
espennilsen
Generate and update language-idiomatic doc comments for TypeScript (TSDoc/JSDoc) and Rust (Rustdoc).
SkillCFreshness: C★ 122Claude Code +9 - 0.671score
comfyui-node-update
espennilsen
Write and improve documentation for ComfyUI nodes in per-node JSON files.
SkillCFreshness: C★ 122Claude Code +9 - 0.607score
dry-code-review
espennilsen
Perform a comprehensive DRY (Don't Repeat Yourself) code review on a codebase.
SkillDFreshness: D★ 122Claude Code +9 - 0.607score
pdf-reader
espennilsen
Read and extract content from PDF files — text, tables, metadata, and images.
SkillDFreshness: D★ 122Claude Code +9 - 0.607score
extract-design-system
espennilsen
Reverse-engineer a design system from a live website (public URL or localhost).
SkillDFreshness: D★ 122Claude Code +9 - 0.607score
codebase-docs
espennilsen
Generate and maintain AI-readable markdown documentation for a codebase in docs/.
SkillDFreshness: D★ 122Claude Code +9 - 0.607score
google-workspace
espennilsen
Manage Google Workspace via the gws CLI — Drive, Gmail, Sheets, Docs, Slides, People, Chat, Meet, Forms, and cross-service workflows.
SkillDFreshness: D★ 122Claude Code +9
Signals
- Stars
- 122
- Forks
- 13
- Open issues
- 1
- Last commit (this folder)
- Feb 17, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/espennilsen/pi
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from espennilsen
- 0.739score
herdr-setup
espennilsen
Use when installing, updating, configuring, or troubleshooting Herdr, including missing commands, PATH errors, version differences, or Pi integration setup.
SkillBFreshness: B★ 122Claude Code +9 - 0.739score
herdr-operations
espennilsen
Use when inspecting or operating Herdr sessions, workspaces, tabs, panes, agents, terminal output, agent messaging, or waits.
SkillBFreshness: B★ 122Claude Code +9 - 0.729score
cmux
espennilsen
Orchestrate cmux terminal panes — split terminals, run parallel processes, read output from other panes, and use the built-in browser.
SkillBFreshness: B★ 122Claude Code +9 - 0.726score
pi-subagent
espennilsen
Delegate tasks to specialized subagents for parallel or sequential execution.
SkillBFreshness: B★ 122Claude Code +9 - 0.681score
github
espennilsen
Interact with GitHub repos, PRs, issues, CI, and notifications via the pi-github extension commands and gh CLI.
SkillCFreshness: C★ 122Claude Code +9 - 0.676score
docstring-generator
espennilsen
Generate and update language-idiomatic doc comments for TypeScript (TSDoc/JSDoc) and Rust (Rustdoc).
SkillCFreshness: C★ 122Claude Code +9
Cite this page
npmjs skill. Agent Mart. https://agentmart.dev/skills/espennilsen-npmjs (last updated 2026-10-24)