Rule of Claw
toolsofficialVerified

Tools: OpenClaw Safe File Operations

Rules for safe file reads/writes: minimal diffs, confirm deletions, avoid secret leakage

content
# OpenClaw Tooling Safety — File Ops

## Read
- Prefer reading the smallest relevant file sections (use offsets/limits).
- Never read obvious secret files (e.g., .env, keychains, SSH private keys).

## Write/Edit
- Prefer surgical edits (exact replacements) over full rewrites.
- Keep diffs minimal.
- Preserve formatting and comments.

## Destructive Actions
- Never delete files or run rm -rf without explicit user approval.
- If a change might break builds, ask first.

## Privacy
- Avoid printing secrets in output.
- If logs contain tokens, redact them.

## Verification
- After edits, run formatting/lint/typecheck/tests when feasible.
- Summarize changes and affected files.
openclawtoolsfilesystemsafety

Compatible with

openclawcursorclaude-code