← 返回 Skills 市场
100
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install dolores-ops
功能描述
OpenClaw 运维工具 - 负责 AI 助手自身的日常运维工作。 包括:健康检查、Memory 同步、目录清理、日志管理、定时任务管理。
使用说明 (SKILL.md)
OpenClaw Ops - AI 助手日常运维
Goal
帮助 AI 助手保持自身运维的规律性,确保系统健康运行,并持续沉淀与用户的交互记忆。
Steps
1. 每日健康检查
触发:每天 8:00 (via cron) 或 heartbeat
- 执行
openclaw gateway status检查 Gateway 状态 - 检查配置警告
- 检查
/tmp/openclaw/openclaw-*.log有无 ERROR - 检查 Token 使用情况(
session_status)
异常处理:
- Gateway 不运行 → 执行
openclaw gateway start - 有 ERROR 日志 → 报告给用户
- Token 使用 > 80% → 提醒用户切换模型
2. Memory 同步
触发:每天 21:00 (via heartbeat)
- 回顾当天对话记录(
sessions_history) - 提取重要事项写入
memory/YYYY-MM-DD.md - 判断是否有值得沉淀到
MEMORY.md的内容 - 检查是否有未完成的承诺/待办
写入规范:
- 只记录重要事项(用户偏好、承诺、决定)
- 不记录琐碎对话
- 用简洁语言,每条不超过一句话
3. 目录清理
触发:每周五下午 或 用户明确要求
- 列出 workspace 目录
- 识别可清理的文件:
- 临时文件:
*.tmp,*.temp,*.log.old - 压缩包:
*.tar.gz,*.zip(非项目源码) - 空目录
- 临时文件:
- 删除前必须确认(用户要求除外)
安全规则:
- ❌ 不删除:
.git,memory,skills,.openclaw目录 - ❌ 不删除:
MEMORY.md,USER.md,SOUL.md,AGENTS.md - ❌ 不删除用户文件
- ✅ 删除前列出示意图
4. 日志管理
触发:每周五
- 检查日志大小:
du -sh /tmp/openclaw/ - 清理超过 30 天的旧日志
- 归档重要日志(如配置变更记录)
5. 定时任务管理
触发:用户要求查看或创建 cron 任务
查看:openclaw cron list
创建:
openclaw cron create --name "task-name" --cron "0 8 * * *" --system-event "healthcheck"
常用 Cron:
- 每天 8 点:
0 8 * * * - 每天 21 点:
0 21 * * * - 每周五:
0 17 * * 5
Rules
- 定时任务(cron)创建后告知用户任务 ID
- 删除操作必须先确认再执行
- Memory 写入用简洁语言
- 异常情况立即报告给用户
- 不修改用户配置,只做运维操作
输出格式
完成任务后,简洁汇报:
✅ 早间健康检查完成
- Gateway: 运行中 (pid 44380)
- 配置警告: 1 个 (clawbnb-hub 已禁用)
- 日志: 无 ERROR
✅ Memory 同步完成
- 今日记录: 3 条
- 待沉淀: 1 条(关于用户偏好)
Heartbeat 配置示例
在 HEARTBEAT.md 中添加:
## 🤖 日常运维任务
### 1. 早间健康检查 (08:00-09:00)
- 检查 Gateway 状态
- 检查配置警告
- 检查日志 ERROR
### 2. 晚间 Memory 同步 (21:00-22:00)
- 回顾当天对话,写入 memory/YYYY-MM-DD.md
- 更新 MEMORY.md 重要事项
### 3. 每周五下午:周度清理
- 清理临时文件
- 检查过期日志
- 检查 cron 任务状态
安全使用建议
Before installing, verify the following: (1) confirm what platform APIs/commands actually exist for sessions (the doc mentions `sessions_history` and `session_status` but allowed-tools lists only sessions_list) — if those APIs grant access to full conversation logs, understand retention and redaction policies; (2) decide and document what types of user data are allowed to be persisted to MEMORY.md and get explicit user consent; (3) require interactive confirmation for any deletion or cron-creation operations and consider a dry-run/read-only mode for audit; (4) ask the publisher for source/homepage or code to review (skill is from an unknown source); (5) if you want to reduce blast radius, restrict autonomous invocation or require manual approval for actions that modify cron or persistent files.
功能分析
Type: OpenClaw Skill
Name: dolores-ops
Version: 1.1.0
The 'dolores-ops' skill bundle is designed for routine maintenance of the OpenClaw agent, including health checks, log management, and memory synchronization. While it requests high-privilege tools like 'exec' and 'write' to manage system logs and cron jobs via the 'openclaw' CLI, the instructions in SKILL.md include explicit safety rules, such as requiring user confirmation before deleting files and protecting critical directories (e.g., .git, memory, skills). There is no evidence of data exfiltration, unauthorized remote execution, or malicious intent.
能力评估
Purpose & Capability
The name/description (assistant ops: health checks, memory sync, cleanup, logs, cron) is largely consistent with the instructions (checking gateway, logs, token usage, cleaning temp files, writing memory files, creating cron). Nothing demands unrelated cloud credentials or external services. However the skill refers to platform-specific commands like `sessions_history` and `session_status` that are not explicitly enumerated in the allowed-tools list, which suggests either missing documentation or an assumption about available platform APIs.
Instruction Scope
Instructions explicitly require reading conversation/session history and writing persistent memory files (memory/YYYY-MM-DD.md, MEMORY.md). Those actions are privacy-sensitive and should be narrowly scoped and consented to. The skill also performs deletion and cron creation. Although it lists safe rules (do not delete certain dirs; require confirmation), the runtime instructions grant broad discretion (list workspace, identify and delete files, archive logs) — without a precise, auditable mapping of which commands will run or which session APIs are available, the scope is broader than the description's safeguards fully constrain.
Install Mechanism
Instruction-only skill with no install spec and no third-party downloads. This minimizes code-installation risk; nothing will be written to disk by an installer. The runtime, however, relies on platform CLIs/APIs being present (e.g., `openclaw` CLI and session-related commands).
Credentials
The skill declares no required environment variables or credentials, which is proportionate. Nevertheless, it will access sensitive local artifacts (session histories, MEMORY.md, USER.md, logs under /tmp/openclaw/) and can create cron tasks. Those are powerful capabilities even without explicit credentials and should be justified to users beforehand.
Persistence & Privilege
always:false (not force-installed) and user-invocable=true are reasonable. The skill is allowed to create cron jobs and write persistent memory files — a normal capability for an ops tool but one that increases long-term impact. Consider limiting autonomous invocation or requiring explicit user confirmation for cron creation and memory writes.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install dolores-ops - 安装完成后,直接呼叫该 Skill 的名称或使用
/dolores-ops触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
优化 frontmatter 元数据,增加 when_to_use, argument-hint, allowed-tools;完善 Goal-Steps-Rules 结构;增加安全规则
v1.0.0
初始版本 - AI 助手日常运维任务
元数据
常见问题
Dolores 运维工具 是什么?
OpenClaw 运维工具 - 负责 AI 助手自身的日常运维工作。 包括:健康检查、Memory 同步、目录清理、日志管理、定时任务管理。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 100 次。
如何安装 Dolores 运维工具?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install dolores-ops」即可一键安装,无需额外配置。
Dolores 运维工具 是免费的吗?
是的,Dolores 运维工具 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Dolores 运维工具 支持哪些平台?
Dolores 运维工具 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Dolores 运维工具?
由 Milesnee(@milesnee)开发并维护,当前版本 v1.1.0。
推荐 Skills