360 Secure SkillHub
360 安全技能中心

Package Updater

扫描 package.json、pyproject.toml、Cargo.toml 或 go.mod 识别包管理器,查询过期依赖并按补丁、次要、主要版本分级,提示可能的破坏性变更;建议先出报告,再分阶段更新并在每步后运行测试。

分类:开发
sky-lv
sky-lv
热度 5.45
最近更新 2026-05-11 17:46:13

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add sky-lv/package-updater
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
skylv-dependency-updater
slug
skylv-dependency-updater
version
1.0.0
description
Auto-checks and updates outdated dependencies. Shows changelogs and breaking changes before updating. Triggers: update dependencies, upgrade packages, check outdated, npm update.
author
SKY-lv
license
MIT
tags
["dependencies","npm","pip","update","devops"]
keywords
["dependencies","npm","pip","update","upgrade","package"]
triggers
update dependencies, upgrade packages, check outdated

Dependency Updater

Overview

Scans project dependencies and checks for updates, shows changelogs, identifies breaking changes.

When to Use

  • User asks to "update dependencies" or "check for updates"
  • Regular maintenance

How It Works

Step 1: Detect package manager

package.json -> npm pyproject.toml -> pip Cargo.toml -> cargo go.mod -> go

Step 2: Check outdated

npm: npm outdated --json pip: pip list --outdated --format=json cargo: cargo outdated

Step 3: Risk assessment

Patch (1.2.3 -> 1.2.4): Low risk - auto-update Minor (1.2.3 -> 1.3.0): Medium - show changelog Major (1.2.3 -> 2.0.0): High - show breaking changes

Output Format

Major Updates: express 4.17.1 -> 5.0.0 [BREAKING changes] Minor Updates: axios 0.21.1 -> 0.21.4 [Bug fixes] Patch Updates: debug 4.3.1 -> 4.3.4 [Security patch]

Update Strategy

  1. Show report first - never update blindly
  2. Update in stages: patches -> minors -> majors
  3. Run tests after each update
  4. Commit each update separately