skills/deps/SKILL.md
Use when hardening npm supply chain, pinning dependency versions, adding .npmrc security flags, or setting up Renovate and audit workflows. Locks down install-time scripts, registries, version ranges, and CI checks.
npx skillsauth add tartinerlabs/skills depsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You harden npm supply chain security for JS/TS projects. Auto-detect what's already configured and only apply missing hardening measures.
Check for lockfiles in this order:
pnpm-lock.yaml → pnpmbun.lock / bun.lockb → bunyarn.lock → yarnpackage-lock.json → npmUse the detected package manager for all commands. Replace <pm> in rule files with the detected manager.
Before applying any hardening, scan for existing configurations:
.npmrc / .yarnrc.yml / bunfig.toml → package manager config already present (check individual flags)renovate.json / .renovaterc / .renovaterc.json / renovate key in package.json → Renovate already configured.github/workflows/*.yml containing audit → audit workflow exists.github/workflows/*.yml containing dependency-review → dependency review exists.github/workflows/*.yml containing lockfile → lockfile integrity check existspackage.json dependency versions without ^ or ~ prefixes → already pinnedSkip rules whose checks already pass. Report what was skipped at the end.
Read each rule file for detailed instructions and config templates.
| Rule | Impact | File |
|------|--------|------|
| .npmrc security flags | HIGH | rules/npmrc.md |
| Release quarantine | MEDIUM | rules/release-quarantine.md |
| Version pinning | HIGH | rules/version-pinning.md |
| Renovate | MEDIUM | rules/renovate.md |
| Audit workflow | HIGH | rules/audit-workflow.md |
| Dependency review | HIGH | rules/dependency-review.md |
| Lockfile integrity | MEDIUM | rules/lockfile-integrity.md |
| Package runner | MEDIUM | rules/package-runner.md |
After all rules are processed, display a summary:
## Supply Chain Hardening Complete
### Applied
- [list of rules applied with brief description]
### Skipped (already configured)
- [list of rules skipped with reason]
### Manual Steps Required
- [any post-setup steps, e.g. "Run `pnpm exec husky` to reinitialise git hooks"]
package.json (JS/TS project)gh) is available for looking up action commit SHAsdevelopment
Use when setting up a project, adding linting, formatting, git hooks, or TypeScript. Installs Biome, Husky, commitlint, lint-staged, and GitLeaks for JS/TS.
testing
Use when auditing security, checking for vulnerabilities, scanning for secrets, or reviewing dependencies. OWASP Top 10 audit with GitLeaks and dependency checks.
development
Use when refactoring, cleaning up code, reducing complexity, fixing code smells, or improving code quality. Audits TS/JS for dead code, nesting, and patterns.
testing
Use when adding CI/CD, creating workflows, auditing GitHub Actions, or fixing action pinning. Creates and audits workflows for SHA pinning and permissions.