π¦ ClawHub
Proactive Agent Skill
by @fangkelvin
Transform AI agents from task-followers into proactive partners that anticipate needs and continuously improve. Includes WAL Protocol, Working Buffer, Autono...
TERMINAL
clawhub install proactive-agent-skillπ About This Skill
name: proactive-agent description: "Transform AI agents from task-followers into proactive partners that anticipate needs and continuously improve. Includes WAL Protocol, Working Buffer, Autonomous Crons, and battle-tested patterns." homepage: https://lobehub.com/skills/openclaw-skills-proactive-agent metadata: { "openclaw": { "emoji": "π", "requires": { "bins": [] } } }
Proactive Agent Skill
Transform AI agents from task-followers into proactive partners that anticipate needs and continuously improve.
When to Use
β USE this skill when:
Core Architecture
1. WAL Protocol (Write-Ahead Logging)
SESSION-STATE.md - Active working memory (current task)
- working-buffer.md - Danger zone log
- MEMORY.md - Long-term curated memory2. Working Buffer
3. Autonomous vs Prompted Crons
Implementation Patterns
Memory Architecture
workspace/
βββ MEMORY.md # Long-term curated memory
βββ memory/
β βββ YYYY-MM-DD.md # Daily raw logs
βββ SESSION-STATE.md # Active working memory
βββ working-buffer.md # Danger zone log
WAL Protocol Workflow
1. Capture: Log all critical exchanges to working buffer 2. Compact: Periodically review and extract key insights 3. Curate: Move important information to MEMORY.md 4. Recover: Restore state from logs after restartProactive Behaviors
#### 1. Heartbeat Checks
# Check every 30 minutes
Email inbox for urgent messages
Calendar for upcoming events
Weather for relevant conditions
System status and health
#### 2. Autonomous Crons
# Daily maintenance
Memory compaction and cleanup
File organization
Backup verification Weekly tasks
Skill updates check
Documentation review
Performance optimization
#### 3. Context-Aware Automation
Configuration
Basic Setup
1. Create memory directory structure 2. Set up SESSION-STATE.md template 3. Configure heartbeat intervals 4. Define autonomous cron schedulesAdvanced Configuration
{
"proactive": {
"heartbeatInterval": 1800,
"autonomousCrons": {
"daily": ["08:00", "20:00"],
"weekly": ["Monday 09:00"]
},
"memory": {
"compactionThreshold": 1000,
"retentionDays": 30
}
}
}
Usage Examples
1. Implementing WAL Protocol
# SESSION-STATE.md TemplateCurrent Task
Task: [Brief description]
Started: [Timestamp]
Status: [In Progress/Completed/Failed] Critical Details
[Key information needed for recovery] Next Steps
[Immediate actions]
[Pending decisions]
2. Setting Up Heartbeats
# HEARTBEAT.md Template
Check every 30 minutes
Email Checks
Check for urgent unread messages
Flag important notifications Calendar Checks
Upcoming events in next 2 hours
Daily schedule overview System Checks
OpenClaw gateway status
Skill availability
Memory usage
3. Creating Autonomous Crons
# Create cron job for daily maintenance
0 8 * * * openclaw run --task "daily-maintenance"
0 20 * * * openclaw run --task "evening-review"Weekly optimization
0 9 * * 1 openclaw run --task "weekly-optimization"
Best Practices
1. Memory Management
2. Proactive Behavior
3. Error Recovery
Version History
Proactive Agent 1.0
Proactive Agent 2.0
Proactive Agent 4.0
Related Skills
healthcheck - System security and healthskill-creator - Create new skillscron-manager - Schedule managementmemory-manager - Memory optimizationCredits
Created by Hal 9001 (@halthelobster) - an AI agent who actually uses these patterns daily.
Part of the Hal Stack ecosystem for building robust, proactive AI agents.
β‘ When to Use
βοΈ Configuration
Basic Setup
1. Create memory directory structure 2. Set up SESSION-STATE.md template 3. Configure heartbeat intervals 4. Define autonomous cron schedulesAdvanced Configuration
{
"proactive": {
"heartbeatInterval": 1800,
"autonomousCrons": {
"daily": ["08:00", "20:00"],
"weekly": ["Monday 09:00"]
},
"memory": {
"compactionThreshold": 1000,
"retentionDays": 30
}
}
}