← 返回 Skills 市场
zhangyi881

Workspace Auto Maintenance

作者 zhangyi881 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
87
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install workspace-auto-maintenance
功能描述
Automates OpenClaw workspace health checks and fixes issues like redundant files, permissions, naming, and Git commits across platforms.
安全使用建议
This tool will modify your workspace when run with --fix: it moves files into ./tmp, renames files under memory/, changes .ps1 ACLs on Windows, and will run git add/commit if a .git folder exists. Before installing or running: (1) review the included src/workspace_check.py source yourself; (2) run the script without --fix first to inspect its report; (3) back up your workspace or use a disposable/test repository; (4) ensure you understand which files the script considers 'non-essential' (it will move any root file not in its small whitelist); (5) be aware the package metadata does not declare required binaries (git, icacls), and the script will commit using your Git identity/config; (6) if you do not want autonomous modifications, restrict agent ability to invoke skills or disallow automated runs of this skill. If the developer intends automatic fixes, ask them to add a dry-run mode, explicit confirmation prompts, and to declare required binaries in the metadata.
功能分析
Type: OpenClaw Skill Name: workspace-auto-maintenance Version: 1.0.0 The skill performs automated workspace maintenance that involves high-privilege file system and shell operations. Specifically, `src/workspace_check.py` uses `shutil.move` to automatically relocate any root-level files not on a hardcoded allowlist to a temporary directory, and employs `subprocess.run` to modify file permissions using `icacls` (on Windows) and execute `git` commands. While these behaviors are aligned with the 'Auto Maintenance' purpose described in `SKILL.md`, the automated movement of potentially sensitive files and the use of shell execution for permission changes are risky capabilities that warrant caution.
能力评估
Purpose & Capability
Name/description align with the code: the script scans the workspace, renames/moves files, adjusts script permissions, and auto-commits Git changes — all consistent with an 'auto maintenance' tool.
Instruction Scope
SKILL.md instructs the user to run the Python script (and to use --fix to auto-repair). The code will move non-essential root files into a tmp folder, rename memory files, change ACLs on .ps1 files, and run git add/commit. These are local, modifying operations that can change or hide user data and create commits without interactive confirmation; the README does not adequately warn about risk or require an explicit confirmation/dry-run before performing destructive actions.
Install Mechanism
No install spec (instruction-only plus included script). That is low-install-risk — nothing is downloaded or written by an installer. The script itself is included in the package.
Credentials
Registry metadata claims 'required binaries: none', but the script calls external tools (git via subprocess, and icacls on Windows). It also uses os.getlogin() and will commit using whatever Git credentials/config are present. No environment variables or credentials are requested in metadata, yet the script can modify a Git repo and change ACLs — this mismatch should be declared and explained.
Persistence & Privilege
always:false and no special persistence requested. The skill does not try to modify other skills or global agent settings. However, because model invocation is allowed by default, an agent could run the script (including with --fix) autonomously unless restricted — note for the user.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install workspace-auto-maintenance
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /workspace-auto-maintenance 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of workspace-auto-maintenance. - Automates workspace health checks and provides a health score with problem identification. - Supports one-click fixing of common issues (file archiving, naming conventions, script permissions, auto-commit Git changes) using the --fix flag. - Allows for custom rule extensions. - Fully compatible with Windows, Linux, and macOS. - No extra dependencies; requires OpenClaw v0.9+ and Python 3.9+.
元数据
Slug workspace-auto-maintenance
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Workspace Auto Maintenance 是什么?

Automates OpenClaw workspace health checks and fixes issues like redundant files, permissions, naming, and Git commits across platforms. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 87 次。

如何安装 Workspace Auto Maintenance?

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

Workspace Auto Maintenance 是免费的吗?

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

Workspace Auto Maintenance 支持哪些平台?

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

谁开发了 Workspace Auto Maintenance?

由 zhangyi881(@zhangyi881)开发并维护,当前版本 v1.0.0。

💬 留言讨论