ralph-loop

Automate iterative quality improvement using Plan, Execute, Review, Learn cycles.

1|1|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/iAMv1/agent-os --skill ralph-loop-iamv1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ralph-loop
Source: https://github.com/iAMv1/agent-os/tree/main/skills/ralph-loop
Command: npx skills add https://github.com/iAMv1/agent-os --skill ralph-loop-iamv1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Iterative self-improvement for any task using the Ralph Loop pattern: Plan → Execute → Review → Learn → Improve → Repeat, ensuring continuous output refinement.

Core Features & Use Cases

  • Plan-Driven Cycles: Define goals, metrics, and success criteria before each iteration.
  • Guarded Execution: Execute tasks with traceable steps and automatic deviation logging.
  • Quality Assurance: Review and learn phases enforce measurable improvements per cycle.

Quick Start

Provide a task description and desired cycle count to begin iterative Ralph Loop cycles that plan, execute, review, learn, and improve.

Frequently Asked Questions about ralph-loop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate iterative quality improvement for complex writing or coding tasks?

Iterative quality improvement is automated using the Ralph Loop pattern, which enforces Plan, Execute, Review, Learn, and Improve cycles to continuously refine complex writing, coding, and research outputs.

What is the Ralph Loop pattern for continuous task refinement?

The Ralph Loop pattern is a structured workflow that automates iterative self-improvement through Plan, Execute, Review, Learn, and Improve phases to ensure measurable output refinement across repeated cycles.

How do I set up plan-driven cycles with measurable quality assurance goals?

You set up plan-driven cycles by providing a task description and desired cycle count, which defines your goals, metrics, and success criteria before executing guarded steps with automatic deviation logging.

Can I use this iterative feedback loop approach for research and writing tasks?

Yes, this iterative feedback loop approach applies to complex tasks across writing, coding, and research, enforcing mandatory Review and Learn phases to guarantee measurable improvements per cycle.

How do I control the iteration depth of automated refinement cycles?

You control iteration depth by configuring the cycle count parameter, which dictates how many times the Plan, Execute, Review, Learn, and Improve sequence repeats to reach your desired quality.

What happens during the Review and Learn phases of the cycle workflow?

During the Review and Learn phases, the cycle workflow enforces quality assurance by evaluating traceable execution steps and logging deviations to extract actionable insights for measurable improvement.