npm-package-dev — Claude Code skill for npm packages
The npm-package-dev Claude Code skill guides npm package creation and publishing. It activates for requests about package.json, the npm registry, or package release.
LicenseRef-Proprietary ★ 326 updated 2026-11-01
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill npm-package-dev -a claude-codeWhat npm-package-dev does
The skill walks through setting up an npm package, from its package.json and source files to tests and documentation. It covers package metadata, dependencies, versioning, and which files to include in a release. Publishing requires an npm account and a CLI session started with npm login.
It also outlines pre-release checks, a dry run with npm publish --dry-run, and publishing with npm publish. Lifecycle scripts such as preinstall and postinstall can run code on a user's machine, creating a supply-chain security concern. Security research is limited to authorized work.
What it helps with
- scaffold an npm package and configure its
package.json - prepare tests and documentation for a library
- inspect package contents before release
- choose version and publishing commands
Example prompts for the agent
- Create an npm package for this library and set up its
package.json. - Check which files will go into the npm release.
- Prepare this package for npm publishing and list the release commands.
How to install npm-package-dev
1Skills CLI (Vercel)
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill npm-package-dev -a claude-code2Manually: put the files in place
~/.claude/skills/npm-package-dev/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/npm-package-dev/
1Skills CLI (Vercel)
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill npm-package-dev -a codex2Manually: put the files in place
.agents/skills/npm-package-dev/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill npm-package-dev -a cursor2Manually: put the files in place
.cursor/skills/npm-package-dev/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install mrhlaingbwardev/agentic-hacking-skills skills/npm-package-dev2Manually: put the files in place
.github/skills/npm-package-dev/SKILL.md1Skills CLI (Vercel)
npx skills add mrhlaingbwardev/agentic-hacking-skills --skill npm-package-dev -a gemini-cli2Platform CLI
gemini skills install https://github.com/mrhlaingbwardev/agentic-hacking-skills --path skills/npm-package-devManually: put the files in place
.devin/skills/npm-package-dev/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about npm-package-dev
How do I install npm-package-dev in Claude Code?
Run npx skills add mrhlaingbwardev/agentic-hacking-skills --skill npm-package-dev -a claude-code. The skill file is at ~/.claude/skills/npm-package-dev/SKILL.md.
What does npm-package-dev do?
It guides package creation and release, including package.json settings, tests, documentation, and publishing commands.
What is needed to use npm-package-dev?
Publishing requires an npm account and a CLI login with npm login. The skill also covers a publication dry run using npm publish --dry-run.