Security v1.0.0

deps-mgmt

Deep dependency management workflow—inventory, upgrade policy, security patches, licensing, lockfiles, and supply-chain...

codekungfu 更新于 2026-03-27 1 浏览
下载 SKILL

技能说明

Deep dependency management workflow—inventory, upgrade policy, security patches, licensing, lockfiles, and supply-chain hygiene. Use when upgrading frameworks, resolving CVEs, or standardizing how teams pin dependencies.

使用场景

Dependencies are supply-chain surface area: versions affect security, reproducibility, and upgrade cost.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/deps-mgmt
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 16 kB
SKILL.md text/markdown
---
name: deps-mgmt
description: Deep dependency management workflow—inventory, upgrade policy, security patches, licensing, lockfiles, and supply-chain hygiene. Use when upgrading frameworks, resolving CVEs, or standardizing how teams pin dependencies.
---

# Dependencies

Dependencies are **supply-chain** surface area: versions affect security, reproducibility, and upgrade cost.

## When to Offer This Workflow

**Trigger conditions:**

- Dependabot noise; major version upgrades
- CVE response or license audit
- “Works on my machine” due to unpinned dependencies

**Initial offer:**

Use **six stages**: (1) inventory & risk, (2) policy & cadence, (3) lockfiles & reproducibility, (4) upgrades & testing, (5) security & licensing, (6) governance & tooling). Confirm ecosystem (npm, pip, Maven, Go modules, etc.).

---

## Stage 1: Inventory & Risk

**Goal:** Direct vs transitive dependencies; flag critical packages (crypto, auth, parsing, serialization).

**Exit condition:** SBOM or export for top applications; list of critical deps.

---

## Stage 2: Policy & Cadence

**Goal:** When to upgrade (time-based vs on-demand); SemVer rules for libraries vs applications.

---

## Stage 3: Lockfiles & Reproducibility

**Goal:** Committed lockfiles for deployable apps; libraries test against a compatibility matrix instead of one frozen lock.

---

## Stage 4: Upgrades & Testing

**Goal:** Prefer one major bump per PR when feasible; CI matrix on supported language/runtime versions.

---

## Stage 5: Security & Licensing

**Goal:** SCA scanning; patch SLA by severity; license allowlist for compliance.

---

## Stage 6: Governance & Tooling

**Goal:** Renovate/Bot policies; pin internal packages; document exceptions and overrides.

---

## Final Review Checklist

- [ ] Inventory and risk hotspots known
- [ ] Upgrade cadence and semver policy documented
- [ ] Lockfiles or matrix strategy per repo type
- [ ] CI validates upgrades
- [ ] SCA and license policy enforced

## Tips for Effective Guidance

- Transitive CVEs may need overrides—trace the dependency graph.
- Pin CI images and toolchains, not only application dependencies.

## Handling Deviations

- Monorepos: shared versions with Nx/Bazel/etc.—coordinate breaking upgrades.

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。