Install
openclaw skills install @helloyxs/skill-subtractionAudit installed AI skills and recommend keep / archive / uninstall to keep your skill set lean and focused. Triggers when the user asks for a skill audit, to check or list installed skills, do a skill subtraction or cleanup, decide which skills to keep or delete, declutter or slim down their skill l
openclaw skills install @helloyxs/skill-subtractionAudit your installed AI skills and cut the fat — a systematic, score-based review of every installed skill with clear keep / archive / uninstall recommendations.
Most people keep adding skills — install one, see another, install that too — until dozens pile up and few get real use. Regular subtraction keeps the set lean:
| Dependency | Requirement | Notes |
|---|---|---|
| Python | 3.10+ | Stdlib only, no third-party deps |
| Runtime | python3 on PATH | The audit script is invoked by this skill |
| Privileges | Non-root | Scan is read-only; uninstall/archive requires user confirmation |
| Platforms | WorkBuddy / Codex / Claude Code / Cursor / Cline / Continue / LobsterAI | Follows the ~/.<agent>/skills/ directory convention |
| Env vars | None | No environment variables required |
Never ask the user to select a language upfront. Automatically detect and choose the report language based on the user's input:
--lang zh--lang enOnce determined, stick to that language for all workflow steps (scan, evaluation, report, confirmation).
Run the audit script; it auto-detects the hosting agent platform from its own path and scans that platform's installed skills (plus project-level skills in the current workspace). Pass --lang zh|en to match the conversation language:
python3 scripts/audit_skills.py --lang zh # or --lang en
python3 scripts/audit_skills.py --agent codex
python3 scripts/audit_skills.py --all
python3 scripts/audit_skills.py --skills-dir "C:\Users\admin\AppData\Roaming\LobsterAI\SKILLs"
python3 scripts/audit_skills.py --workspace /path/to/workspace
Cross-platform notes: the script handles Windows GBK encoding and non-standard AppData/Roaming/<Agent>/SKILLs paths. Every failure point logs an issue into the JSON issues field and prints a stderr summary. Issue types: missing_skill_md, unreadable_skill_md, permission_denied, broken_symlink (error level); no_frontmatter, malformed_frontmatter, no_name_field, empty_description, not_a_directory (warning level). Exit codes: 0 = clean, 2 = scan done with error-level issues (CI-friendly).
Output is a JSON array; each entry includes name, agent, scope, path, description, agent_created, has_scripts, has_references, file_count, dir_size, last_modified, version. Plus source_stats (install-source counts) and batch_installs (≥ 5 skills created the same day → flagged as a batch).
Apply the classification and scoring from the Evaluation framework section (full detail in references/evaluation_framework.md — read it for complex scenarios):
Map the composite score to keep / archive / uninstall using the decision matrix and special rules in the Evaluation framework section.
Using the language determined in the auto-detection section, output the matching template:
# 技能减法审计报告
**审计时间**:YYYY-MM-DD
**技能总数**:N 个(用户级 X 个,项目级 Y 个)
## 保留(N 个)
| 技能 | 类型 | 保留理由 | 使用频率 |
|------|------|---------|---------|
| ... | ... | ... | ... |
## 归档(N 个)
| 技能 | 类型 | 归档理由 | 重新激活条件 |
|------|------|---------|------------|
| ... | ... | ... | ... |
## 卸载(N 个)
| 技能 | 类型 | 卸载理由 | 风险评估 |
|------|------|---------|---------|
| ... | ... | ... | ... |
## 汇总建议
- 当前技能集健康度:高/中/低
- 主要问题:...
- 下次审计建议时间:...
# Skill Subtraction Audit Report
**Audit Date**: YYYY-MM-DD
**Total Skills**: N (User-level: X, Project-level: Y)
## Keep (N)
| Skill | Type | Reason to Keep | Usage Frequency |
|-------|------|---------------|-----------------|
| ... | ... | ... | ... |
## Archive (N)
| Skill | Type | Reason to Archive | Reactivation Condition |
|-------|------|--------------------|-----------------------|
| ... | ... | ... | ... |
## Uninstall (N)
| Skill | Type | Reason to Uninstall | Risk Assessment |
|-------|------|---------------------|-----------------|
| ... | ... | ... | ... |
## Summary
- Current skill set health: High/Medium/Low
- Main issues: ...
- Recommended next audit: ...
After outputting the report, ask the user whether to execute cleanup. Never uninstall skills without consent.
~/.<agent>/skill-archive/<skill-name>.md, then uninstall) / keep (no action)Show each action before executing; proceed only after explicit confirmation.
| Frequency | Scenario |
|---|---|
| Quarterly | When skill count exceeds 10 |
| After each project ends | Clean up project-level skills |
| When business direction shifts | Re-evaluate business-type skills |
| When feeling "too many skills" | Anytime |
scripts/audit_skills.py — auto-detects the hosting agent platform, scans all installed skills, parses frontmatter, outputs structured JSONreferences/evaluation_framework.md — full bilingual framework: classification, 6-metric scoring detail, decision matrix, special rules, dedup priority, archive standard and template. Read it for complex scenarios (batch dedup, archive recovery, platform-preinstalled batch filtering)examples/ — sample audit reports (English & Chinese), useful as expected-output references and demo materialCore scoring tables and decision matrix below for daily use. Full detail (classification, dedup priority, archive standard & template) in
references/evaluation_framework.md— read it for complex scenarios.
| Metric | Weight | Levels & scores |
|---|---|---|
| Usage frequency | 25 | high 25 / medium 16 / low 8 / zero 4 |
| Necessity | 20 | irreplaceable 20 / has alternatives 12 / nice-to-have 4 |
| Current relevance | 20 | match 20 / partial 12 / irrelevant 4 |
| Enabled status | 15 | enabled 15 / disabled but recently invoked 9 / disabled & never invoked 3 |
| Maintenance | 10 | active ≤ 30d 10 / normal 30–90d 6 / stagnant > 90d 3 |
| Unique value | 10 | unique 10 / partially unique 6 / complete overlap 3 |
Composite = weighted sum, range 24–100.
| Score | Recommendation | Description |
|---|---|---|
| 80–100 | Keep | High-value, master deeply |
| 50–79 | Archive | Save config, uninstall, re-activate when needed |
| 24–49 | Uninstall | Low value, clean up directly |
references/evaluation_framework.md §4)~/.<agent>/skill-archive/<skill-name>.md (see Step 5); full steps and file template in references/evaluation_framework.md §5