Detects duplicate or similar skills that may cause model confusion.
bash
# Auto-detect language
python3 scripts/main.py ~/.openclaw/workspace/skills/
# Specify language
python3 scripts/main.py ~/.openclaw/workspace/skills/ --lang en
python3 scripts/main.py ~/.openclaw/workspace/skills/ --lang zh
bash
# Custom threshold (0-1)
python3 scripts/main.py ~/.openclaw/workspace/skills/ --threshold 0.8
# Output to file
python3 scripts/main.py ~/.openclaw/workspace/skills/ -o audit_report.md
# JSON output
python3 scripts/main.py ~/.openclaw/workspace/skills/ --json
# Verbose mode
python3 scripts/main.py ~/.openclaw/workspace/skills/ -v
OptionShortDescriptionDefault--lang``-lLanguage: en, zh, autoauto--threshold``-tSimilarity threshold (0-1)0.7--output``-oOutput file pathstdout--json``-jOutput in JSON formatfalse--verbose``-vVerbose outputfalse
Generates a detailed report with:
ScoreLevelAction> 0.85🔴 HighConsider merging or renaming0.7-0.85🟡 MediumClarify descriptions< 0.7✅ SafeNo action needed
--lang en)--lang zh)--lang auto) - Detects system localebash
$ python3 scripts/main.py ~/.openclaw/workspace/skills/
🔍 Scan Directory: /home/user/.openclaw/workspace/skills
📦 Total Skills: 15
✅ No Duplicate Skills Found
All skills have distinct names and descriptions. No optimization needed.
bash
$ python3 scripts/main.py ~/.openclaw/workspace/skills/ --threshold 0.6
🔍 Scan Directory: /home/user/.openclaw/workspace/skills
📦 Total Skills: 15
⚠️ Found 2 Groups of Similar Skills
### 1. 🔴 High Similarity Warning
**Skill A:** `tushare-finance`
**Skill B:** `stock-analyzer`
**Similarity Score:** 85%
**Analysis:**
- Name Similarity: 60%
- Description Similarity: 85%
**Recommendations:**
- Clarify the distinction in descriptions
- Rename to make purposes more distinct
text
skill-dedup-scanner/
├── scripts/
│ ├── main.py # Main entry point
│ ├── skill_scanner.py # Skill scanner
│ ├── similarity_checker.py # Similarity calculator
│ ├── report_generator.py # Report generator
│ └── locale_loader.py # Multi-language support
├── locales/
│ ├── en.json # English translations
│ └── zh.json # Chinese translations
├── references/
│ └── best_practices.md # Skill naming best practices
└── output/ # Generated reports
pip install pyyaml)MIT