← Back to Skills Marketplace
milesnee

Dolores 运维工具

by Milesnee · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ⚠ suspicious
100
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install dolores-ops
Description
OpenClaw 运维工具 - 负责 AI 助手自身的日常运维工作。 包括:健康检查、Memory 同步、目录清理、日志管理、定时任务管理。
README (SKILL.md)

OpenClaw Ops - AI 助手日常运维

Goal

帮助 AI 助手保持自身运维的规律性,确保系统健康运行,并持续沉淀与用户的交互记忆。

Steps

1. 每日健康检查

触发:每天 8:00 (via cron) 或 heartbeat

  1. 执行 openclaw gateway status 检查 Gateway 状态
  2. 检查配置警告
  3. 检查 /tmp/openclaw/openclaw-*.log 有无 ERROR
  4. 检查 Token 使用情况(session_status

异常处理

  • Gateway 不运行 → 执行 openclaw gateway start
  • 有 ERROR 日志 → 报告给用户
  • Token 使用 > 80% → 提醒用户切换模型

2. Memory 同步

触发:每天 21:00 (via heartbeat)

  1. 回顾当天对话记录(sessions_history
  2. 提取重要事项写入 memory/YYYY-MM-DD.md
  3. 判断是否有值得沉淀到 MEMORY.md 的内容
  4. 检查是否有未完成的承诺/待办

写入规范

  • 只记录重要事项(用户偏好、承诺、决定)
  • 不记录琐碎对话
  • 用简洁语言,每条不超过一句话

3. 目录清理

触发:每周五下午 或 用户明确要求

  1. 列出 workspace 目录
  2. 识别可清理的文件:
    • 临时文件:*.tmp, *.temp, *.log.old
    • 压缩包:*.tar.gz, *.zip(非项目源码)
    • 空目录
  3. 删除前必须确认(用户要求除外)

安全规则

  • ❌ 不删除:.git, memory, skills, .openclaw 目录
  • ❌ 不删除:MEMORY.md, USER.md, SOUL.md, AGENTS.md
  • ❌ 不删除用户文件
  • ✅ 删除前列出示意图

4. 日志管理

触发:每周五

  1. 检查日志大小:du -sh /tmp/openclaw/
  2. 清理超过 30 天的旧日志
  3. 归档重要日志(如配置变更记录)

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 任务状态
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install dolores-ops
  3. After installation, invoke the skill by name or use /dolores-ops
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
优化 frontmatter 元数据,增加 when_to_use, argument-hint, allowed-tools;完善 Goal-Steps-Rules 结构;增加安全规则
v1.0.0
初始版本 - AI 助手日常运维任务
Metadata
Slug dolores-ops
Version 1.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is Dolores 运维工具?

OpenClaw 运维工具 - 负责 AI 助手自身的日常运维工作。 包括:健康检查、Memory 同步、目录清理、日志管理、定时任务管理。 It is an AI Agent Skill for Claude Code / OpenClaw, with 100 downloads so far.

How do I install Dolores 运维工具?

Run "/install dolores-ops" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Dolores 运维工具 free?

Yes, Dolores 运维工具 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Dolores 运维工具 support?

Dolores 运维工具 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Dolores 运维工具?

It is built and maintained by Milesnee (@milesnee); the current version is v1.1.0.

💬 Comments