返回顶部
s

skill-dedup-scanner技能去重扫描

Scans installed skills for duplicates and naming conflicts. Detects similar skills that may cause model confusion. Use before publishing new skills or when troubleshooting trigger conflicts. Supports English and Chinese (auto-detect or --lang flag).

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
151
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

skill-dedup-scanner

技能名称: skill-dedup-scanner

详细描述:

技能去重扫描器 🔍

检测可能导致模型混淆的重复或相似技能。

使用场景

  • - 发布新技能之前
  • 技能触发异常时
  • 审计现有技能集合
  • 解决命名冲突
  • 检查相似的技能名称/描述

使用方法

基础扫描

bash

自动检测语言


python3 scripts/main.py ~/.openclaw/workspace/skills/

指定语言

python3 scripts/main.py ~/.openclaw/workspace/skills/ --lang en python3 scripts/main.py ~/.openclaw/workspace/skills/ --lang zh

高级选项

bash

自定义阈值(0-1)


python3 scripts/main.py ~/.openclaw/workspace/skills/ --threshold 0.8

输出到文件

python3 scripts/main.py ~/.openclaw/workspace/skills/ -o audit_report.md

JSON 输出

python3 scripts/main.py ~/.openclaw/workspace/skills/ --json

详细模式

python3 scripts/main.py ~/.openclaw/workspace/skills/ -v

选项

选项简写描述默认值
--lang-l语言:en, zh, autoauto
--threshold
-t | 相似度阈值(0-1) | 0.7 | | --output | -o | 输出文件路径 | stdout | | --json | -j | 以 JSON 格式输出 | false | | --verbose | -v | 详细输出 | false |

输出

生成包含以下内容的详细报告:

  • - 相似度评分(名称 + 描述)
  • 冲突分析
  • 可操作的建议
  • 安全/唯一技能列表

相似度阈值

评分级别操作
> 0.85🔴 高考虑合并或重命名
0.7-0.85
🟡 中 | 明确描述 | | < 0.7 | ✅ 安全 | 无需操作 |

语言支持

  • - 英语(--lang en)
  • 中文(--lang zh)
  • 自动检测(--lang auto)- 检测系统区域设置

示例

示例 1:快速扫描

bash
$ python3 scripts/main.py ~/.openclaw/workspace/skills/
🔍 扫描目录:/home/user/.openclaw/workspace/skills
📦 技能总数:15

✅ 未发现重复技能

所有技能均具有独特的名称和描述。无需优化。

示例 2:查找冲突

bash
$ python3 scripts/main.py ~/.openclaw/workspace/skills/ --threshold 0.6
🔍 扫描目录:/home/user/.openclaw/workspace/skills
📦 技能总数:15

⚠️ 发现 2 组相似技能

1. 🔴 高相似度警告

技能 A: tushare-finance
技能 B: stock-analyzer

相似度评分: 85%

分析:

  • - 名称相似度:60%
  • 描述相似度:85%

建议:

  • - 在描述中明确区分
  • 重命名以使目的更加明确

项目结构

skill-dedup-scanner/
├── scripts/
│ ├── main.py # 主入口
│ ├── skill_scanner.py # 技能扫描器
│ ├── similarity_checker.py # 相似度计算器
│ ├── report_generator.py # 报告生成器
│ └── locale_loader.py # 多语言支持
├── locales/
│ ├── en.json # 英文翻译
│ └── zh.json # 中文翻译
├── references/
│ └── best_practices.md # 技能命名最佳实践
└── output/ # 生成的报告

环境要求

  • - Python 3.7+
  • PyYAML(pip install pyyaml)

许可证

MIT

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 skill-dedup-scanner-1776191585 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 skill-dedup-scanner-1776191585 技能

通过命令行安装

skillhub install skill-dedup-scanner-1776191585

下载

⬇ 下载 skill-dedup-scanner v1.0.0(免费)

文件大小: 12.51 KB | 发布时间: 2026-4-17 16:08

v1.0.0 最新 2026-4-17 16:08
Initial release - Multi-language skill duplicate detector

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部