package-security-vetting
Skill1 starsChanged 47 days agoMITView on GitHub
Language-agnostic security protocol for auditing, vetting, installing, and managing third-party dependencies. Triggers whenever an agent is about to recommend, add, install, or audit a package ("add a dependency", "install this package", "is this npm package safe?", "check this library", "add to requirements.txt", "npm install", "pnpm add", "pip install", "uv add", "composer require", "go get", "cargo add", "bundle add"). Provides a fast-path audit for routine packages and a comprehensive deep-vetting checklist covering typosquatting, lifecycle scripts, license compliance, lockfile pinning, and supply-chain attack prevention.
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- jjromero88/jjromero-skills-devtheir own version, first seen Jul 27, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- jjromero88/jjromero-skills-dev★ 0same 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 repository15 other files it gives its agents.
- accessibility-auditSkill
- agent-skills-authoringSkill
- api-designSkill
- ci-cd-pipelineSkill
- code-reviewSkill
- design-system-adapterSkill
- docker-and-containersSkill
- docs-and-adrSkill
- git-commit-workflowSkill
- replicate-apiSkill
- secrets-and-config-managementSkill
- testing-strategySkill
- ui-cloneSkill
- ui-slop-remediationSkill
- universal-coding-standardsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 8 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 43
When adding well-known industry packages:
- Very specific: line 45
Audit Scan: Run the native vulnerability scanner (see references/ecosystem-commands.md):
- Distinctive: line 63
Check author credibility: Is it backed by a known organization or verified publisher?
- Distinctive: line 64
Verify download statistics and age: Packages under 60 days old with low download counts require extreme scrutiny.
- Distinctive: line 65
Verify official links: Ensure repository URL on GitHub/GitLab matches the author website, not an unlinked clone.
- Distinctive: line 67
When was the last release published?
- Distinctive: line 74
Verify package license (MIT, Apache-2.0, BSD-3-Clause, ISC).
- Very specific: line 78
Check package.json / setup.py / composer.json for automated lifecycle hooks (preinstall, postinstall, build.rs).
- Very specific: line 79
If install scripts make outbound network calls (curl, fetch) or execute shell binaries, inspect the source manually before proceeding.
- Very specific: line 83
Every project must maintain a committed lockfile (package-lock.json, pnpm-lock.yaml, uv.lock, poetry.lock, composer.lock, go.sum, …
- Very specific: line 84
Never: add lockfiles to .gitignore.
- Distinctive: line 90
Never disable checksum validation to bypass an installation error.
- Very specific: line 94
Never run sudo npm install, sudo pip install, or root package commands.
- Distinctive: line 96
When evaluating an unknown package, install with script execution disabled:
- Very specific: line 101
Never install from unpinned git branches (git+https://...#main), unverified personal forks, or HTTP tarball URLs when an official package …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Package Security Vetting
A language-agnostic operational standard for evaluating third-party dependencies before and after adding them to any project.
Sibling Standards:
- For general dependency hygiene, pair with
universal-coding-standards.- For committing lockfiles safely and reviewing staged diffs, pair with
git-commit-workflow.
Decision Flow: Fast-Path vs Deep-Check
Is the package a top-tier, industry-standard library
(e.g., React, Express, FastAPI, Pydantic, Gin, Serde)
with millions of weekly downloads and an established organization?
│
├── YES ──> Follow FAST-PATH (1. Verify name spelling -> 2. Run ecosystem audit -> 3. Commit lockfile)
│
└── NO ──> Follow FULL DEEP-CHECK PATH (All 4 phases below)⚡ The Fast-Path (Routine, Established Dependencies)
When adding well-known industry packages:
- Name Check: Confirm exact package spelling against official documentation (prevent typosquatting like
crossenvvscross-env). - Audit Scan: Run the native vulnerability scanner (see
references/ecosystem-commands.md):- Node:
npm auditorpnpm audit - Python:
uv auditorpip-audit - Go:
govulncheck ./... - PHP:
composer audit - Rust:
cargo audit
- Node:
- Commit Lockfile: Generate and stage the lockfile with pinned cryptographic hashes.
🛡️ Full Deep-Check Path (Unfamiliar, Low-Adoption, or High-Risk Packages)
1. Pre-Vetting (Before Recommending or Installing)
- 1.1 Justify the Need (Left-Pad Avoidance):
- Does the modern standard library already provide this? (e.g.
fetch(),crypto.randomUUID(),pathlib,json). - Does an already-installed dependency in the project already expose this functionality?
- Reject adding a 50-line package for a 3-line utility.
- Does the modern standard library already provide this? (e.g.
- 1.2 Verify Provenance & Typosquatting:
- Check author credibility: Is it backed by a known organization or verified publisher?
- Verify download statistics and age: Packages under 60 days old with low download counts require extreme scrutiny.
- Verify official links: Ensure repository URL on GitHub/GitLab matches the author website, not an unlinked clone.
- 1.3 Maintenance & Community Health:
- When was the last release published? (Flag packages abandoned > 2 years).
- Are open issues and PRs actively triaged?
- Is the repository officially archived or marked deprecated?
- 1.4 Vulnerability & Advisory Database Check:
- Query the exact target version against GitHub Advisory Database and OSV.dev.
- Confirm zero unpatched HIGH or CRITICAL CVEs exist for the specified version.
- 1.5 License Compatibility:
- Verify package license (MIT, Apache-2.0, BSD-3-Clause, ISC).
- Flag copyleft licenses (GPL, AGPL) in proprietary commercial codebases.
- Reject packages with non-commercial (Commons Clause) or custom restrictive licenses.
- 1.6 Inspect Code & Install Scripts:
- Check
package.json/setup.py/composer.jsonfor automated lifecycle hooks (preinstall,postinstall,build.rs). - If install scripts make outbound network calls (
curl,fetch) or execute shell binaries, inspect the source manually before proceeding.
- Check
2. Lockfile & Version Pinning Discipline
- 2.1 Lockfile Mandatory:
- Every project must maintain a committed lockfile (
package-lock.json,pnpm-lock.yaml,uv.lock,poetry.lock,composer.lock,go.sum,Cargo.lock). - Never add lockfiles to
.gitignore.
- Every project must maintain a committed lockfile (
- 2.2 Version Pinning Strategy:
- In applications / services: Pin exact versions (
1.4.2) or narrow tilde ranges (~1.4.2) to prevent unexpected upstream compromise. - In libraries: Use standard caret ranges (
^1.4.0) to avoid duplicate transitive dependencies for consumers, while locking test runs.
- In applications / services: Pin exact versions (
- 2.3 Cryptographic Integrity Enforcement:
- Enforce hash checks (npm
integritySHA-512, pip--require-hashes, Gogo.sum). - Never disable checksum validation to bypass an installation error.
- Enforce hash checks (npm
3. Safe Installation Execution
- 3.1 Never Install as Root:
- Never run
sudo npm install,sudo pip install, or root package commands.
- Never run
- 3.2 Restrict Lifecycle Scripts:
- When evaluating an unknown package, install with script execution disabled:
- Node:
pnpm add <pkg> --ignore-scripts - PHP:
composer require <pkg> --no-scripts - Python: Prefer pre-compiled binary wheels (
pip install --only-binary :all:) over raw source tarballs with untrustedsetup.py.
- Node:
- When evaluating an unknown package, install with script execution disabled:
- 3.3 Trusted Registries Only:
- Never install from unpinned git branches (
git+https://...#main), unverified personal forks, or HTTP tarball URLs when an official package exists on the canonical registry (npm, PyPI, Packagist, crates.io).
- Never install from unpinned git branches (
4. Post-Install & Ongoing Hygiene
- 4.1 Continuous CI Auditing:
- Integrate native audit commands (
npm audit,uv audit,govulncheck,composer audit) into CI pull request pipelines.
- Integrate native audit commands (
- 4.2 Dependency Confusion Defense:
- Scope all internal enterprise packages under an organization namespace (e.g.
@company/pkg). - Configure package managers to never query public registries for private scoped namespaces.
- Scope all internal enterprise packages under an organization namespace (e.g.
- 4.3 Monitor Ownership & Maintainer Changes:
- Be suspicious of sudden major releases on long-dormant packages or transfers to unknown maintainers (see
references/known-attack-patterns.md).
- Be suspicious of sudden major releases on long-dormant packages or transfers to unknown maintainers (see
- 4.4 Prune Unused Packages:
- Periodically clean stale dependencies (
npm prune,go mod tidy,composer install --prune). Unused packages remain attack surface.
- Periodically clean stale dependencies (
Reference Guides
references/ecosystem-commands.md: Canonical audit, lockfile verification, safe flags (--ignore-scripts), and pruning commands for npm, pnpm, yarn, pip, uv, poetry, Composer, Go, Cargo, Bundler, Maven, Gradle, and NuGet.references/known-attack-patterns.md: Real-world supply-chain attack analysis (typosquatting, dependency confusion, account takeover, malicious postinstall scripts, protestware) with historical case studies.
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.

