Dep audit

From sd0xdev/sd0x-harness · View interactive version

Dep audit is an AI agent skill from the GitHub repository sd0xdev/sd0x-harness. Audit dependency security risks

How to use this skill

Skill file

Dependency Audit

Trigger

When NOT to Use

Workflow Steps

| Step | Goal | Safety |

|------|------|--------|

| audit | Scan dependencies for vulnerabilities | read-only |

Failure behavior: report-all

Task

Arguments

$ARGUMENTS

Step 1: Check for audit script

Use Glob to check if .claude/scripts/dep-audit.sh exists in the project root.

Step 2: Fallback (no audit script)

Detect the project ecosystem and run the audit manually.

Ecosystem detection (check project root for manifest files):

| Manifest | Ecosystem | Audit Command | Fix Command |

|----------|-----------|---------------|-------------|

| package.json + pnpm-lock.yaml | Node (pnpm) | pnpm audit --audit-level {LEVEL} | pnpm audit --fix |

| package.json + yarn.lock | Node (yarn) | yarn audit --level {LEVEL} | yarn audit --fix or npx yarn-audit-fix |

| package.json | Node (npm) | npm audit --audit-level={LEVEL} | npm audit fix |

| pyproject.toml | Python | pip-audit or safety check | pip-audit --fix |

| Cargo.toml | Rust | cargo audit | cargo audit fix |

| go.mod | Go | govulncheck ./... | _(manual fix)_ |

| build.gradle | Java | ./gradlew dependencyCheckAnalyze | _(manual fix)_ |

Default {LEVEL} is moderate unless --level argument is provided.

If --fix is specified, run the fix command for the detected ecosystem after audit.

If no recognized manifest file exists, report an error.

Output

## Audit Results

| Severity | Count |
|----------|-------|
| Critical | 0 |
| High | 0 |
| Moderate | 0 |
| Low | 0 |

## Vulnerability Details

### [severity] Issue Title

- **Package**: package-name
- **Fix**: Available / Not available

## Gate

✅ **PASS** — No moderate or above vulnerabilities
❌ **FAIL** — Found high severity vulnerabilities

Examples

/dep-audit
/dep-audit --level high
/dep-audit --fix
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.