AI AGENT ADDONS

Npm Security Best Practices

aradotso/security-skills
Security
786installs

npm is a tool that lets you add code packages to your projects. However some packages can contain hidden dangerous code. This is called a supply chain attack. This guide helps you stop those attacks.

You will learn to change settings in npm, pnpm, and Bun. For example you can disable postinstall scripts that can run malicious commands. You can also block packages that are too new or come from git URLs. These steps make your project safer.

The guide also covers tools like @lavamoat/allow-scripts for fine control over which packages can run scripts. Following these best practices keeps your code and your users safe.

Add Npm Security Best Practices skill to your workflow

Global

mkdir -p ~/.claude/skills/npm-security-best-practices

Project

mkdir -p .claude/skills/npm-security-best-practices

Source Repository

Stars
5
Forks
0
Watchers
5
License
NOASSERTION
Last Push
24 days ago
Created
2 months ago