← 返回 Skills 市场
50
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cron-tool
功能描述
Perform cron-tool operations from the command line.
使用说明 (SKILL.md)
Cron - CLI Utility
Command-line utility for cron operations.
Quick Start
cron-tool --help
Features
- Standard command-line interface
- Common flags and arguments
- Pipe and redirect compatible
- Shell integration
Examples
# Show help
cron-tool --help
# Basic usage
cron-tool [options] [arguments]
# Pipe input
echo "input" | cron-tool [options]
安全使用建议
This skill is a cron-management CLI and mostly matches its description, but do not install or run it on important systems without inspection and testing. Specific concerns: (1) The script depends on the system 'crontab' command but the skill metadata doesn't declare that — confirm 'crontab' is present. (2) The remove-by-line-number implementation appears buggy and can result in overwriting your crontab with an empty file (data loss). (3) The tool can modify your crontab (and if run as an elevated user could affect critical jobs). Recommended steps before using: review and fix the remove_cron logic (ensure the new crontab is correctly reconstructed), add safety confirmations for destructive operations, backup your crontab (crontab -l > backup) and test in a non-production account or container, and update the skill metadata to declare the crontab dependency and note EDITOR usage. If you lack the ability to audit/fix the code, avoid installing it on systems where losing scheduled jobs would be harmful.
功能分析
Type: OpenClaw Skill
Name: cron-tool
Version: 1.0.0
The cron-tool bundle provides a utility for managing system persistence via crontab, which is a high-risk capability. While the script (scripts/cron.py) is well-structured and lacks explicit malicious intent or data exfiltration, it allows an AI agent to add, enable, and edit cron jobs, providing a direct path for establishing persistence on a system. Additionally, the 'edit' functionality relies on the 'EDITOR' environment variable to execute a subprocess, and the 'restore' function allows overwriting the entire crontab from an external file, both of which are risky operations in an automated agent environment.
能力评估
Purpose & Capability
The code implements a cron management CLI that reads and writes the user's crontab via the system crontab command. That capability matches the name/description, but the skill metadata declares no required binaries or config paths while the script depends on the 'crontab' binary and a writable user crontab. The omission of this dependency is an incoherence that could mislead users/installers.
Instruction Scope
SKILL.md is a simple CLI usage doc and stays scoped, but the included script performs sensitive operations: it reads and replaces the user's crontab, writes backup files, and launches an editor. More importantly, remove_cron has a logic bug: when removing by line number it pops the line from the in-memory list but then writes new_content from a different (still-empty) list, which will likely overwrite the crontab with an empty file — i.e., destructive data loss. There is minimal confirmation for destructive actions (only restore prompts).
Install Mechanism
No install spec (instruction-only + included script). Nothing is downloaded or installed by the manifest itself. Risk comes from the script's runtime behavior rather than an installer.
Credentials
No required environment variables are declared, and none are necessary for basic operation. The script does consult EDITOR via os.environ.get('EDITOR') to pick an editor — that's reasonable but not declared in metadata. No secrets or external service credentials are requested.
Persistence & Privilege
The skill does not request persistent/always-on privileges. However it performs privileged local actions in the sense of modifying the current user's crontab; if run by a privileged user it can alter scheduled jobs systemically. Autonomous invocation is allowed by default (not flagged here) — combine that with the destructive bug and it increases risk if the agent runs the skill without human oversight.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install cron-tool - 安装完成后,直接呼叫该 Skill 的名称或使用
/cron-tool触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
常见问题
Cron Tool 是什么?
Perform cron-tool operations from the command line. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 50 次。
如何安装 Cron Tool?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install cron-tool」即可一键安装,无需额外配置。
Cron Tool 是免费的吗?
是的,Cron Tool 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Cron Tool 支持哪些平台?
Cron Tool 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Cron Tool?
由 BIN(@dinghaibin)开发并维护,当前版本 v1.0.0。
推荐 Skills