Agent skill
deps
Analyze dependencies for security vulnerabilities, outdated packages, and license compliance
Install this agent skill to your Project
npx add-skill https://github.com/thoreinstein/opencode-config/tree/main/skill/deps
SKILL.md
Dependency Analysis & Management
Current Time: !date
Go Version: !go version
Analyze project dependencies for security vulnerabilities, outdated packages, and license compliance. Documents findings to Obsidian.
Input
- Scope: full audit, security-only, updates-only, or licenses-only
- Optional: specific package to investigate
- Optional: target version constraints
Investigation Strategy
Launch parallel investigation tracks:
Track 1: Security Analysis
- Run
govulncheckfor Go vulnerabilities - Run
npm auditfor JavaScript vulnerabilities - Cross-reference with CVE databases
- Assess severity and exploitability
Track 2: Update Analysis
- Check for outdated direct dependencies
- Identify major version updates (breaking changes)
- Review changelogs for significant updates
- Assess update risk and effort
Track 3: External Research (librarian agent)
- Research CVE details and exploit availability
- Find migration guides for major updates
- Check for known issues with newer versions
- Identify deprecated packages needing replacement
Output
Write to Obsidian via obsidian_append_content at:
$OBSIDIAN_PATH/Dependencies/YYYY-MM-DD-audit.md
Note:
$OBSIDIAN_PATHmust be a vault-relative path (e.g.,Projects/myapp), set per-project via direnv. Theobsidian_append_contenttool expects paths relative to the vault root.
Document Structure
Use this template for the Obsidian document:
@~/.config/opencode/templates/deps-audit.md
Behavior
- Detect project type(s) from manifest files (go.mod, package.json)
- Run security scanners (govulncheck, npm audit)
- Analyze outdated dependencies and categorize by risk
- Check license compliance for all dependencies
- Launch librarian agent for CVE research on critical/high findings
- Generate prioritized action items
- Write audit report to Obsidian via
obsidian_append_contentwith auto-generated filename:YYYY-MM-DD-audit.md
Commands Reference
Go
# Vulnerability check
govulncheck ./...
# List outdated (requires go-mod-outdated)
go list -u -m all | go-mod-outdated
# Tidy dependencies
go mod tidy
# Verify checksums
go mod verify
JavaScript
# Security audit
npm audit
npm audit --json
# Outdated packages
npm outdated
# License check (requires license-checker)
npx license-checker --summary
$ARGUMENTS
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
seo
Implement SEO optimizations for specified pages or entire site
runbook
Generate operational runbooks for services, procedures, or incident response
file-organizer
Intelligently organizes your files and folders across your computer by understanding context, finding duplicates, suggesting better structures, and automating cleanup tasks. Reduces cognitive load and keeps your digital workspace tidy without manual effort.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
ultrathink
Ultra-deep multi-perspective analysis for complex architectural and strategic decisions
commit
Analyze unstaged changes and suggest atomic commit groups with messages
Didn't find tool you were looking for?