ralph-operations
Use when managing Ralph orchestration loops, analyzing diagnostic data, debugging hat selection, investigating backpressure, or performing post-mortem analysis
Why use this skill?
Optimize and troubleshoot your OpenClaw AI workflows with the ralph-operations skill. Manage agent loops, analyze diagnostic data, and debug complex task execution easily.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/paulpete/ralph-operationsWhat This Skill Does
The ralph-operations skill serves as the central control plane for managing the OpenClaw AI agent's orchestration loops. It provides a comprehensive suite of command-line utilities to inspect, monitor, debug, and manage the lifecycle of Ralph agents. Whether you are dealing with active execution threads in a primary workspace or navigating isolated worktrees, this skill gives you granular visibility into the agent's decision-making process, including hat selection, tool utilization, and event history.
Installation
To integrate this skill into your environment, use the OpenClaw CLI package manager:
clawhub install openclaw/skills/skills/paulpete/ralph-operations
Use Cases
- Debugging Agent Stall: When an agent appears to be looping or unresponsive, use
ralph loops logs <id> -fto watch real-time event streams and identify blocked tool calls or backpressure issues. - Post-Mortem Analysis: After a process finishes, inspect
.ralph/agent/summary.mdand the event history to understand exactly why a specific hat was selected or why a merge was rejected. - Workflow Recovery: If an automated merge fails, utilize the
retryandmergecommands to resolve conflicts without losing the work performed in a temporary worktree. - Diagnostics: Enable
RALPH_DIAGNOSTICS=1for deep performance profiling, which generates detailed audit logs in the.ralph/diagnostics/folder for root-cause analysis.
Example Prompts
- "Check if there are any active loops stuck in the needs-review state and give me a summary of the latest logs for the oldest one."
- "I think the agent got confused by the project structure. Can you show me the diff for loop a3f2 so I can see what files it modified before the crash?"
- "The primary loop is locked. Can you list the current worktrees, identify the stale processes, and prune anything that isn't actively running?"
Tips & Limitations
- Partial Matching: You don't need to type the full UUID for loops. Providing the last 4 characters (e.g.,
a3f2) is usually sufficient for most commands. - Safety: Always attempt a graceful stop with
ralph loops stop <id>before forcing a termination to ensure thathandoff.mdandtasks.jsonlfiles are flushed properly to disk. - Context: Remember that primary loops operate in the root, while worktrees operate in isolated subdirectories; commands are context-aware, so ensure you are in the correct directory when managing specific agent instances.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-paulpete-ralph-operations": {
"enabled": true,
"auto_update": true
}
}
}Tags
Flags: file-read, file-write, code-execution
Related Skills
verify-before-done
Prevent premature completion claims, repeated same-pattern retries, and weak handoffs. Use this skill to improve verification, strategy switching, and blocked-task reporting without changing personality or tone.
agent-health-diagnostics
Diagnose and fix the 4 most common OpenClaw agent failures — heartbeat spam, API rate limit cascades, channel death loops, and memory/embedding errors. Battle-tested across a 6-agent multi-host deployment.
harmonia
Check PyTorch, Transformers, and CUDA compatibility. Detect GPU, driver mismatches, and version conflicts in ML environments. Use when the user sets up ML/AI tools, installs torch or transformers, hits dependency errors, or asks about compatible versions.
competitor-message-differ
比较竞品在信息架构和叙事上的差异,找出可借鉴点与应避免模仿点。;use for competitor, messaging, positioning workflows;do not use for 抄袭竞品文案, 编造竞品数据.
skill-gap-finder
扫描现有 Skill 套装,找重复、缺口、职责冲突和最该补的空位。;use for skills, bundle, analysis workflows;do not use for 臆造目录内容, 直接删除 skill.