skills/local/cali-ops-package-audit/SKILL.md
Run supply chain security scans before installing packages or before releases. Triggers when: user installs a package (npm, pip, go get, brew), user asks to 'scan dependencies', 'check vulnerabilities', 'supply chain', 'security audit', 'run trivy', 'run socket', or before any release/deployment. Also triggers on mentions of: socket.dev, trivy, OSV-scanner, dotenvx, CVE, dependency audit. Covers all four tools with concrete commands.
npx skillsauth add renatocaliari/agent-sync-public-skills cali-ops-package-auditInstall 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.
Run before installing any package. Run again before every release.
| Tool | Purpose | When |
|------|---------|------|
| Socket.dev | Behavioral malware scanning | Before npm install, pip install |
| Trivy | CVE + IaC + secrets | Before releases, full audits |
| OSV-Scanner | Precision CVE (commit-hash) | When Trivy has false positives |
| dotenvx | Encrypted env vars | When managing .env files |
Detects obfuscated code, network access in install scripts, typosquatting.
# Session setup (run once per session)
socket wrapper on
# CI gate — blocks on malicious packages
socket ci
# Manual scan with report
socket scan create --report
When to run:
npm install or pip install in any projectScans dependencies, infrastructure-as-code, secrets, containers. No account needed.
# Quick scan — high and critical only
trivy fs --severity HIGH,CRITICAL --exit-code 1 .
# Full scan with all detectors
trivy fs --scanners vuln,secret,config --severity HIGH,CRITICAL .
# Scan specific path
trivy fs --severity HIGH,CRITICAL ./package.json
When to run:
Google scanner — commit-hash matching for fewer false positives than Trivy.
# Scan project
osv-scanner scan -r .
# Guided remediation
osv-scanner fix -M package.json -L package-lock.json
When to run:
# Inject envs from .env into command
dotenvx run -- <command>
# Set a value
dotenvx set KEY value
# Encrypt .env file (for safe commit)
dotenvx encrypt
# Decrypt .env file
dotenvx decrypt
When to run:
.env with secretsInput: "I'm about to install stripe as a dependency"
Steps:
socket wrapper onnpm install stripeOutput: "Socket scanned stripe — 0 issues found. Safe to use."
Input: "We're about to release v0.3.0, run security checks"
Steps:
trivy fs --severity HIGH,CRITICAL --exit-code 1 .osv-scanner scan -r . to verifyOutput: "Trivy found 0 HIGH/CRITICAL CVEs. Release is safe."
Input: "Trivy flagged a CVE in lodash but I think it's a false positive"
Steps:
osv-scanner scan -r . for commit-hash precisionOutput: "OSV-Scanner confirms false positive — your lodash version is not affected."
which socket / which trivy / which osv-scannerbrew install <tool> or skip with user consent.socketrc.json ignore listnpm install (or equivalent) first, then scanreferences/socket-setup.md — Socket.dev detailed setup and CI integrationreferences/trivy-recipes.md — Trivy scan recipes for different stackstools
Auto-initialize structured documentation for any project using lat.md (knowledge graph of markdown files with [[wiki links]], // @lat: code refs, and semantic search). Detects cali-product-workflow artifacts (spec-product.md, spec-tech.md, critiques) and uses them as seed material. Falls back to extracting business rules, architecture, and design decisions directly from the codebase. Use when a project lacks structured documentation or when lat.md/ is missing. After seeding, lat.md extension hooks keep documentation alive automatically.
testing
[Cali] Server security audit and hardening for private servers behind Tailscale. Use when: auditing server security, hardening SSH/firewall/Docker, checking for vulnerabilities, setting up fail2ban, reviewing port exposure, or responding to security alerts. Covers 6 layers: CloudFlare, UFW, Tailscale, SSH, Docker, Application. Triggers: "server security", "security audit", "harden server", "SSH hardening", "firewall rules", "UFW config", "fail2ban", "port security", "Docker security", "vulnerability check", "security review".
tools
Create GitHub releases following project conventions. Triggers when: user says 'release', 'create release', 'push release', 'deploy to main', 'merge to main', user merges a PR to main, or when git push to main is detected. Also triggers on mentions of: gh release, semver, version bump, changelog, release-please. Covers: config-driven (read .release.yml and execute) and fallback (gh CLI) release flows, versioning rules, tag management, and the mandatory release-on-merge convention.
tools
[Cali] - INTERACTIVE SKILL: Discover servers from ~/.ssh/config, auto-detect hosts (filtering out non-server entries like github.com), prompt user to pick one via question tool, then SSH into the chosen server and render a real-time ASCII dashboard with Docker containers, images, volumes, routes, cron, orphaned resources, and cleanup suggestions. REQUIRES question tool, SSH config parsing, and shell execution.