A framework to generate autonomous bash scripts that run AI coding agents in continuous planning and building loops.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install ralph-loop
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install ralph-loop using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Ralph Loop is a structured workflow designed to manage the lifecycle of AI-driven code generation. By leveraging Openclaw Skills, it transitions through requirement definition, specification drafting, and iterative loops for planning and building. It ensures that AI agents like Claude Code or Codex remain aligned with project goals through persistent context files such as PROMPT.md and AGENTS.md, providing a robust mechanism for autonomous development.
This approach solves the problem of context loss during long-running tasks by reloading critical project metadata and instructions at every iteration. Whether you are using a minimal shell loop or a controlled bash script with safety guardrails, the Ralph Loop ensures that the AI stays on track until a specific completion condition is met.
To begin using this skill with Openclaw Skills, ensure you are inside a git repository and create the required structure:
# Create the necessary context files
touch PROMPT.md AGENTS.md IMPLEMENTATION_PLAN.md
# Prepare the Ralph directory for logging
mkdir -p .ralph
# Configure your specific AI CLI (e.g., Claude Code or Codex)
# Example of a minimal loop execution:
while :; do cat PROMPT.md | claude ; done
The skill organizes data through a specific file-based taxonomy to maintain state across agent iterations:
| File | Purpose |
|---|---|
specs/*.md |
Individual technical specifications for each topic of concern. |
PROMPT.md |
The core instructions sent to the AI agent during the current iteration. |
AGENTS.md |
Contains backpressure commands, build instructions, and operational learnings. |
IMPLEMENTATION_PLAN.md |
A living document tracking task progress and the completion sentinel. |
.ralph/ralph.log |
Detailed logs of every iteration and CLI output. |
Loading
A high-performance neural search engine integration that allows AI agents to perform deep, category-specific web research and full-text content extraction.

A comprehensive map and travel planning skill for managing locations, spots, and daily itineraries.

A versatile tool for downloading YouTube video thumbnails in multiple resolutions and formats using yt-dlp.

A powerful utility to programmatically extract, clean, and prepare YouTube transcripts for AI-driven summarization and content analysis.

An automation skill for searching and managing TV show libraries within Sonarr via AI agent commands.

A specialized automation tool to programmatically manage GitLab repositories, merge requests, and issues through a direct API interface.








































