跳到正文
cccskills
免费在 GitHub 公开

dependency-updater

Audit project dependencies for outdated packages, security vulnerabilities, and breaking changes. Use when someone asks to "check for outdated packages", "audit dependencies", "find vulnerable dependencies", "plan dependency upgrades", "detect breaking changes", or "update npm packages safely". Analyzes package.json/lock files, cross-references changelogs, and produces ordered upgrade plans.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md5.7 KB
  • _scores.json2.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Dependency Updater

Overview

This skill analyzes your project's dependency tree to find outdated packages, known vulnerabilities, and breaking API changes. It produces a prioritized upgrade plan with specific migration steps, ordered to minimize risk and maximize safety.

Instructions

1. Parse the Dependency File

  • Read package.json + lockfile (npm/yarn/pnpm), requirements.txt/pyproject.toml, or go.mod
  • List all direct dependencies with current pinned versions
  • Note version constraints (^, ~, exact, ranges)

2. Check Each Package

Gather facts with the ecosystem tools rather than from memory:

npm outdated && npm audit --omit=dev       # npm (pnpm: pnpm outdated / pnpm audit)
yarn upgrade-interactive && yarn npm audit # Yarn 2+
pip list --outdated && pip-audit -r requirements.txt   # pip-audit is installed separately
go list -u -m all && govulncheck ./...     # Go

Do not run npm audit fix --force: it can apply major upgrades unreviewed.

For each dependency:

  • Latest version: What's available on the registry
  • Version gap: How many major/minor/patch versions behind
  • Security: Known CVEs from npm audit, Snyk, or GitHub Advisory Database
  • Maintenance: Last publish date, open issues count, whether it's deprecated
  • Breaking changes: Read CHANGELOG.md or GitHub releases for breaking change notes between current and latest

3. Classify by Risk

Group packages into four tiers:

  • Critical: Known CVE with severity HIGH or CRITICAL — update immediately
  • Major: Major version bump with confirmed breaking API changes — needs migration
  • Minor: Minor/patch updates with no breaking changes — safe to batch update
  • Stale: Package unmaintained (no release in >12 months) — consider replacement

4. Scan for Impact

For Major-tier packages:

  • Read the changelog/migration guide for the new version
  • Search the codebase for imports and usages of changed APIs
  • List affected files with line numbers
  • Estimate effort: how many patterns need changing and whether they're automatable

5. Generate Upgrade Plan

Produce an ordered plan:

  1. Critical (CVE fixes) first — usually patch-level, zero code changes
  2. Minor/patch batch — single npm update command
  3. Each Major upgrade individually, with:
    • Exact install command (npm install package@version)
    • Code changes needed (as diffs when possible)
    • Test commands to verify

Examples

Example 1: Node.js Project Audit

Input: User provides package.json with 94 dependencies.

Output:

Dependency Audit — 94 packages

CRITICAL (2 packages):
  lodash 4.17.20 → 4.17.21
    CVE-2021-23337 (Command Injection, HIGH)
    Fix: npm install lodash@4.17.21 (patch, no code changes)

  node-fetch 2.6.1 → 2.6.13
    CVE-2022-0235 (Exposure of sensitive headers on redirect, HIGH)
    Fix: npm install node-fetch@2.6.13 (fixed in 2.6.7; patch, no code changes)

MAJOR (1 package):
  express 4.18.2 → 5.x
    Breaking: req.host now keeps the port number (Express 4 stripped it)
    Breaking: app.del() removed, use app.delete()
    Breaking: req.query is read-only; async handler errors now reach error middleware
    Tip: run npx @expressjs/codemod upgrade for the mechanical changes
    Affected files: src/server.ts:45 (uses req.host), src/routes/legacy.ts:12 (uses app.del)
    Migration effort: Low — 2 files, 2 line changes

MINOR (18 packages):
  Can be batch-updated: npm update (no breaking changes detected)

STALE (1 package):
  request 2.88.2 — DEPRECATED, last release Feb 2020
  Recommended replacement: undici or node-fetch
  Used in: src/lib/http-client.ts (3 call sites)

Upgrade Order:
  Step 1: npm install lodash@4.17.21 node-fetch@2.6.13
  Step 2: npm update
  Step 3: npm install express@5 (apply 2 code changes first)
  Step 4: Replace request with undici (separate PR recommended)

Example 2: Python Requirements

Input: User provides requirements.txt with pinned versions.

Output:

Dependency Audit — 23 packages

CRITICAL:
  django==3.2.18 → 3.2.25
    CVE-2024-24680 (DoS via intcomma template filter, fixed in 3.2.24)
    Fix: pip install django==3.2.25 (patch within same minor)

MAJOR:
  django==3.2.25 → 5.2.x LTS (3.2 is end-of-life: no further security fixes)
    Breaking: django.conf.urls.url() removed in 4.0, use path()/re_path()
    Upgrade through 4.2 LTS first, fixing deprecation warnings at each stop
    Affected: 8 files in urls/, settings.py

Guidelines

  • Never recommend upgrading all major versions at once — one at a time, with tests between each
  • For monorepos, check if packages have peer dependency conflicts before recommending upgrades
  • If a package is deprecated with no CVE, it's STALE not CRITICAL — don't panic the user
  • Always check if the project has a test suite (npm test, pytest) and recommend running it after each step
  • When generating diffs, use the project's actual code, not generic examples
  • For workspaces/monorepos, note which workspace each dependency belongs to

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Scripts and configures production rendering in Autodesk 3ds Max with the V-Ray and Corona renderers: output size and files, render elements, denoising, light mix, batch and command-line rendering, and network rendering. Use when a user asks to set up a production render, render several cameras in one batch, render from the command line or on a render farm, add render passes for compositing, or cut render time for archviz and product shots.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

Covers scripting Autodesk 3ds Max, the 3D modeling and rendering application, with MAXScript and Python (pymxs): scene manipulation, object creation, material assignment, camera and light setup, batch operations, and file I/O. Use when tasks involve automating repetitive 3ds Max workflows, batch processing scenes, running scripts headless with 3dsmaxbatch, creating custom tools, or scripting scene setup for archviz, product visualization, or VFX.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

3proxy

免费

3proxy is a small open-source proxy server that runs HTTP/HTTPS, SOCKS4/5, SNI and TCP/UDP port-mapping proxies from one config file. Use when a user asks to set up an HTTP or SOCKS5 proxy, add proxy users and passwords, write 3proxy access rules, chain or rotate upstream (parent) proxies, limit bandwidth, connections or monthly traffic per user, run 3proxy in Docker, or fix a 3proxy.cfg that will not start.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

Builds Agent2Agent (A2A) servers and clients, the open protocol (originally from Google, now under the Linux Foundation) that lets AI agents from different frameworks call each other. Use when the user wants to create an A2A-compliant agent, build an Agent Card, implement task management, connect agents across frameworks, set up agent discovery, handle streaming responses, implement push notifications, or orchestrate multi-agent workflows. Trigger words: a2a, agent to agent, agent2agent, a2a protocol, a2a server, a2a client, agent card, agent interoperability, agent collaboration, multi-agent, agent discovery, a2a sdk, a2a task.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

Plans a controlled experiment (A/B test) so its result can be trusted: writes the hypothesis, picks one primary metric and the guardrails, computes sample size and run time, specifies how visitors are assigned and when exposure is logged, and reads out the result with a confidence interval. Use when someone says "set up an A/B test", "split test this page", "how many visitors do I need", "how long should the experiment run", "is this result significant", "can I stop the test early", or wants to test a headline, price, layout or onboarding change against the current version.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

ably

免费

Ably is a hosted realtime messaging service: clients publish and subscribe to named channels over WebSockets, see who is present, replay message history, and resume after a dropped connection. Use when a user asks to "add realtime updates", "push live notifications to the browser", "show who is online", "add a chat room with typing indicators", "publish from a serverless function", or "authenticate Ably clients without exposing the API key". Covers the ably 2.x JavaScript SDK (Realtime and REST), JWT token authentication, presence, history and rewind, batch publishing, and the @ably/chat 1.x SDK.

中文简介正在准备中。当前显示原文说明。

TerminalSkills/skills1722026年10月14日 更新

查看 TerminalSkills 的全部技能

报告此技能的问题