← 返回 Skills 市场
edde-101

Skill-cleaner

作者 Edde-101 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
50
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install skill2cleaner
功能描述
扫描工作区所有 Skill,检测授权、配置和环境变量是否齐全, 并可按需禁用或卸载无效 Skill。
安全使用建议
This skill appears to implement the advertised feature set, but review before use: - It calls the 'openclaw' command-line tool, yet the skill declares no required binaries; ensure the 'openclaw' CLI is installed and works on the agent host or the script will fail or report nothing. - The script reads ~/.openclaw/openclaw.json and the workspace skills directory to determine disabled/installed skills; make sure you trust the environment and that these paths are correct for your setup. - The code checks for environment variable names found in other skills' manifests (to detect missing API keys) — it only checks presence and does not exfiltrate values, but it will report which keys are missing. If you have sensitive naming conventions you do not want enumerated, be aware of this behavior. - The 'clean' action runs 'openclaw skills disable' or 'openclaw skills uninstall --force' — these are destructive operations. Always run 'report' first, inspect the list, and preferably run the cleanup in a controlled environment or with a backup. - The implementation contains a bug: diagnose_skill references SkillStatus.CONFIG_INVALID which is not defined in SkillStatus; this can cause runtime exceptions when a manifest is missing or invalid. Consider fixing or testing the script yourself before relying on automated cleanup. If you decide to install: run the script manually first (python3 skill_cleaner.py) to verify output, inspect the code locally, and avoid running the 'clean' action until you confirm the report is accurate.
功能分析
Type: OpenClaw Skill Name: skill2cleaner Version: 1.0.0 The skill bundle is a management utility designed to audit and maintain the health of installed OpenClaw skills. The Python script (skill_cleaner.py) scans the local workspace, checks for missing environment variables defined in skill manifests, and provides options to disable or uninstall invalid skills using the 'openclaw' CLI. The code uses safe subprocess execution (passing arguments as lists) and limits its file operations to the standard OpenClaw configuration and skill directories, showing no signs of malicious intent or data exfiltration.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The code implements scanning, checking manifests, inspecting env vars, and invoking 'openclaw skills disable/uninstall', which matches the described purpose. However the skill metadata declares no required binaries while the implementation calls the 'openclaw' CLI via subprocess; this undeclared dependency is an inconsistency that will make the skill non-functional or behave unexpectedly when 'openclaw' is missing.
Instruction Scope
SKILL.md instructs running the included script to report/clean skills. The script reads the workspace skills directory and ~/.openclaw/openclaw.json and inspects other skills' SKILL.md/skill.yaml files to determine required env vars. It only checks for presence of env vars (does not print or transmit their values) and uses the 'openclaw' CLI to perform disable/uninstall. SKILL.md does not mention these filesystem/config dependencies or the need for the 'openclaw' binary, which is a documentation gap.
Install Mechanism
There is no external install step or network download; the repository includes the Python script and a small requirements.txt (pyyaml). No remote code fetch is performed during runtime.
Credentials
The skill declares no required environment variables. At runtime it reads whatever env var names it discovers in other skills' manifests to check whether they are set — this is proportionate to diagnosing missing API keys, but it means the script enumerates names of env vars present in the system's environment and will report which are missing. It does not itself request, store, or transmit secret values, but the ability to scan many env var names could reveal which vars are in use.
Persistence & Privilege
The skill does not request permanent 'always' inclusion and does not modify other skills' configurations directly; it invokes the 'openclaw' CLI to disable or uninstall skills (including '--force' for uninstall) which is appropriate for its purpose but is a privileged action — ensure the user running the agent consents before executing cleanup.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install skill2cleaner
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /skill2cleaner 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of skill-cleaner. - Scans all installed skills to detect missing authorization, configuration, or environment variables. - Generates a detailed skill health report with the `report` action. - Allows users to disable or uninstall invalid skills using the `clean` action. - Supports trigger phrases for health checks and cleanup scenarios. - Guides users through identifying and removing unusable skills interactively.
元数据
Slug skill2cleaner
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Skill-cleaner 是什么?

扫描工作区所有 Skill,检测授权、配置和环境变量是否齐全, 并可按需禁用或卸载无效 Skill。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 50 次。

如何安装 Skill-cleaner?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install skill2cleaner」即可一键安装,无需额外配置。

Skill-cleaner 是免费的吗?

是的,Skill-cleaner 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Skill-cleaner 支持哪些平台?

Skill-cleaner 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Skill-cleaner?

由 Edde-101(@edde-101)开发并维护,当前版本 v1.0.0。

💬 留言讨论