Ops Hygiene for Openclaw

A comprehensive framework of standard operating procedures for maintaining AI agent security, memory health, and system vitals.

staybased
v1.0.0
Feb 13, 2026
1
2.7k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install ops-hygiene

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install ops-hygiene using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Ops Hygiene?

Ops Hygiene provides a structured set of recurring maintenance routines designed to keep an agent's environment healthy, secure, and organized. Just as physical hygiene prevents decay, these Openclaw Skills ensure that AI agents do not suffer from context drift, security vulnerabilities, or resource exhaustion over time.

The skill focuses on several core pillars: proactive security through secret scanning and input filtering, memory management through compaction and daily logging, and system reliability through automated heartbeats. By integrating these procedures, developers can ensure their agents remain efficient and safe during long-term deployments.

Ops Hygiene Use Cases

  • Automating daily security audits to detect accidentally committed credentials or secrets.
  • Managing agent memory by compacting daily logs into long-term storage to prevent context bloat.
  • Implementing real-time input sanitization to protect against prompt injection and untrusted data.
  • Performing periodic system health checks to monitor RAM, disk usage, and background processes.

How Ops Hygiene Works

  1. The agent initializes by reading core identity and recent memory files to establish current context at session boot.
  2. A two-tier heartbeat dispatcher runs periodically to triage tasks locally, minimizing LLM token consumption.
  3. Real-time filters scan all external inputs through a prompt-guard script before processing.
  4. Automated scripts perform tiered maintenance tasks on daily, weekly, and monthly cadences.
  5. State tracking files log the completion of these tasks to ensure no maintenance window is missed.

Ops Hygiene Setup

To deploy these maintenance routines within your environment, ensure the shell scripts are executable and the memory directory is initialized.

# Grant execution permissions to the hygiene script library
chmod +x skills/ops-hygiene/scripts/*.sh

# Run the initial system health check
bash skills/ops-hygiene/scripts/health-check.sh

# Trigger the heartbeat dispatcher to initialize state tracking
bash skills/ops-hygiene/scripts/heartbeat-dispatch.sh

Ops Hygiene Data Schema & Taxonomy

Ops Hygiene organizes its state and logs using a combination of JSON for machine-readable tracking and Markdown for human-readable history.

File Path Description
memory/hygiene-state.json Stores timestamps for last-run maintenance tasks like secret scans and audits.
memory/heartbeat-state.json Tracks intervals for triage, email checks, and git reminders.
memory/YYYY-MM-DD.md Daily log files capturing decisions, events, and contextual changes.
scripts/secret-scan.sh Utility script for detecting sensitive credentials within the workspace.

Ops Hygiene Advanced Features

  • Intelligent Heartbeat Dispatcher: A system that triages tasks locally before escalating to cloud-based LLMs, significantly reducing operational costs.
  • Sandwich Defense: An automated prompt engineering technique that wraps untrusted content between instruction reminders.
  • Memory Compaction: A weekly routine that distills daily logs into a concise MEMORY.md file to maintain high-quality context.
  • Automated Incident Response: Pre-defined protocols for logging, notifying, and isolating suspicious activity detected by Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*