OpenClaw Sacred Rules for Openclaw

A critical collection of safety protocols and automation scripts designed to protect configuration integrity and prevent authentication failures.

jayrizz
v1.0.0
Feb 26, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install openclaw-sacred-rules

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 openclaw-sacred-rules 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 OpenClaw Sacred Rules?

OpenClaw Sacred Rules is an essential framework for developers who need to manage their environment without risking system-wide disasters. This skill provides a set of eight non-negotiable rules learned from production failures, alongside a suite of scripts for safe backups, configuration validation, and authentication troubleshooting. By integrating these practices, users of Openclaw Skills can ensure that their AI agent configurations remain stable even when making complex changes or enabling experimental features like sandbox mode.

The core philosophy is to move away from error-prone manual edits toward programmatic, validated interactions with the system's underlying JSON files. This approach minimizes the risk of cascading failures and provides a clear recovery path should something go wrong.

OpenClaw Sacred Rules Use Cases

  • Safely editing openclaw.json using automated CLI tools instead of manual text editors.
  • Resolving simultaneous authentication failures across multiple AI providers.
  • Backing up sensitive configuration data before enabling sandbox environments.
  • Clearing stale cooldown states from auth-profiles.json via script.
  • Recovering corrupted sessions where tool_use lacks a corresponding tool_result.

How OpenClaw Sacred Rules Works

  1. The user identifies a need for configuration change or troubleshooting within their Openclaw Skills setup.
  2. Validation scripts are run to ensure the current state is healthy before any modifications are attempted.
  3. Backups are generated and verified for integrity using JSON parsing tools to ensure they are valid for recovery.
  4. Authentication commands are executed within the correct environment context to prevent credential leaks or context errors.
  5. Specialized reset scripts are used to clear in-memory states or corrupted session data if provider errors persist.

OpenClaw Sacred Rules Setup

To begin using these safety protocols within your Openclaw Skills environment, ensure the utility scripts are executable:

chmod +x scripts/*.sh
chmod +x scripts/*.py

Validate your current configuration before making changes:

python3 scripts/config_validator.py ~/.openclaw/openclaw.json

Always source your environment before performing authentication tasks:

source ~/.openclaw/.env && openclaw auth status

OpenClaw Sacred Rules Data Schema & Taxonomy

The skill manages and protects the following data structures:

Data Component Purpose Access Protocol
openclaw.json Primary system configuration Managed via config_validator.py; manual edits forbidden
auth-profiles.json Provider credentials and metadata Accessed via auth_checker.sh or openclaw status
backup-file.json Validated system snapshots Verified using python3 -m json.tool before confirmation
.env Environment variables Must be sourced before any CLI auth commands

OpenClaw Sacred Rules Advanced Features

  • Safe Backup Script: Automates file preservation with integrated integrity verification.
  • Cooldown Reset Automation: Resolves persistent provider unavailable errors by clearing expired timestamps from the config.
  • Config Validation Engine: Prevents the addition of unverified keys that could destabilize the agent.
  • Auth Context Enforcement: Ensures all commands run with the correct environment variables to prevent auth leakage.
  • Session Recovery Protocols: Provides a structured method to fix corrupted tool-use flows via session resets.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*