Skip to main content

run-dependency-audit

Surveys outdated and vulnerable dependencies across the frontend (Bun) and backend (pip/uv) toolchains and triages findings by severity and exposure. Use when a dependency manifest or lockfile changes, or when asked to check for outdated packages, security advisories, or whether a dependency needs bumping.

来源信息

仓库
districtr/districtr-v2
最近来源活动
2026年9月18日 14:42
检测到的 SKILL.md 语言
英语
星标
6
分支
3

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
run-dependency-audit
description
Surveys outdated and vulnerable dependencies across the frontend (Bun) and backend (pip/uv) toolchains and triages findings by severity and exposure. Use when a dependency manifest or lockfile changes, or when asked to check for outdated packages, security advisories, or whether a dependency needs bumping.
paths
["app/package.json","app/bun.lock","backend/requirements.txt"]
# Dependency audit This is a survey-and-triage procedure, not an auto-upgrade tool: it enumerates what's outdated or flagged, and the output is findings to file, not diffs to apply. Bumping a dependency is a separate, deliberate change — do it one package at a time, with its own quality-gate run. ## Frontend (Bun) Bun is the frontend package manager (`app/bun.lock`) and has both checks built in — no extra tooling needed: ```bash cd app && bun outdated # every dependency vs. its latest matching/available version cd app && bun audit # known vulnerabilities in installed packages, via the npm advisory DB ``` ## Backend (pip / uv) `backend/requirements.txt` (a uv-generated lockfile) is the source of truth — `backend/pyproject.toml` holds only tool config, not dependency declarations. ```bash docker-compose exec backend pip list --outdated # installed vs. latest on PyPI uvx pip-audit -r backend/requirements.txt # known vulnerabilities, run from repo root ``` `pip list --outdated` needs the container (it reads the installed environment); `pip-audit` reads the lockfile directly, so `uvx` runs it on the host without installing anything. If `uvx pip-audit` crashes in `ensurepip` (seen 2026-09-03 on macOS), run it inside the container instead: `docker-compose exec backend pip install -q pip-audit && docker-compose exec backend pip-audit -r requirements.txt`. Triage findings by severity, actual exposure, and update cost, then file them (one issue per package or tightly-related group) rather than upgrading inline — a bump belongs in its own PR so a regression bisects to it alone. A Next.js major bump follows the official upgrade guide and codemods, one version at a time.
在 GitHub 查看