Not loaded · from skills
Audits and hardens Node.js projects against npm supply chain attacks: compromised maintainers, malicious packages, and install-script payloads. Covers package.json, lockfiles, .npmrc, Dockerfile, and CI workflows.
Claude Code won't load this skill
It ships in skills at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Adapted from NPM Security Best Practices for Supply Chain Attacks by Localcan.
Defends against three concrete attack patterns: zero-day malicious publishes (a compromised maintainer pushes a backdoored version), install-script payloads (lifecycle scripts run arbitrary code on install), and resolution drift (npm install picks up a newer-than-locked version). Controls operate at three layers — resolution (versions entering the lockfile), installation (lifecycle scripts), and execution environment (what the build can reach).
npm-primary; pnpm and bun equivalents are noted inline. Full per-PM detail in REFERENCE.md.
Apply the 30-minute baseline:
Commit the lockfile (package-lock.json / pnpm-lock.yaml / bun.lock).
Add an install cooldown — min-release-age=1 in .npmrc (npm 11+), or minimumReleaseAge: 1 in pnpm-workspace.yaml (pnpm 10.16+). Bun has no native equivalent — this is a real gap, since bun install re-resolves locally and bypasses any PR-layer cooldown. Configure Dependabot or Renovate cooldown as a partial mitigation for the update-PR path.
In CI/Dockerfile, install with frozen lockfile and --ignore-scripts:
npm ci --ignore-scriptspnpm install --frozen-lockfile --ignore-scriptsbun install --frozen-lockfile --ignore-scriptsAllow-list required native modules with a follow-up npm rebuild <pkg> (e.g. sharp, better-sqlite3).
Digest-pin base images: FROM node:24-alpine@sha256:..., not FROM node:24-alpine.
Add an audit step to CI: npm audit --audit-level=high (or pnpm audit / bun audit).
Put package.json, the lockfile, .npmrc, and Dockerfile under CODEOWNERS with required review.
Run the audit script (lives at scripts/audit.sh in this skill directory) from the target project's root:
bash <path-to-this-skill>/scripts/audit.sh
It detects the package manager, checks each baseline item, and prints PASS/FAIL/WARN. Treat each FAIL as a TODO; WARN items need human judgment.
Walk the user through the 30-minute checklist in order. Two recurring gotchas:
--ignore-scripts belongs in CI commands, not project-level .npmrc. Local dev often needs install scripts to compile native modules.--ignore-scripts globally.If a malicious version may have been installed:
npm ci from there.npm ls <bad-pkg> shows every dependency path. For multi-repo orgs, search across all lockfiles.This skill covers the install side — protecting your project from compromised upstream packages. If the user is also publishing packages to npm, point them at the publishing-side controls (separate concern, not audited here):
npm publish --provenance) so consumers can verify the build origin.See REFERENCE.md for per-control rationale, per-PM syntax, and incident background.
What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/blueprintTurn a working session — the docs, issues, and half-formed ideas you've fed in, plus anything you point it at — into a spec and then a set of self-contained, executable implementation plans for OTHER models/agents to build. A senior architect that plans but never implements. Use when you have that context in hand and want it distilled into a PRD-style spec and broken into dependency-ordered, verifiable work items. Publishes to the repo's configured issue tracker or to markdown files./code-refactor-reviewReviews code changes for reuse, composition, codebase consistency, and slop. Use when asked to review PRs/diffs, check code reuse, composition, cleanliness, or whether code fits the codebase./goal-refinerUse when the user gives a rough idea, broad objective, unfinished `/goal`, plan, issue, visual target, optimization target, or research task and wants it refined into a concise Codex Goal contract with one durable objective, clear boundaries, realistic environment, measurable progress, evidence-based completion, checkpoints, cleanup, blockers, and an output strictly under the hard cap of 4,000 characters./html-toolsBuild single-file HTML tools — self-contained HTML+JS+CSS applications that solve a specific problem without a build step. Use this skill whenever the user asks to build a utility, converter, viewer, debugger, or any small interactive web tool. Also trigger when the user says "build me a tool that...", "make a quick app for...", "I need a single-file HTML page that...", or wants to create something that could be hosted as a static file. This skill is specifically for practical, utility-focused tools (not landing pages, portfolios, or marketing sites — use frontend-design for those)./ideationGuides structured ideation through Socratic questioning to explore problems, opportunities, and solutions. Use when brainstorming features, exploring use cases, or thinking through new ideas./implementation-guideGenerate comprehensive implementation guides for coding tasks instead of writing code directly. Use when the user requests detailed implementation documentation, step-by-step development guides, or when they want to implement features themselves using tools like Cursor. Creates exhaustive guides with background context, architecture decisions, milestones with verification points, and rationale for a "build-it-yourself" workflow.Generated from the plugin's indexed repository (nbbaier/agent-skills) — no native marketplace selected
npx claudepluginhub p/nbbaier-skillsOther plugins' skills for the same job