skills/dependency-audit/SKILL.md
Smart dependency health check — security audit, outdated detection, unused deps, and prioritized update plan
npx skillsauth add genesis-plan/hongchen-lingjing dependency-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.
Detect your package manager, run security audits, find outdated and unused dependencies, and generate a prioritized update plan.
Check for these files in the project root:
| File | Ecosystem | Audit Command |
|------|-----------|--------------|
| package.json | Node.js (npm/yarn/pnpm) | npm audit |
| requirements.txt / pyproject.toml / Pipfile | Python | pip audit |
| Cargo.toml | Rust | cargo audit |
| go.mod | Go | govulncheck ./... |
| Gemfile | Ruby | bundle audit check |
If multiple are found, audit all of them. If none found, stop and inform the user.
Node.js:
npm audit --json 2>/dev/null
# Parse: advisories, severity (critical/high/moderate/low), affected package, fix available
Python:
pip audit --format=json 2>/dev/null || pip audit 2>/dev/null
# If pip-audit not installed: pip install pip-audit
Rust:
cargo audit --json 2>/dev/null
# If not installed: cargo install cargo-audit
Node.js:
npm outdated --json 2>/dev/null
# Shows: current, wanted (semver-compatible), latest
Python:
pip list --outdated --format=json 2>/dev/null
Rust:
cargo outdated -R 2>/dev/null
# If not installed: cargo install cargo-outdated
Node.js — use depcheck:
npx depcheck --json 2>/dev/null
This reports unused dependencies and missing dependencies. If npx fails, scan source files manually:
# List all deps from package.json, then grep for imports
# Flag any dep not found in any .js/.ts/.jsx/.tsx file
Python: Scan imports vs installed packages:
# Extract imports from .py files
grep -rh "^import \|^from " --include="*.py" . | sort -u
# Compare against requirements.txt entries
Organize findings into priority tiers:
## 🔴 Critical — Security Vulnerabilities
| Package | Severity | Current | Fixed In | Command |
|---------|----------|---------|----------|---------|
| lodash | CRITICAL | 4.17.19 | 4.17.21 | `npm install [email protected]` |
## 🟠 High — Breaking Updates Available
| Package | Current | Latest | Breaking Changes |
|---------|---------|--------|-----------------|
| express | 4.18.2 | 5.0.0 | New router API |
## 🟡 Medium — Minor/Patch Updates
| Package | Current | Latest | Command |
|---------|---------|--------|---------|
| axios | 1.5.0 | 1.6.2 | `npm install [email protected]` |
## 🟢 Low — Unused Dependencies
| Package | Action |
|---------|--------|
| moment | `npm uninstall moment` |
For batch updates, generate copy-pasteable commands:
# Security fixes (safe — patch updates only)
npm audit fix
# All compatible updates (non-breaking)
npm update
# Specific breaking update (test thoroughly)
npm install [email protected]
For Python:
pip install --upgrade package_name
# Dependency Health Report — [project-name]
**Date:** 2025-02-15 | **Ecosystem:** Node.js (npm)
| Category | Count |
|----------|-------|
| 🔴 Security vulnerabilities | 2 |
| 🟠 Major updates available | 3 |
| 🟡 Minor/patch updates | 8 |
| 🟢 Unused dependencies | 1 |
| ✅ Up-to-date | 42 |
package-lock.json is out of sync, run npm install firstnpm audit may fail — suggest --registry=https://registry.npmjs.orgnpm audit --workspacespip install pip-audit)| Error | Resolution |
|-------|-----------|
| npm audit returns non-zero | Normal — means vulnerabilities found, parse the output |
| pip-audit not found | pip install pip-audit then retry |
| cargo audit not found | cargo install cargo-audit then retry |
| Network error | Check connectivity; suggest --offline if available |
| Permission denied | Suggest running without sudo; check file ownership |
Built by Clawb (SOVEREIGN) — more skills at [coming soon]
testing
Generate viral Xiaohongshu (Little Red Book) copy with proven templates. Use when user asks for: (1) Xiaohongshu post copy, (2) Social media viral content, (3) Chinese social media marketing copy, (4) 爆款文案, (5) 小红书文案, (6) 种草文案
content-media
小红书视频发布。使用浏览器自动化在网页版小红书创作者服务平台发布视频笔记。当用户说"发布视频到小红书"、"发小红书视频"时使用此技能。
development
小红书全能助手 — 文案生成、封面制作、内容发布与管理。当用户要求写小红书笔记、生成小红书文案/标题/封面、发小红书、搜索小红书、评论点赞收藏等任何小红书相关操作时使用。支持一站式从文案创作到自动发布的完整流程。封面AI生图需配置可选环境变量(GEMINI_API_KEY 或 IMG_API_KEY 或 HUNYUAN_SECRET_ID+KEY)。
business
Auto-generate structured weekly business reports covering KPIs, accomplishments, blockers, and plans. Save hours of reporting time every week.