Skip to main content

security-scan

Resolve npm dependency vulnerabilities detected by security scans.

来源信息

仓库
redpanda-data/console
最近来源活动
2026年1月20日 21:27
检测到的 SKILL.md 语言
英语
星标
4,336
分支
431

安装方式

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

检查来源文件

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

文件资源管理器
5 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
security-scan
description
Resolve npm dependency vulnerabilities detected by security scans.
# Security Scan Resolve npm dependency vulnerabilities detected by Snyk.io security scans. ## Activation Conditions - User shares Snyk vulnerability reports - Mentions CVEs/CWEs - Asks to fix security issues in npm dependencies ## Quick Reference | Action | Rule | |--------|------| | Fix direct deps | `vuln-direct-deps.md` | | Fix transitive deps | `vuln-transitive-deps.md` | ## Workflow ### 1. Assess - Parse vulnerability report: package, version, CVE/CWE, severity, fixed version - Categorize as **direct** (in package.json) or **transitive** (pulled in by another package) ### 2. Explore - Check `package.json` for current versions and existing overrides - Check lockfile for actual resolved versions - Search source code for direct usage of vulnerable package - Check npm registry for available fixed versions: `npm view <package> versions --json` ### 3. Fix See rules for specific fix patterns. ### 4. Verify ```bash bun i --yarn bun run type:check bun run lint bun run build bun run test ``` All must pass. ## Tips - Use exact versions for security fixes (no `^` prefix) - Fix Critical/High severity first - Replace unmaintained packages rather than patching - Document workarounds with comments explaining why ## Rules See `rules/` directory for detailed guidance.
在 GitHub 查看