agent-architecture-guide
Installation
SKILL.md
Agent Architecture Guide
Practical patterns for building reliable OpenClaw agents.
Every pattern here solved a real problem in a production agent. They are strong defaults, not laws of nature.
For automated diagnostics based on these patterns, see the companion skill: agent-health-optimizer.
Patterns
1. WAL Protocol (Write-Ahead Log)
Source: Adapted from proactive-agent by halthelobster
Problem: User corrects you, you acknowledge, context resets, correction is lost.
Solution: Write to file BEFORE responding.