agentsclimarketplace

Dependency security

Skill hereshecodes/secureskills/skills/dependency-security

Security skills for AI coding agents. Install once, write secure code every time.

Install
npx -y skills add hereshecodes/secureskills --skill dependency-security

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when adding packages, updating dependencies, or reviewing lock files

SKILL.md

3.1 KB, as published. Nobody here has run it

Dependency Security

Every package you install is code you didn't write running in your application. Audit before you add. Update regularly.

Related: secrets-management, security-context

Rule 1: Audit Before You Install

Check download count, maintenance status, and known vulnerabilities before adding a dependency.

# WRONG — install without checking
npm install random-helper-lib

# RIGHT — check first
# 1. Does it have recent commits? (Abandoned packages don't get security patches)
# 2. Does it have known vulnerabilities? (npm audit, snyk, socket.dev)
# 3. Is the download count reasonable? (Very low = untested. Very high = high-value target)
# 4. Does it need to be a dependency? (Can you write 10 lines instead?)
npm info random-helper-lib
npm audit
npm install random-helper-lib

Rule 2: Pin Major Versions

Prevent unexpected breaking changes and supply chain attacks via compromised minor/patch releases.

// WRONG — accepts any compatible version (risky)
"dependencies": {
  "express": "^4.18.0"
}

// RIGHT — pin to specific version
"dependencies": {
  "express": "4.18.2"
}
# WRONG — unpinned
requests

# RIGHT — pinned
requests==2.31.0

Rule 3: Run Vulnerability Scans Regularly

Don't wait for a breach to find out your dependencies are vulnerable.

# JavaScript
npm audit
npx snyk test

# Python
pip-audit
safety check

# .NET
dotnet list package --vulnerable

# Ruby
bundle audit check

# Go
govulncheck ./...

Rule 4: Keep Lock Files Committed

Lock files ensure everyone uses the exact same dependency versions. Never .gitignore them.

# WRONG — ignoring lock files
package-lock.json
yarn.lock

# RIGHT — lock files MUST be committed
# (Don't add them to .gitignore)

Rule 5: Remove Unused Dependencies

Every dependency is attack surface. If you're not using it, remove it.

# Find unused packages
npx depcheck

# Python
pip-extra-reqs --requirements-file requirements.txt .

# Then remove them
npm uninstall unused-package

Rule 6: Watch for Typosquatting

Attackers publish malicious packages with names similar to popular ones.

# WRONG — typo installs malicious package
npm install expres      # missing 's'
npm install lodahs      # transposed letters
pip install reqeusts    # typo

# RIGHT — double-check the package name
npm install express     # correct
pip install requests    # correct

Quick Reference

DoDon't
Audit packages before installingBlindly install dependencies
Pin major versions in productionUse ^ or ~ ranges for critical deps
Run npm audit / pip-audit regularlyWait for incidents to check vulnerabilities
Commit lock filesGitignore package-lock.json or yarn.lock
Remove unused dependenciesKeep packages "just in case"
Verify package names carefullyRush through install commands
Prefer well-maintained packagesUse abandoned or unmaintained libraries

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.