Skip to main content

update-deps

Audit npm dependencies across all workspaces and fix vulnerabilities. Use when the user asks to audit deps, check for vulnerabilities, run npm audit, or fix security issues in packages.

소스 정보

저장소
authgear/authgear-sdk-nextjs
최근 소스 활동
2026년 7월 27일 11:29
감지된 SKILL.md 언어
영어
스타
1
포크
5

설치 방법

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

소스 파일 검토

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

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
update-deps
description
Audit npm dependencies across all workspaces and fix vulnerabilities. Use when the user asks to audit deps, check for vulnerabilities, run npm audit, or fix security issues in packages.
disable-model-invocation
true
## Steps 1. **Find all directories with a `package-lock.json`** using Glob to search from the repo root. 2. **For each directory**, run `npm audit --json` (with the working directory set to that package directory) to get structured results. 3. **Categorize vulnerabilities**: - Fixable without breaking changes: `npm audit` reports these as fixable without `--force`. - Breaking changes: require `--force` or manual `package.json` edits (semver-major bumps, peer dependency conflicts). 4. **For non-breaking fixable issues**: Run `npm audit fix` in that directory. Then re-run `npm audit` to confirm the remaining count. Report which packages were updated and their new versions. 5. **For breaking changes**: Do NOT run `npm audit fix --force`. Instead, report for each affected package: - Package name - Current version → minimum safe version - Why it is a breaking change (e.g., major version bump, peer dep conflict) - What the developer must do (e.g., update the direct dependency in `package.json` to accept the new major, review the changelog, run tests) 6. **Final summary** to the user with three sections: - Directories where `npm audit fix` was run and lockfiles were updated (list packages + versions) - Directories with remaining breaking vulnerabilities (per-package details from step 5) - Directories that are fully clean (no vulnerabilities found)
GitHub에서 보기