MCP HubMCP Hub
SKILL·AB0190

dependency-management

rampstackco
업데이트됨 26 days ago
2 조회
953
132
953
GitHub에서 보기
메타aidesign

정보

이 스킬은 개발자가 타사 의존성을 관리할 수 있도록 업데이트, 보안 권고사항, 지원 종료 등을 처리합니다. 보안 패치, lockfile 변경, 업데이트 후 빌드 실패와 같은 이벤트에 의해 트리거됩니다. 업데이트 주기 설정, 설치된 패키지 감사, 의존성 업그레이드 장애 해소에 활용하세요.

빠른 설치

Claude Code

추천
기본
npx skills add rampstackco/claude-skills -a claude-code
플러그인 명령대체
/plugin add https://github.com/rampstackco/claude-skills
Git 클론대체
git clone https://github.com/rampstackco/claude-skills.git ~/.claude/skills/dependency-management

Claude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요

문서

Dependency Management

Decide what to depend on, keep dependencies current, respond to advisories, and reduce supply chain risk. Stack-agnostic principles; specifics vary by package manager.


When to use

  • Setting up dependency hygiene for a new or existing project
  • Responding to a security advisory
  • Major version upgrade of a key dependency
  • Adding a new dependency (evaluation, decision)
  • Removing a dependency (cleanup)
  • Audit of what's installed and what's actually used
  • Setting an update cadence and policy
  • Diagnosing a broken build after an update

When NOT to use

  • General code review (use code-review-web)
  • Vulnerability scanning of infrastructure (use security-baseline)
  • Pinning vendor or service contracts (use vendor-evaluation)
  • Performance impact of dependencies (use performance-optimization)

Required inputs

  • Package manager and lockfile in use (npm, yarn, pnpm, pip, gem, composer, etc.)
  • Current dependency list (production and dev)
  • Current advisories (run audit; check service like Snyk, Dependabot)
  • Update history (when were major dependencies last updated)
  • Risk profile (production criticality, change tolerance)

The framework: 4 categories of dependency

Every dependency falls into one of these. The category drives the policy.

Category 1: Critical runtime

Code that runs in production and would break the system if it failed.

Examples: framework, database driver, payment SDK, authentication library.

Policy:

  • Update cadence: monthly minor, quarterly major (with planning)
  • Security: patch within 24-72 hours of advisory, 24h for critical
  • Pinning: exact version pins or narrow ranges
  • Vetting: thoroughly evaluated before adoption

Category 2: Supporting runtime

Code that runs in production but is replaceable or non-critical.

Examples: utility libraries, formatting, non-core integrations.

Policy:

  • Update cadence: monthly together with critical
  • Security: patch within a week of advisory
  • Pinning: narrow ranges acceptable (e.g., ^1.2.3)
  • Vetting: moderate evaluation; alternatives considered

Category 3: Dev/build

Code that runs only during development or build, not in production.

Examples: bundlers, linters, test frameworks, type checkers.

Policy:

  • Update cadence: quarterly
  • Security: patch within a week (still matters; supply chain attacks target build tools)
  • Pinning: ranges acceptable
  • Vetting: lighter; broken dev tools surface fast

Category 4: Optional/dev-only-personal

Tools individual developers use that aren't part of shared dev environment.

Not really managed at the project level. Mentioned for completeness.


The framework: 5 risk dimensions

When evaluating a dependency, consider:

Dimension 1: Maintenance health

  • Last commit date (months ago is concerning)
  • Open issue count and age
  • Number of maintainers
  • Sponsorship or commercial backing
  • Roadmap visibility

A dependency abandoned a year ago is a liability waiting to surface.

Dimension 2: Surface area

  • Size of the package
  • Number of transitive dependencies
  • Footprint in the bundle (for client-side)
  • Privileges required (file system, network, etc.)

A small dependency that pulls in 50 transitive packages has the surface area of all 50.

Dimension 3: Replaceability

  • How hard would it be to remove?
  • Are there alternatives?
  • Could the functionality be implemented in-house?
  • Is the API standard or idiomatic?

A dependency you can't replace is leverage you've granted to its maintainer.

Dimension 4: Trust

  • Reputation of the maintainer or organization
  • Code quality (skim the source)
  • License (GPL, MIT, BSD, proprietary, none)
  • History of security issues
  • Supply chain practices (signed releases, 2FA on publishes)

Dimension 5: Cost

  • Time to evaluate, integrate, maintain
  • Risk of breaking changes
  • Lockfile entropy
  • Potential security exposure
  • Bundle size impact (for client-side)

Every dependency has a cost. Free packages aren't free.


Workflow

Step 1: Inventory

Run a dependency listing:

# npm/yarn/pnpm
npm ls --all --json

# pip
pip list

# gem  
bundle list

For each top-level dependency, categorize (critical / supporting / dev). For transitives, you generally don't manage individually unless one becomes a problem.

Step 2: Audit

Run the security audit:

npm audit
yarn npm audit  # Yarn 2+; "yarn audit" on Yarn 1 Classic
pip-audit
bundle audit

For each finding:

  • Severity (critical, high, medium, low)
  • Package and version
  • Fix available?
  • Used directly or transitively?

Step 3: Categorize and prioritize

SeverityDirect depIndirect dep
CriticalPatch todayPatch this week (if a fix exists; track if not)
HighPatch this weekPatch this month
MediumPatch this monthTrack; patch with next round
LowTrackTrack

Critical and high in production code are emergencies. Low and medium are scheduled work.

Step 4: Test before merging fixes

Even patch-level updates can break things. For critical dependencies:

  • Run the full test suite
  • Smoke-test in staging
  • Watch the monitoring after rollout

For supporting and dev:

  • Run the test suite
  • A failed test is OK to investigate; don't merge a known-broken update

Step 5: Plan major version upgrades

Major versions break things. Plan rather than rush.

For each major upgrade:

  • Read the changelog and migration guide
  • Estimate the migration effort
  • Schedule the work (don't do it under deadline pressure)
  • Branch and test thoroughly
  • Plan a staged rollout if it's a critical dependency

Don't sit on major versions indefinitely. The longer you wait, the more painful the upgrade.

Step 6: Set the policy

Document:

  • Update cadence (e.g., monthly review, quarterly upgrades)
  • Security response SLA (e.g., critical within 24h)
  • Approval for new dependencies (who signs off)
  • Removal criteria (when do we drop a dependency)
  • Pinning strategy (exact, narrow range, broad range)

The policy is what survives team turnover. Without it, dependency management becomes chaotic ad hoc work.

Step 7: Automate

  • Renovate or Dependabot for automatic update PRs
  • CI runs audit on every PR
  • Block merges on critical advisories (with override path for false positives)
  • Notify on advisories for installed packages
  • Lockfile diff in PR review

Automation reduces toil. Manual checking doesn't scale.

Step 8: Audit usage periodically

Quarterly:

  • Dependencies installed but not imported anywhere (run a tool like depcheck)
  • Major versions behind (more than 1-2 majors behind = upgrade plan needed)
  • Unmaintained packages (last commit over a year ago = consider replacing)
  • License audit (anything that's changed terms?)

Remove what's not used. Replace what's unmaintained.


New dependency evaluation

Before adding a new dependency, answer:

  • What problem does this solve?
  • Could we solve it without a dependency? (Often yes for small problems.)
  • What alternatives exist?
  • Is the package actively maintained?
  • What's the install size and bundle impact?
  • What are the transitive dependencies? (Worth a quick scan.)
  • What's the license?
  • What's the security history?
  • How replaceable is it?

Default: don't add. Add only when the value clearly exceeds the cost. The cost includes ongoing maintenance, not just installation.


Dependency removal

When removing a dependency:

  • Identify all usages (search the codebase)
  • Replace each usage (with native code, another dependency, or a no-op)
  • Remove from package.json or equivalent
  • Update lockfile (run install)
  • Verify tests pass
  • Verify build size went down (or stayed the same)
  • Document the removal in the changelog

Removed dependencies sometimes leave config files, CI hooks, or imports behind. Search broadly.


Failure patterns

No update cadence. Dependencies drift. When you finally upgrade, it's painful. Set a cadence.

Audit disabled in CI. "Too noisy." Tune the audit, don't disable it. Whitelist known false positives explicitly.

Pinning everything to exact versions. Stops automatic patches. Misses security fixes. Use narrow ranges with a lockfile.

Unpinned floating versions. latest in production. Builds aren't reproducible. Lockfile required.

Adding dependencies without review. "I just needed a quick utility." Now there are 50 unused dependencies. Require review for new dependencies.

Ignoring transitive dependencies. A direct dependency pulls in 50 indirect ones. Each is supply chain surface. Audit the tree, not just the top level.

Patching with major version bumps. "Updating to fix a bug" but the update is a major version. Now you have unrelated breaking changes too. Be deliberate about the version of the fix.

Vendor-bundled libraries. Some dependencies vendor copies of other dependencies. They're not visible to the audit. Periodically check.

Build-time dependencies treated as zero-risk. Build tools have access to your code and credentials. Supply chain attacks target them. Treat with appropriate care.

Fork without rebase plan. Forking a dependency to fix something. Then you own it. Plan how to rebase or merge upstream changes, or commit to maintaining the fork.

No license audit. Project ships with a GPL dependency in a commercial product. Compliance issue. Audit licenses on add and quarterly.

Update PRs piling up. Dependabot PRs go unmerged for months. Either tune to fewer PRs or commit time to merging them.


Output format

A dependency policy document includes:

  • Inventory: current dependencies by category
  • Audit status: open advisories, severity, plan
  • Policies: cadence, SLA, pinning, approval
  • Tooling: what's automated (Renovate, Dependabot, audit in CI)
  • License audit: any concerns
  • Quarterly review schedule: when this gets revisited

Reference files

  • references/upgrade-checklist.md: Step-by-step checklist for performing a major version upgrade of a critical dependency, from changelog reading to staged rollout.

GitHub 저장소

rampstackco/claude-skills
경로: dist/codex/.agents/skills/dependency-management
0
agent-skillsai-agentsanthropicclaudeclaude-aiclaude-code
FAQ

자주 묻는 질문

dependency-management Skill이란 무엇인가요?

dependency-management은(는) rampstackco이(가) 만든 Claude Skill입니다. Skill은 Claude가 필요할 때 불러오는 지침과 리소스를 묶어 추가 프롬프트 없이 dependency-management 관련 작업을 수행할 수 있게 합니다.

dependency-management은(는) 어떻게 설치하나요?

이 페이지의 설치 명령을 사용하세요. dependency-management을(를) Claude Code 플러그인으로 추가하거나 저장소를 skills 디렉터리에 복제한 다음 Claude를 다시 시작해 Skill을 불러옵니다.

dependency-management은(는) 어떤 카테고리에 속하나요?

dependency-management은(는) 메타 카테고리에 속합니다.

dependency-management은(는) 무료로 사용할 수 있나요?

네. dependency-management은(는) AIMCP에 등록되어 있으며 무료로 설치할 수 있습니다.

연관 스킬

content-collections
메타

이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.

스킬 보기
polymarket
메타

이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.

스킬 보기
creating-opencode-plugins
메타

이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.

스킬 보기
sglang
메타

SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.

스킬 보기