utils%3Adependency-scanner by aaronbassett/agent-foundry
npx skills add https://github.com/aaronbassett/agent-foundry --skill utils:dependency-scanner扫描插件中是否存在依赖其他插件或系统工具的模式。
/utils:dependency-scanner - 扫描所有已启用的插件/utils:dependency-scanner --plugin <name> - 扫描特定插件/utils:dependency-scanner --marketplace <name> - 扫描市场中的所有插件/utils:dependency-scanner --plugin-dir <path> - 扫描本地插件目录/utils:dependency-scanner --marketplace-dir <path> - 扫描本地市场目录Skill(skill="utils:find-claude-plugin-root")
PLUGIN_ROOT=$(python3 /tmp/cpr.py utils)
python3 "$PLUGIN_ROOT/scripts/dependency-scanner.py" [FLAGS] > /tmp/dependency-scan.json
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
读取 /tmp/dependency-scan.json 并分析匹配项。脚本返回原始的模式匹配结果 - 分析过程包括:
/foo:spam、/foo:ham、/foo:eggs 合并为一个 "foo" 依赖项对于插件依赖:
/foo:bar,则查找名为 "foo" 的插件/bar(无前缀),则搜索所有可用的技能对于系统依赖:
which <command> 检查是否已安装<command> --version 获取版本对于每个依赖分组,使用 AskUserQuestion 进行确认。将相似的发现结果批量处理:
Found 3 skills (spam, ham, eggs) from foo@bar-marketplace.
Current installed version: 1.2.3
Add to dependencies?
- Yes, require ^1.2.0 (Recommended)
- Yes, require ^1.0.0
- Yes, as optional dependency
- No, skip this
对于系统依赖:
Found system command: gh (used 5 times)
Currently installed: 2.45.0
Add to systemDependencies?
- Yes, require >=2.0.0 (Recommended)
- Yes, require >=2.45.0 (exact current)
- Yes, as optional system dependency
- No, skip this
所有确认完成后,构建最终的 JSON:
{
"dependencies": {
"foo": "^1.2.0"
},
"optionalDependencies": {},
"systemDependencies": {
"gh": ">=2.0.0"
},
"optionalSystemDependencies": {}
}
向用户展示最终的 extends-plugin.json,并在写入前请求确认。
写入位置:<plugin-path>/.claude-plugin/extends-plugin.json
$PLUGIN_ROOT/scripts/dependency-scanner.py - 模式匹配扫描器每周安装数
1
代码仓库
GitHub 星标数
1
首次出现
1 天前
安装于
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
Scan plugins for patterns that indicate dependencies on other plugins or system tools.
/utils:dependency-scanner - Scan all enabled plugins/utils:dependency-scanner --plugin <name> - Scan specific plugin/utils:dependency-scanner --marketplace <name> - Scan all plugins from marketplace/utils:dependency-scanner --plugin-dir <path> - Scan local plugin directory/utils:dependency-scanner --marketplace-dir <path> - Scan local marketplace directorySkill(skill="utils:find-claude-plugin-root")
PLUGIN_ROOT=$(python3 /tmp/cpr.py utils)
python3 "$PLUGIN_ROOT/scripts/dependency-scanner.py" [FLAGS] > /tmp/dependency-scan.json
Read /tmp/dependency-scan.json and analyze the matches. The script returns raw pattern matches - the analysis process involves:
/foo:spam, /foo:ham, /foo:eggs into one "foo" dependencyFor plugin dependencies:
/foo:bar, look for plugin named "foo"/bar (no prefix), search all available skillsFor system dependencies:
which <command> to check if installed<command> --version to get versionFor EACH dependency group, use AskUserQuestion to confirm. BATCH similar findings:
Found 3 skills (spam, ham, eggs) from foo@bar-marketplace.
Current installed version: 1.2.3
Add to dependencies?
- Yes, require ^1.2.0 (Recommended)
- Yes, require ^1.0.0
- Yes, as optional dependency
- No, skip this
For system dependencies:
Found system command: gh (used 5 times)
Currently installed: 2.45.0
Add to systemDependencies?
- Yes, require >=2.0.0 (Recommended)
- Yes, require >=2.45.0 (exact current)
- Yes, as optional system dependency
- No, skip this
After all confirmations, build the final JSON:
{
"dependencies": {
"foo": "^1.2.0"
},
"optionalDependencies": {},
"systemDependencies": {
"gh": ">=2.0.0"
},
"optionalSystemDependencies": {}
}
Show the final extends-plugin.json to the user and ask for confirmation before writing.
Write to: <plugin-path>/.claude-plugin/extends-plugin.json
$PLUGIN_ROOT/scripts/dependency-scanner.py - Pattern matching scannerWeekly Installs
1
Repository
GitHub Stars
1
First Seen
1 day ago
Installed on
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
147,400 周安装