npm
Skill15 starsChanged 42 days agoMITView on GitHub
Expert npm package manager assistance covering package.json, lockfiles, workspaces (monorepos), scripts, and security audits. Use when managing JavaScript/Node.js dependencies and publishing packages.
- Installs packages
7 other projects use a version of this.
Adopted by
Most recently taken up by
- githubnext/rigtheir own version, first seen Nov 1, 2026
- DegreeSign/skillstheir own version, first seen Nov 1, 2026
- steipete/agent-scriptstheir own version, first seen Oct 20, 2026
- github/gh-awtheir own version, first seen Oct 13, 2026
- JakkuSakura/skillstheir own version, first seen Oct 11, 2026
- OpenHands/extensionstheir own version, first seen Oct 8, 2026
Used with
Projects with it also use frontend-design.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
BlockSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Also in 3 projects that use this
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- steipete/agent-scripts★ 7.4ksame name
- github/gh-aw★ 5.6ksame name
- OpenHands/extensions★ 167same name
- githubnext/rig★ 14same name
- NazmusSayad/skills★ 2same name
- DegreeSign/skills★ 1same name
- JakkuSakura/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 0 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 81
Use native npm workspaces in root package.json:
- Very specific: line 99
Always use npm ci in CI/CD pipelines instead of npm install to enforce exact lockfile dependencies.
- Very specific: line 101
Use overrides in root package.json to resolve security vulnerabilities in deep transitive dependencies.
- Very specific: line 102
Commit package-lock.json to version control in all projects.
- Very specific: line 106
Use npm install --force or --legacy-peer-deps in production builds.
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
npm
npm is the default package manager for Node.js, providing dependency resolution, workspace management, security auditing, and publishing workflows for JavaScript ecosystems.
When to Use
- JavaScript / TypeScript Package Management: Installing, publishing, and managing npm modules and dependencies.
- Multi-Package Monorepos (npm Workspaces): Coordinating interconnected local packages with unified dependency resolution.
- Supply Chain Security & Provenance: Publishing packages with cryptographically verifiable build provenance.
- Vulnerability Auditing & Dependency Overrides: Resolving transitively vulnerable packages using
overrides.
Quick Start
npm init -y
npm install lodash
npm install --save-dev jest
# Monorepo
npm init -w packages/my-libCore Concepts
Configuring npm Workspaces in Monorepos
Declaring multi-package structures in root package.json:
{
"name": "enterprise-monorepo",
"private": true,
"workspaces": ["packages/*", "apps/*"],
"scripts": {
"build": "npm run build --workspaces --if-present",
"test": "npm test --workspaces --if-present"
},
"overrides": {
"glob": "^10.4.0",
"semver": "^7.6.0"
}
}Clean Installations & Deterministic Lockfiles
Installing dependencies in continuous integration:
# Clean install adhering strictly to package-lock.json (never mutates lockfile)
npm ci
# Audit dependencies for known CVEs
npm audit --audit-level=high
# Run targeted script across all workspaces
npm run test --workspace=packages/core-utilsPublishing Packages with Cryptographic Provenance
Publishing to the npm registry with supply-chain verification:
# Publish package with Sigstore verifiable provenance
npm publish --access public --provenanceCommon Patterns
Monorepo Workspaces Configuration
Problem: Managing shared libraries across multiple internal packages without publishing to external registries.
Solution:
Use native npm workspaces in root package.json:
{
"name": "my-monorepo",
"private": true,
"workspaces": ["packages/*", "apps/*"],
"scripts": {
"build": "npm run build --workspaces --if-present",
"test": "npm test --workspaces"
}
}Best Practices
Do:
- Always use
npm ciin CI/CD pipelines instead ofnpm installto enforce exact lockfile dependencies. - Publish public packages with
--provenanceto establish cryptographic build transparency. - Use
overridesin rootpackage.jsonto resolve security vulnerabilities in deep transitive dependencies. - Commit
package-lock.jsonto version control in all projects.
Don't:
- Use
npm install --forceor--legacy-peer-depsin production builds; resolve peer version conflicts cleanly. - Publish packages containing sensitive files; maintain an explicit
.npmignoreor"files"whitelist. - Execute untrusted scripts during install without verifying packages (
npm install --ignore-scripts).
Troubleshooting
| Error | Cause | Solution |
npm ERR! code ERESOLVE: could not resolve dependency | Peer dependency version conflict. | Run npm install --legacy-peer-deps or align conflicting package versions. |
npm ERR! code EACCES: permission denied | Installing global packages without permissions on system node directory. | Configure user npm prefix: npm config set prefix ~/.npm-global. |
package-lock.json out of sync | Dependencies installed with different npm major versions. | Delete node_modules and run npm ci for strict deterministic installs. |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

