跳到主要内容
知仓学习社ZHICANG

review-dependencies

Detect package managers and CI action pins, then discover outdated or vulnerable dependencies. Returns structured findings without upgrading. Use wh…

不碰外部(只输出文字)无严重或高危命中tobihagemann/turbo

它会碰到什么

扫了多少1 个文本文件,6 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Review Dependencies

Detect package managers and CI action pins, then discover outdated or vulnerable dependencies. Analysis only. Does not upgrade.

Step 1: Detect Package Managers

Identify which package managers are in use by searching for config files:

| Config file | Package manager | Lockfile | Ecosystem |

|---|---|---|---|

| package.json | npm / yarn / pnpm | package-lock.json / yarn.lock / pnpm-lock.yaml | Node.js |

| Package.swift, *.xcodeproj | Swift Package Manager | Package.resolved | Swift |

| pyproject.toml, requirements.txt, setup.py | pip / poetry / uv | poetry.lock, uv.lock | Python |

| Cargo.toml | cargo | Cargo.lock | Rust |

| go.mod | Go modules | go.sum | Go |

| Gemfile | Bundler | Gemfile.lock | Ruby |

| pom.xml | Maven | — | Java |

| build.gradle, build.gradle.kts | Gradle | gradle.lockfile | Java/Kotlin |

| .github/workflows/*.yml / .yaml, action.yml / .yaml | GitHub Actions | — | CI |

Swift dependencies can live in Package.swift or be configured directly in the Xcode project file (.xcodeproj/.xcworkspace). For Xcode-managed dependencies, inspect the project's package references.

Detection steps:

  1. Search for config files in the project root and subdirectories (exclude vendored directories)
  2. If a lockfile exists, use the corresponding package manager variant (e.g., yarn.lock → yarn, pnpm-lock.yaml → pnpm)
  3. When the repo declares a dependency automation config (.github/dependabot.yml / .yaml, renovate.json, .github/renovate.json), read it and add every ecosystem it declares to the set found by the config-file search
  4. When the repo has a GitHub remote, list open dependency PRs with gh pr list --author app/dependabot (or app/renovate), and mark each upgrade one of them already proposes
  5. If multiple instances of the same package manager found (e.g., monorepo with several package.json files): use AskUserQuestion to let the user choose which to review (multiSelect allowed)
  6. If multiple package managers found: use AskUserQuestion to let the user choose which to review. Exclude the CI ecosystem from that choice and review it alongside whichever the user picks
  7. If none found across every step above: inform user and stop

Step 2: Discovery

Run the appropriate discovery command to find available updates:

| Package manager | Discovery command | Notes |

|---|---|---|

| npm | ncu --format group | Requires npm-check-updates. Suggest npm install -g npm-check-updates if missing. |

| yarn | ncu --format group or yarn upgrade-interactive | |

| pnpm | ncu --format group or pnpm outdated | |

| Swift PM | Check resolved versions in Package.resolved against latest releases via WebSearch | No built-in outdated command. Read Package.swift or inspect the Xcode project to identify dependencies and their current version constraints. |

| pip | pip list --outdated | |

| poetry | poetry show --outdated | |

| uv | uv pip list --outdated | |

| cargo | cargo outdated | Requires cargo-outdated. Fall back to comparing Cargo.toml versions via WebSearch. |

| Go modules | go list -m -u all | |

| Bundler | bundle outdated | |

| Maven | mvn versions:display-dependency-updates | |

| Gradle | gradle dependencyUpdates | Requires com.github.ben-manes.versions plugin. |

| GitHub Actions | gh api repos/<owner>/<repo>/releases/latest --jq .tag_name, compared against each uses: ref | No outdated command. Take <owner>/<repo> from the ref's first two path segments. Read a SHA-pinned ref's version from its trailing comment (uses: <owner>/<action>@<sha> # v1.2.3). Compare only the components the ref pins, so @v7 is current against v7.0.1. Fall back to repos/<owner>/<repo>/tags when the release 404s or its tag namespace differs from the ref's, and to WebSearch when the action is not hosted on GitHub. Exclude local (./…), <repo-relative> ($/…), and Docker (docker://…) refs, which pin no release. |

Categorize updates:

  • Major (breaking changes) — requires migration research
  • Minor (new features, backward compatible)
  • Patch (bug fixes)

Step 3: Report Findings

If the discovery tool is not installed, suggest the installation command (see Step 2 notes column). If no tool exists for the ecosystem, fall back to manual version checking via WebSearch.

If no updates are available, report that dependencies are up to date.

Output Format

Format each finding as:

### [P<N>] <title (imperative, <=80 chars)>

**Package:** `<name>` <current> -> <latest>
**Manager:** <npm/pip/cargo/etc.>
**Proposed:** <open automation PR already covering this upgrade, when one exists>

<one paragraph: why this matters, known vulnerabilities if any, major version gap>

After all findings, add:

## Overall Verdict

**Dependencies:** <up to date | updates available>

<summary with counts: N major, N minor, N patch>

Priority Levels

  • P0 — Known security vulnerability (CVE) in the current version
  • P1 — Multiple major versions behind (e.g., React 17 → 19)
  • P2 — One major version behind or significantly outdated minor versions
  • P3 — Minor or patch updates available

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 403
本站分层T2
该仓技能数153
原文件路径claude/skills/review-dependencies/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 153 个技能

同名技能的其他版本

有 2 个不同仓库或目录里都有叫 review-dependencies 的技能。它们内容并不相同,别混用:

  • tobihagemann/turbo — Detect package managers and CI action pins, then discover outdated or vulnerable dependenc