dependency-scan
Skill0 starsChanged 3 months agoMITView on GitHub
供应链依赖扫描器。扫描 package.json 的依赖声明,检查:DSH 宿主遮蔽(@deepseek-ai/* 进普通 dependencies)、 版本未锁定(范围符)、已知高危/可疑依赖(内置基线)、宿主包缺 peerDependencies 声明。 纯本地、无第三方依赖、输出 JSON 报告——发布插件/技能前的供应链自检工具。 Use when: 用户要在发布插件/技能前检查依赖供应链,或询问依赖安全/版本锁定/宿主遮蔽。 Trigger: dependency-scan, 依赖扫描, 供应链检查, 依赖安全, 版本锁定, 宿主遮蔽
1 other project uses a version of this.
Adopted by
Most recently taken up by
- NinjaSln-labs/agent-skillstheir own version, first seen Oct 2, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- NinjaSln-labs/agent-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- bundle-lintSkill
- csv-toolsSkill
- excel2insights-proSkill
- excel2insightsSkill
- expert2skillSkill
- finance-toolsSkill
- fitness-dailySkill
- malware-scanSkill
- runtime-probeSkill
- skill-complianceSkill
- study-abroad-assistantSkill
- sum2slides-proSkill
The file
Files
🔒 Dependency Scan — 供应链依赖扫描器
Overview
发布插件/技能前,扫描 package.json 依赖声明的供应链风险。规则:
- DEP-001 DSH 宿主遮蔽:
@deepseek-ai/*宿主接口包进普通dependencies/bundledDependencies(遮蔽宿主风险) - DEP-002 版本未锁定:依赖使用
^/~/>=/*范围符(可复现构建需精确锁定) - DEP-003 高危/可疑依赖:内置基线(无维护/已知问题包;完整威胁情报需生态级规则库)
- DEP-004 peer 完整性:代码引用
@deepseek-ai/*但 peerDependencies 未声明
Usage
python3 scripts/dependency-scan.py --dir <插件目录> --format json # 离线(内置基线)
python3 scripts/dependency-scan.py --dir <插件目录> --online --format json # 在线(OSV 已知漏洞/恶意包)输出(JSON)
{
"scanner": "dependency-scan@1.0.0",
"issues": [
{ "rule": "DEP-002", "severity": "medium", "found": "版本未锁定: event-stream@^3.3.6" }
],
"score": 85
}实现说明(互不依赖,功能对齐)
- 本工具独立实现 DEP-001~004(不依赖 skill-compliance),与 skill-compliance 的 DEPENDENCY 检查功能对齐(同规则、同严重级)
- 两工具互不依赖:各自零依赖独立可跑(skill-compliance 是 STANDARD §7/§9 采纳的权威检查器;dependency-scan 是依赖专项工具)
- 对齐保证:tests/alignment.py 对同一用例断言两工具 DEP 判定一致;规则演进时两处同步更新并跑对齐测试
- 纯 Python 标准库,无网络请求,无第三方依赖;不执行代码、不安装依赖,只读 package.json 与入口文件
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

