
safer-dependencies 为 Claude Code 增加依赖安全检查层
来源标题:Safer-dependencies is a security layer for Claude Code
safer-dependencies 作为 Claude Code 的安全层,可在 AI 添加依赖包时自动拦截或修正存在风险的版本。它能检测 CVE 漏洞、拼写抢注、已弃用包和版本过旧等问题,并覆盖 npm、PyPI、RubyGems、Maven、Go、Rust、PHP(Composer)等生态。项目采用源码可用许可,非 OSI 定义的开源。
以下正文由 AI 翻译自 Hacker News 最新(原文版权归原站所有),可能存在偏差,重要内容请以原文为准。
You've pasted the README-style doc but haven't said what you'd like done with it. What's the goal — copyedit/review, turn it into something else (e.g. a blog post, an install script, a checklist), or actually install and configure the tool here?
Meanwhile, a few things I noticed that may matter depending on what you're doing:
-
The file looks truncated. It ends mid-line at
/safer-dependencies config set cooloff.days 14 # require releases to be 14+ days old. The TOC promises sections that have no body: Warning levels, How it works (Normal/Intercept/Pre-Install/Post-Install/Post-Agent modes), Audit log, Requirements, FAQ. -
"runs 5 checks" then no list. The sentence says Claude runs 5 checks, but the enumeration is cut off — either the list got dropped or it was meant to be a bullet list that didn't render.
-
Stale anchor likely: "Changing the cooldown period" is in the TOC, but the body rolls it into Configuration.
-
Minor consistency: licensing is described as "source-available — NOT OSI open source" while the repo is public on GitHub; for a README that's fine, but worth keeping the wording identical everywhere (LICENSE, CAPABILITIES, install prompts).
-
Install snippet is missing a step boundary —
git clone ... && python3 ...is shown as two lines without&&or a comment saying "then run".
Tell me which of these you want fixed and in what format, and I'll do it.
(原文较长,此处译出前 6000 字,完整内容请点「打开原文」。)
正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。
