跳到主要内容
SkillVault logo SkillVault
免费 ChatGPT GPTs Claude Code Cursor

dependency-auditor

Audit and manage dependencies across multi-language projects. Identifies vulnerabilities, license conflicts, transitive dependency risks, and safe-upgrade paths. Use when auditing third-party packages before release, investigating a CVE, planning a major version bump, or running a license-compliance review. Examples: 'audit our npm dependencies', 'do we have GPL contamination', 'plan the upgrade to React 19'.

0 次下载 0 次浏览 更新于 Oct 31, 2026 v1.0.0
dependency-auditor skill cover

下方技能配置(提示词、变量、安装步骤)保留英文原文。.aiskill 文件直接面向 AI 智能体,统一使用英文以确保跨平台行为一致。

概述

Audit and manage dependencies across multi-language projects. Identifies vulnerabilities, license conflicts, transitive dependency risks, and safe-upgrade paths. Use when auditing third-party packages before release, investigating a CVE, planning a major version bump, or running a license-compliance review. Examples: 'audit our npm dependencies', 'do we have GPL contamination', 'plan the upgrade to React 19'.

Source: https://github.com/alirezarezvani/claude-skills · MIT · © 2025 Alireza Rezvani

系统提示词

定义智能体角色、规则与输出格式的指令块。

system-prompt.txt
# Dependency Auditor

> **Skill Type:** POWERFUL · **Category:** Engineering · **Domain:** Dependency Management & Security

Offline, deterministic dependency auditing across 8+ package ecosystems. The three scripts are pattern-matchers over manifests/lockfiles — they do **not** call live advisory APIs; pair their findings with `npm audit` / `pip-audit` / `cargo audit` for current CVE coverage.

## Quick Start

```bash
# 1. Scan for vulnerabilities (built-in offline CVE pattern set; exit non-zero on high severity)
python3 scripts/dep_scanner.py /path/to/project --format json --fail-on-high -o scan.json

# 2. Check license compliance and conflicts
python3 scripts/license_checker.py /path/to/project --policy strict --format json -o licenses.json

# 3. Plan upgrades from the scanner's inventory
python3 scripts/upgrade_planner.py scan.json --risk-threshold medium --timeline 90 --format json -o plan.json
```

Consume the outputs: `scan.json` findings drive which packages to pin/patch now; `licenses.json` conflicts go to the user as a legal-risk list; `plan.json` orders upgrades by risk with rollback notes. `--quick-scan` skips transitive deps; `--security-only` limits the plan to security fixes.

**Verification loop:** after applying upgrades, re-run step 1 and assert 0 high-severity findings before closing the audit.

## Supported Ecosystems

| Language | Manifests parsed |
|---|---|
| JavaScript/Node | package.json, package-lock.json, yarn.lock |
| Python | requirements.txt, pyproject.toml, Pipfile.lock, poetry.lock |
| Go | go.mod, go.sum |
| Rust | Cargo.toml, Cargo.lock |
| Ruby | Gemfile, Gemfile.lock |
| Java | pom.xml, gradle.lockfile |
| PHP | composer.json, composer.lock |
| C#/.NET | packages.config, project.assets.json |

## License Classification

- **Permissive**: MIT, Apache 2.0, BSD (2/3-clause), ISC
- **Copyleft (strong)**: GPL v2/v3, AGPL v3 — flags contamination risk in permissive projects
- **Copyleft (weak)**: LGPL v2.1/v3, MPL 2.0
- **Proprietary / Dual / Unknown** — unknown licenses are surfaced for manual review

The checker analyzes license inheritance through dependency chains and emits conflict pairs with remediation suggestions.

## Upgrade Risk Matrix

| Risk | Update type | Handling |
|---|---|---|
| Low | Patch, security fixes | Apply immediately |
| Medium | Minor with new features | Batch into scheduled update |
| High | Major version, API changes | Dedicated migration task + tests |
| Critical | Known breaking changes | Planned migration with rollback procedure |

Prioritization: security patches > bug fixes > feature updates > major rewrites; deprecated features get immediate attention.

## Scripts (accurate capability claims)

- **`scripts/dep_scanner.py`** — multi-format parser; built-in offline vulnerability pattern set (~16 CVE patterns — a smoke layer, not a replacement for live advisories); transitive resolution from lockfiles; JSON + text output.
- **`scripts/license_checker.py`** — license detection from package metadata; compatibility matrix across 20+ license types; `--policy permissive|strict`; conflict detection with remediation.
- **`scripts/upgrade_planner.py`** — semver-based breaking-change prediction; risk-ordered migration plan with testing checklist and timeline estimation.

Sample fixtures: `test-project/` and `test-inventory.json` in this folder; expected shapes in `expected_outputs/`.

## CI Integration

```bash
# Security gate in CI
python3 scripts/dep_scanner.py . --format json --fail-on-high
python3 scripts/license_checker.py . --policy strict --format json
```

## Best Practices

1. **Prioritize security**: address high/critical findings immediately; license compliance before functionality.
2. **Gradual updates**: incremental upgrades with thorough testing; feature flags for risky bumps.
3. **Cadence**: security scans per commit; license audits monthly; full audit quarterly.
4. **False positives**: whitelist with documentation; contact maintainers for license ambiguity.

See [README.md](README.md) for detailed usage and `references/` for the vulnerability/license knowledge bases.

用户提示词模板

填充变量后发送,即可运行该技能: {{variables}}

user-template.txt

变量

名称 必填 说明 示例

完整技能配置

标准 .aiskill 文件,提供 JSON 与 YAML 两种格式。

dependency-auditor.aiskill (JSON)
{
  "format": "aiskill/v1",
  "skill": {
    "name": "dependency-auditor",
    "slug": "dependency-auditor",
    "version": "1.0.0",
    "description": "Audit and manage dependencies across multi-language projects. Identifies vulnerabilities, license conflicts, transitive dependency risks, and safe-upgrade paths. Use when auditing third-party packages before release, investigating a CVE, planning a major version bump, or running a license-compliance review. Examples: 'audit our npm dependencies', 'do we have GPL contamination', 'plan the upgrade to React 19'.",
    "category": "Development",
    "tags": [
      "engineering",
      "security",
      "frontend"
    ],
    "platforms": [
      "chatgpt",
      "claude-code",
      "cursor"
    ],
    "tested_environment": "Agent Skills convention (SKILL.md) — works with Claude Code, Cursor, ChatGPT/Codex and compatible agents",
    "license": "MIT"
  },
  "prompts": {
    "system": "# Dependency Auditor\r\n\r\n> **Skill Type:** POWERFUL · **Category:** Engineering · **Domain:** Dependency Management & Security\r\n\r\nOffline, deterministic dependency auditing across 8+ package ecosystems. The three scripts are pattern-matchers over manifests/lockfiles — they do **not** call live advisory APIs; pair their findings with `npm audit` / `pip-audit` / `cargo audit` for current CVE coverage.\r\n\r\n## Quick Start\r\n\r\n```bash\r\n# 1. Scan for vulnerabilities (built-in offline CVE pattern set; exit non-zero on high severity)\r\npython3 scripts/dep_scanner.py /path/to/project --format json --fail-on-high -o scan.json\r\n\r\n# 2. Check license compliance and conflicts\r\npython3 scripts/license_checker.py /path/to/project --policy strict --format json -o licenses.json\r\n\r\n# 3. Plan upgrades from the scanner's inventory\r\npython3 scripts/upgrade_planner.py scan.json --risk-threshold medium --timeline 90 --format json -o plan.json\r\n```\r\n\r\nConsume the outputs: `scan.json` findings drive which packages to pin/patch now; `licenses.json` conflicts go to the user as a legal-risk list; `plan.json` orders upgrades by risk with rollback notes. `--quick-scan` skips transitive deps; `--security-only` limits the plan to security fixes.\r\n\r\n**Verification loop:** after applying upgrades, re-run step 1 and assert 0 high-severity findings before closing the audit.\r\n\r\n## Supported Ecosystems\r\n\r\n| Language | Manifests parsed |\r\n|---|---|\r\n| JavaScript/Node | package.json, package-lock.json, yarn.lock |\r\n| Python | requirements.txt, pyproject.toml, Pipfile.lock, poetry.lock |\r\n| Go | go.mod, go.sum |\r\n| Rust | Cargo.toml, Cargo.lock |\r\n| Ruby | Gemfile, Gemfile.lock |\r\n| Java | pom.xml, gradle.lockfile |\r\n| PHP | composer.json, composer.lock |\r\n| C#/.NET | packages.config, project.assets.json |\r\n\r\n## License Classification\r\n\r\n- **Permissive**: MIT, Apache 2.0, BSD (2/3-clause), ISC\r\n- **Copyleft (strong)**: GPL v2/v3, AGPL v3 — flags contamination risk in permissive projects\r\n- **Copyleft (weak)**: LGPL v2.1/v3, MPL 2.0\r\n- **Proprietary / Dual / Unknown** — unknown licenses are surfaced for manual review\r\n\r\nThe checker analyzes license inheritance through dependency chains and emits conflict pairs with remediation suggestions.\r\n\r\n## Upgrade Risk Matrix\r\n\r\n| Risk | Update type | Handling |\r\n|---|---|---|\r\n| Low | Patch, security fixes | Apply immediately |\r\n| Medium | Minor with new features | Batch into scheduled update |\r\n| High | Major version, API changes | Dedicated migration task + tests |\r\n| Critical | Known breaking changes | Planned migration with rollback procedure |\r\n\r\nPrioritization: security patches > bug fixes > feature updates > major rewrites; deprecated features get immediate attention.\r\n\r\n## Scripts (accurate capability claims)\r\n\r\n- **`scripts/dep_scanner.py`** — multi-format parser; built-in offline vulnerability pattern set (~16 CVE patterns — a smoke layer, not a replacement for live advisories); transitive resolution from lockfiles; JSON + text output.\r\n- **`scripts/license_checker.py`** — license detection from package metadata; compatibility matrix across 20+ license types; `--policy permissive|strict`; conflict detection with remediation.\r\n- **`scripts/upgrade_planner.py`** — semver-based breaking-change prediction; risk-ordered migration plan with testing checklist and timeline estimation.\r\n\r\nSample fixtures: `test-project/` and `test-inventory.json` in this folder; expected shapes in `expected_outputs/`.\r\n\r\n## CI Integration\r\n\r\n```bash\r\n# Security gate in CI\r\npython3 scripts/dep_scanner.py . --format json --fail-on-high\r\npython3 scripts/license_checker.py . --policy strict --format json\r\n```\r\n\r\n## Best Practices\r\n\r\n1. **Prioritize security**: address high/critical findings immediately; license compliance before functionality.\r\n2. **Gradual updates**: incremental upgrades with thorough testing; feature flags for risky bumps.\r\n3. **Cadence**: security scans per commit; license audits monthly; full audit quarterly.\r\n4. **False positives**: whitelist with documentation; contact maintainers for license ambiguity.\r\n\r\nSee [README.md](README.md) for detailed usage and `references/` for the vulnerability/license knowledge bases.",
    "user_template": ""
  },
  "variables": [],
  "install": {
    "steps": [
      {
        "title": "Download & unzip",
        "detail": "Download the .zip package from SkillVault and unzip it. The dependency-auditor/ folder contains SKILL.md plus any companion scripts, references and assets."
      },
      {
        "title": "Copy into your agent skills directory",
        "detail": "Move the folder into your agent's skills directory — e.g. ~/.claude/skills/ (Claude Code), .codex/skills/, .cursor/skills/ or your project's .claude/skills/ folder — then restart or reload the session."
      },
      {
        "title": "Use it",
        "detail": "Describe the task in natural language; the agent loads the skill automatically when the request matches the skill description."
      }
    ]
  },
  "usage": {
    "steps": []
  },
  "metadata": {
    "author": "SkillVault",
    "source": "https://skillvault.top/skills/dependency-auditor",
    "exported_at": "2026-11-03T07:43:28.280Z"
  }
}
dependency-auditor.aiskill (YAML)
format: aiskill/v1
skill:
  name: dependency-auditor
  slug: dependency-auditor
  version: 1.0.0
  description: >-
    Audit and manage dependencies across multi-language projects. Identifies vulnerabilities,
    license conflicts, transitive dependency risks, and safe-upgrade paths. Use when auditing
    third-party packages before release, investigating a CVE, planning a major version bump, or
    running a license-compliance review. Examples: 'audit our npm dependencies', 'do we have GPL
    contamination', 'plan the upgrade to React 19'.
  category: Development
  tags:
    - engineering
    - security
    - frontend
  platforms:
    - chatgpt
    - claude-code
    - cursor
  tested_environment: >-
    Agent Skills convention (SKILL.md) — works with Claude Code, Cursor, ChatGPT/Codex and
    compatible agents
  license: MIT
prompts:
  system: "# Dependency Auditor\r\n\r\n> **Skill Type:** POWERFUL · **Category:** Engineering · **Domain:** Dependency Management & Security\r\n\r\nOffline, deterministic dependency auditing across 8+ package ecosystems. The three scripts are pattern-matchers over manifests/lockfiles — they do **not** call live advisory APIs; pair their findings with `npm audit` / `pip-audit` / `cargo audit` for current CVE coverage.\r\n\r\n## Quick Start\r\n\r\n```bash\r\n# 1. Scan for vulnerabilities (built-in offline CVE pattern set; exit non-zero on high severity)\r\npython3 scripts/dep_scanner.py /path/to/project --format json --fail-on-high -o scan.json\r\n\r\n# 2. Check license compliance and conflicts\r\npython3 scripts/license_checker.py /path/to/project --policy strict --format json -o licenses.json\r\n\r\n# 3. Plan upgrades from the scanner's inventory\r\npython3 scripts/upgrade_planner.py scan.json --risk-threshold medium --timeline 90 --format json -o plan.json\r\n```\r\n\r\nConsume the outputs: `scan.json` findings drive which packages to pin/patch now; `licenses.json` conflicts go to the user as a legal-risk list; `plan.json` orders upgrades by risk with rollback notes. `--quick-scan` skips transitive deps; `--security-only` limits the plan to security fixes.\r\n\r\n**Verification loop:** after applying upgrades, re-run step 1 and assert 0 high-severity findings before closing the audit.\r\n\r\n## Supported Ecosystems\r\n\r\n| Language | Manifests parsed |\r\n|---|---|\r\n| JavaScript/Node | package.json, package-lock.json, yarn.lock |\r\n| Python | requirements.txt, pyproject.toml, Pipfile.lock, poetry.lock |\r\n| Go | go.mod, go.sum |\r\n| Rust | Cargo.toml, Cargo.lock |\r\n| Ruby | Gemfile, Gemfile.lock |\r\n| Java | pom.xml, gradle.lockfile |\r\n| PHP | composer.json, composer.lock |\r\n| C#/.NET | packages.config, project.assets.json |\r\n\r\n## License Classification\r\n\r\n- **Permissive**: MIT, Apache 2.0, BSD (2/3-clause), ISC\r\n- **Copyleft (strong)**: GPL v2/v3, AGPL v3 — flags contamination risk in permissive projects\r\n- **Copyleft (weak)**: LGPL v2.1/v3, MPL 2.0\r\n- **Proprietary / Dual / Unknown** — unknown licenses are surfaced for manual review\r\n\r\nThe checker analyzes license inheritance through dependency chains and emits conflict pairs with remediation suggestions.\r\n\r\n## Upgrade Risk Matrix\r\n\r\n| Risk | Update type | Handling |\r\n|---|---|---|\r\n| Low | Patch, security fixes | Apply immediately |\r\n| Medium | Minor with new features | Batch into scheduled update |\r\n| High | Major version, API changes | Dedicated migration task + tests |\r\n| Critical | Known breaking changes | Planned migration with rollback procedure |\r\n\r\nPrioritization: security patches > bug fixes > feature updates > major rewrites; deprecated features get immediate attention.\r\n\r\n## Scripts (accurate capability claims)\r\n\r\n- **`scripts/dep_scanner.py`** — multi-format parser; built-in offline vulnerability pattern set (~16 CVE patterns — a smoke layer, not a replacement for live advisories); transitive resolution from lockfiles; JSON + text output.\r\n- **`scripts/license_checker.py`** — license detection from package metadata; compatibility matrix across 20+ license types; `--policy permissive|strict`; conflict detection with remediation.\r\n- **`scripts/upgrade_planner.py`** — semver-based breaking-change prediction; risk-ordered migration plan with testing checklist and timeline estimation.\r\n\r\nSample fixtures: `test-project/` and `test-inventory.json` in this folder; expected shapes in `expected_outputs/`.\r\n\r\n## CI Integration\r\n\r\n```bash\r\n# Security gate in CI\r\npython3 scripts/dep_scanner.py . --format json --fail-on-high\r\npython3 scripts/license_checker.py . --policy strict --format json\r\n```\r\n\r\n## Best Practices\r\n\r\n1. **Prioritize security**: address high/critical findings immediately; license compliance before functionality.\r\n2. **Gradual updates**: incremental upgrades with thorough testing; feature flags for risky bumps.\r\n3. **Cadence**: security scans per commit; license audits monthly; full audit quarterly.\r\n4. **False positives**: whitelist with documentation; contact maintainers for license ambiguity.\r\n\r\nSee [README.md](README.md) for detailed usage and `references/` for the vulnerability/license knowledge bases."
  user_template: ""
variables: []
install:
  steps:
    - title: Download & unzip
      detail: >-
        Download the .zip package from SkillVault and unzip it. The dependency-auditor/ folder
        contains SKILL.md plus any companion scripts, references and assets.
    - title: Copy into your agent skills directory
      detail: >-
        Move the folder into your agent's skills directory — e.g. ~/.claude/skills/ (Claude Code),
        .codex/skills/, .cursor/skills/ or your project's .claude/skills/ folder — then restart or
        reload the session.
    - title: Use it
      detail: >-
        Describe the task in natural language; the agent loads the skill automatically when the
        request matches the skill description.
usage:
  steps: []
metadata:
  author: SkillVault
  source: https://skillvault.top/skills/dependency-auditor
  exported_at: "2026-11-03T07:43:28.280Z"

安装指南

  1. 1

    Download & unzip

    Download the .zip package from SkillVault and unzip it. The dependency-auditor/ folder contains SKILL.md plus any companion scripts, references and assets.

  2. 2

    Copy into your agent skills directory

    Move the folder into your agent's skills directory — e.g. ~/.claude/skills/ (Claude Code), .codex/skills/, .cursor/skills/ or your project's .claude/skills/ folder — then restart or reload the session.

  3. 3

    Use it

    Describe the task in natural language; the agent loads the skill automatically when the request matches the skill description.

使用方法

平台兼容性

ChatGPT GPTs

OpenAI

将系统提示词粘贴到 GPT 的「Instructions」字段,并把用户模板作为起始消息使用。

官方文档

Claude Code

Anthropic

将导出的 .aiskill JSON 保存为项目中的技能文件,或将系统提示词粘贴进 CLAUDE.md / 斜杠命令 Markdown 文件。

官方文档

Cursor

Anysphere

将系统提示词复制到 .cursor/rules/*.mdc(或设置中的 Project Rules),并在智能体提示词中引用用户模板。

官方文档

相关技能

senior-fullstack AI agent skill cover
免费
ChatGPT GPTs Claude Code Cursor

senior-fullstack

Fullstack development toolkit with project scaffolding for Next.js, FastAPI, MERN, and Django stacks, code quality analysis with security and complexity scoring, and stack selection guidance. Use when the user asks to "scaffold a new project", "create a Next.js app", "set up FastAPI with React", "analyze code quality", "audit my codebase", "what stack should I use", "generate project boilerplate", or mentions fullstack development, project setup, or tech stack comparison.

#engineering#security#frontend
0 0 v1.0.0
ship-gate AI agent skill cover
免费
ChatGPT GPTs Claude Code Cursor

ship-gate

Pre-production audit that scans a codebase for security, database, deployment, code quality, AI/LLM, dependency, frontend, and observability issues. Intercepts deploy commands and blocks until critical items pass. Stack-agnostic. Use for "run ship gate", "am I ready to ship", "pre-launch audit", "can I deploy", "push to production", "go live checklist", "preflight check". Not for CI/CD setup or infra provisioning.

#dev-workflow#sql#security
0 0 v1.0.0
docker-development AI agent skill cover
免费
ChatGPT GPTs Claude Code Cursor

docker-development

Docker and container development agent skill and plugin for Dockerfile optimization, docker-compose orchestration, multi-stage builds, and container security hardening. Use when: user wants to optimize a Dockerfile, create or improve docker-compose configurations, implement multi-stage builds, audit container security, reduce image size, or follow container best practices. Covers build performance, layer caching, secret management, and production-ready container patterns.

#engineering#devops#security
0 0 v1.0.0