Skip to main content

dependency-update

Guide for safely updating project dependencies. Use when asked to update packages, upgrade dependencies, or check for outdated libraries.

소스 정보

저장소
microsoft/haste
최근 소스 활동
2026년 6월 17일 22:19
감지된 SKILL.md 언어
영어
스타
109
포크
19

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
dependency-update
description
Guide for safely updating project dependencies. Use when asked to update packages, upgrade dependencies, or check for outdated libraries.
source
Internal engineering practices
domain
maintenance
level
foundational
agents
["backend-dev","security","security-validation"]
created_date
2026-04-27
last_validated
validated_by
status
draft
allowed-tools
shell
# Dependency Update ## Overview A structured process for safely updating project dependencies. Updates are categorized by risk level and applied in controlled batches with verification at each step. ## Key Concepts ### Semantic Versioning Risk Tiers - **Patch** (x.x.X): Bug fixes only. Safe to batch. - **Minor** (x.X.0): New features, backward compatible. Update in small batches. - **Major** (X.0.0): Breaking changes. Update one at a time. Read the changelog. ## Patterns & Techniques ### Safe Update Process **Step 1: Audit** ```bash # Python pip list --outdated # JavaScript npm outdated ``` **Step 2: Categorize** — Group by risk tier (patch, minor, major). **Step 3: Update per batch** 1. Update the dependency 2. `cd hastelib && hatch build -t wheel` — check build 3. `cd hastelib && hatch run test:pytest` — check behavior 4. `cd ui && npm run lint` — check for new warnings 5. If tests fail, investigate and fix or revert **Step 4: Security check** — Scan for known vulnerabilities. **Step 5: Commit** — One commit per logical group: ``` chore(deps): update [package] from vX to vY ``` ## Decision Framework | Update Type | Risk | Strategy | |------------|------|----------| | Patch | Low | Batch all, update together | | Minor (well-known pkg) | Low-Med | Small batches of 3-5 | | Minor (niche pkg) | Medium | One at a time, check changelog | | Major | High | One at a time, read migration guide | | Security fix | Critical | Update immediately, regardless of type | ## Common Pitfalls - **Updating everything at once** — If tests fail, you can't tell which update caused it - **Skipping the changelog** — Major updates often require code changes - **Ignoring transitive dependencies** — A safe direct dep can pull in a vulnerable transitive dep
GitHub에서 보기