本文へ移動
cccskills
無料GitHub で公開

dev-dependency-management

Guides dependency audits and upgrades. Use when auditing dependencies, upgrading vulnerable packages, managing lockfiles or package managers, SBOMs, or update and monorepo policy.

インストール方法を見る

含まれるファイル(31)

  • SKILL.md13.4 KB
  • agents/openai.yaml369 B
  • assets/automation/audit-checklist.md2.1 KB
  • assets/automation/dependabot-config.yml1.4 KB
  • assets/automation/renovate-config.json1.4 KB
  • assets/automation/template-dependency-upgrade-playbook.md2.0 KB
  • assets/automation/template-sbom-vuln-triage-checklist.md3.1 KB
  • assets/automation/template-supply-chain-security.md11.5 KB
  • assets/nodejs/npmrc-template.txt1.1 KB
  • assets/nodejs/package-json-template.json446 B
  • assets/nodejs/pnpm-workspace-template.yaml995 B
  • assets/python/pyproject-toml-template.toml794 B
  • data/sample-dependency-manifest.example.json7.4 KB
  • data/sources.json13.8 KB
  • learnings.consolidated.md601 B
  • learnings.md454 B
  • references/anti-patterns.md17.3 KB
  • references/container-dependency-patterns.md13.9 KB
  • references/dependency-selection-guide.md5.1 KB
  • references/ecosystem-guides.md9.4 KB
  • references/license-compliance.md14.9 KB
  • references/lockfile-management.md6.4 KB
  • references/monorepo-patterns.md4.6 KB
  • references/security-scanning.md12.4 KB
  • references/semver-guide.md11.7 KB
  • references/transitive-dependencies.md16.2 KB
  • references/update-strategies.md3.8 KB
  • references/version-conflict-resolution.md14.5 KB
  • scripts/dep_auditor.py31.1 KB
  • scripts/README.md5.6 KB
  • scripts/test_dep_auditor.py2.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Dependency Management

Quick Reference

TaskUse
Ecosystem defaults and package-manager choicereferences/ecosystem-guides.md
Lockfiles and CI install policyreferences/lockfile-management.md
Security scanning, SBOMs, and provenancereferences/security-scanning.md, assets/automation/template-supply-chain-security.md, assets/automation/template-sbom-vuln-triage-checklist.md
Monorepos and workspace policyreferences/monorepo-patterns.md, assets/nodejs/pnpm-workspace-template.yaml
Update strategy and rollbackreferences/update-strategies.md, assets/automation/template-dependency-upgrade-playbook.md
Add-or-avoid dependency decisionreferences/dependency-selection-guide.md, references/transitive-dependencies.md
Vulnerability detectionThe ecosystem's native audit tool (npm audit, pnpm audit, pip-audit, cargo audit, govulncheck, composer audit) or osv-scanner; see references/security-scanning.md
Vulnerability triage, VEX, EU CRA lookupreferences/security-scanning.md
Policy-manifest scorer (not a vulnerability scanner: no advisory database, refuses real manifests, exits 2 on unchecked input)python3 scripts/dep_auditor.py --help, limits in scripts/README.md

Route Elsewhere

  • Framework-specific frontend or backend implementation: use the relevant software skill.
  • AppSec architecture beyond the dependency layer: use software-security-appsec.
  • CI/CD platform design: use ops-devops-platform.

Workflow

  1. Identify ecosystem, package manager, lockfile, and wrapper conventions already present.
  2. Decide the smallest safe change: add, remove, pin, update, audit, or migrate.
  3. Load only the guidance needed for lockfiles, security, monorepo policy, or update strategy.
  4. Before migrating Node tooling, check the target major's release notes and its script-approval settings using the lookups below; compare them with CI's runtime and required native builds.
  5. Finish with reproducibility checks, rollback notes, and any audit or SBOM follow-up.

Upgrade proof and rollback bundle

Treat the manifest and lockfile as one change unit. Before the upgrade, capture the resolved version, integrity/source metadata, transitive dependency delta, install-script delta, and the exact build/test/runtime probes that protect the affected path. Review newly introduced packages and lifecycle scripts even when the requested direct dependency looks harmless.

A rollback instruction must restore both manifest and lockfile to a known pair and state whether caches, generated clients, database state, or persisted wire formats make code rollback insufficient. For a stateful or protocol-changing upgrade, require a forward-compatible migration or a tested downgrade path before rollout. “Revert the dependency bump” is not a complete rollback plan when the new version has already written data or changed an external contract.

Core Decisions

Package-Manager Defaults

EcosystemDefault for new reposVersion lookupKey constraint
Nodepnpm unless compat pressure favors npmnpm view pnpm dist-tags (a new major may ship on a non-default tag)pnpm 11 removed onlyBuiltDependencies in favour of allowBuilds; check the target major's release notes for its runtime and install path, and build settings for script approvals before setting CI policy
Pythonuvuv release notesCheck whether uv is still on 0.x versioning before promising API stability
RustCargopinned rust-toolchain.tomlcommit Cargo.lock for apps
Gogo modulesgo / toolchain lines in go.modgo.mod + go.sum canonical
JavaMaven wrapper or Gradle wrapperwrapper propertieswrappers plus BOMs or version catalogs
.NETPackageReferenceglobal.json SDK pinPackageReference over packages.config
PHPComposercomposer.json config.platformcommit composer.lock for apps

Keep repo-local consistency more important than theoretical ecosystem purity.

Lockfile and Toolchain Policy

Minimum rules:

  • commit application lockfiles
  • use exact lockfile installs in CI
  • avoid hand-editing lockfiles
  • do not carry multiple lockfiles for one package graph
  • prefer repo-local wrappers or toolchain files over unpinned global installs

Rule: rules/deps/lockfiles.md loads this invariant when Claude edits a matching file.

Update Strategy

Default cadence:

  • patch: small and frequent
  • minor: batched and tested
  • major: isolated with release-note review and rollback plan
  • security: prioritize by reachability and exploitation evidence (KEV listing first, EPSS as a likelihood signal, CVSS as severity only), and record not_affected findings as VEX statements with a justification; see Vulnerability Triage

Supply-Chain Controls

Use:

  • official registries where possible
  • provenance or signature verification where supported
  • SBOM generation for release artifacts, with the minimum-element fields your customer or regulator requires (lookup step in references/security-scanning.md)
  • explicit review of install or build scripts
  • a build-time static gate on every shipped artifact, not only source code. The gate covers the package or binary and everything bundled into it: vendored and statically linked dependencies, plugins, extension or recipe manifests, and templates. Before publish it checks licenses against an allowlist, known advisories, and allowed sources (no git or path dependencies that bypass the lockfile), and it schema-validates bundled manifests. An artifact that fails does not reach a release channel. A policy file such as cargo-deny's deny.toml is one way to express this
  • expiration on overrides, resolutions, and temporary pins
  • a release-age delay (pnpm minimumReleaseAge, Renovate minimumReleaseAge, Dependabot cooldown) to avoid consuming just-published packages; it is one layer, not a fix, because several historical npm compromises were live for only hours before removal (see the incident patterns in references/security-scanning.md)
  • dependency confusion mitigations: scope all internal packages, audit all org-scoped packages before use
  • EU market: if you ship products with digital elements in the EU, look up which Cyber Resilience Act (Regulation (EU) 2024/2847) vulnerability-reporting obligations apply to you before designing the triage workflow; see EU Cyber Resilience Act Lookup
  • Before adopting an npm major, read its versioned configuration docs and changelog for dependency lifecycle-script approvals and git/remote dependency defaults. Check required native builds and sources in CI, and review each approval rather than enabling all scripts.

AI-Generated Dependency Risk

Before accepting an AI-suggested package:

  • verify it exists
  • check for typosquatting risk
  • check maintenance and release cadence
  • prefer standard library or existing dependencies if feasible
  • run the same audit and review workflow as for any other new package

Rule: rules/common/dependencies.md loads this invariant in every coding session.

Output Modes

Default to one of these:

  • Dependency policy brief: manager choice, lockfile rules, update cadence, and security controls.
  • Upgrade plan: scope, batching, testing, rollback, and audit follow-up.
  • Dependency audit: health risks, unmaintained packages, graph complexity, and remediation order.
  • Monorepo dependency strategy: workspace model, shared policy, and update automation rules.

Known Traps

  • Upgrading transitive or security-sensitive packages without checking whether the fix actually lands in the production artifact path.

  • Mixing wrapper, lockfile, and package-manager upgrades in one move, which makes rollback and blame assignment much harder.

  • Assuming monorepo hoisting or workspace dedupe is harmless when postinstall scripts, peer deps, or native builds are involved.

  • Accepting temporary pins or overrides without a removal owner, expiry, and retest trigger.

  • Treating SBOM generation as complete supply-chain control while provenance, install scripts, and release process remain unreviewed.

  • Treating a clean dep_auditor.py run as an audit: it reads self-declared flags only. Its input requires an explicit dependency list (use [] for a dependency-free ecosystem), boolean policy flags, non-negative integer ages when provided, and a scan date that is not in the future; malformed declarations exit 2.

References

FileWhat it covers
references/ecosystem-guides.mdPer-ecosystem package-manager defaults, CI install commands, and watchouts for Node, Python, Rust, Go, Java, .NET, PHP
references/lockfile-management.mdLockfile matrix, golden rules, per-ecosystem exact-install commands, CI rules, and drift recovery
references/security-scanning.mdNative audit commands, SBOM generation, provenance controls, Dependabot/Renovate usage, and triage workflow
references/monorepo-patterns.mdJS/TS workspace defaults, pnpm supply-chain settings, polyglot structure, and version governance
references/dependency-selection-guide.mdAdd-or-avoid decision criteria, graph inspection commands, AI-suggested package checklist
references/update-strategies.mdUpdate cadence table, batch-by-risk workflow, bot policy, and rollback rule
references/transitive-dependencies.mdTree inspection, override patterns, deduplication, and resolution decision tree
references/license-compliance.mdLicense risk table, GPL decision tree, automated tooling, CI integration, and SBOM generation commands
references/version-conflict-resolution.mdConflict types, per-manager diagnostic commands, forced resolution syntax, and pnpm catalogs
references/container-dependency-patterns.mdMulti-stage build patterns, layer caching, vulnerability scanning (Trivy/Grype), and reproducible base image pinning
references/semver-guide.mdSemVer constraint syntax for npm, Python, and Cargo with common pitfalls
references/anti-patterns.mdCritical and moderate anti-patterns with corrective examples

Curated source links live in data/sources.json.

Navigation

Learnings Loop

When prior decisions or pitfalls are relevant, consult learnings.consolidated.md if present; use learnings.md only for needed history or as the available fallback. Otherwise skip both.

After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.

日本語の概要は準備中です。原文の説明を表示しています。

vasilyu1983/AI-Agents-public932026年10月12日 更新

Configures and hardens Claude Code and Codex MCP servers. Use when connecting databases, APIs, SaaS, building servers, or serving a clearance-filtered knowledge base.

日本語の概要は準備中です。原文の説明を表示しています。

vasilyu1983/AI-Agents-public932026年10月12日 更新

Owns instruction files: AGENTS.md, CLAUDE.md, personal and repo rules. Use when writing, pruning, auditing them, sharing rules across Claude and Codex, or fixing ignored rules.

日本語の概要は準備中です。原文の説明を表示しています。

vasilyu1983/AI-Agents-public932026年10月12日 更新

Creates and audits agent skills: SKILL.md, references, scripts, runtime metadata. Use when writing, validating, or security-reviewing a skill, or fixing truncated skill listings.

日本語の概要は準備中です。原文の説明を表示しています。

vasilyu1983/AI-Agents-public932026年10月12日 更新

Adds per-skill learnings loops for dated patterns, mistakes, and domain facts. Use when wiring skill memory, consolidation, or drift audits.

日本語の概要は準備中です。原文の説明を表示しています。

vasilyu1983/AI-Agents-public932026年10月12日 更新

Chooses subagent, team, workflow, or debate and launches it on Claude Code or Codex. Use when delegating, running agent review boards, or installing shared agents.

日本語の概要は準備中です。原文の説明を表示しています。

vasilyu1983/AI-Agents-public932026年10月12日 更新

vasilyu1983 のスキルをすべて見る

このスキルの問題を報告する