ralph-loop

Iterate through reasoning, acting, looking, probing, and hardening cycles until goals are met.

84|31|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/zrosenfield/sharepoint-ai-skills --skill ralph-loop-zrosenfield
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ralph-loop
Source: https://github.com/zrosenfield/sharepoint-ai-skills/tree/main/Skills/ralph-loop
Command: npx skills add https://github.com/zrosenfield/sharepoint-ai-skills --skill ralph-loop-zrosenfield

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill tackles the "good enough" problem by ensuring tasks are completed to a high standard through iterative refinement and self-correction, preventing common agent failures.

Core Features & Use Cases

  • Iterative Refinement: Pursues goals through structured cycles of Reason, Act, Look, Probe, and Harden.
  • Self-Evaluation: Assesses output against defined success criteria in each cycle.
  • Gap Analysis: Identifies specific weaknesses and omissions for targeted improvement.
  • Use Case: Use RALPH when generating a complex report, analyzing sensitive data, or creating detailed documentation where accuracy and completeness are paramount and a single pass is insufficient.

Quick Start

Use the ralph-loop skill to create a detailed project proposal, iterating until all requirements are confidently met.

Frequently Asked Questions about ralph-loop

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

FAQPage Schema
How do I ensure complex tasks are completed to a high standard instead of just good enough?

Iterative refinement ensures complex tasks meet high standards by cycling through reasoning, acting, probing, and hardening phases. This self-correction loop evaluates output against success criteria, identifies gaps, and decomposes goals to prevent incomplete agent execution.

What is the best way to automate self-correction for detailed report generation?

Automated self-correction for report generation works by assessing output against defined success criteria in each cycle. The structured loop performs gap analysis to identify specific weaknesses and omissions, then iterates until all requirements are confidently met.

When should I use an iterative agent loop for quality assurance?

Use an iterative agent loop for quality assurance when generating complex reports, analyzing sensitive data, or creating detailed documentation where accuracy and completeness are paramount. It prevents common agent failures that occur when a single pass is insufficient.

Can I define custom success criteria for self-evaluation cycles?

Yes, you can define custom success criteria for self-evaluation cycles. The loop manages complex tasks by decomposing goals into configurable rules, evaluating output against your criteria, and deciding whether to iterate or complete based on those settings.

How does gap analysis work during iterative task refinement?

Gap analysis during iterative task refinement identifies specific weaknesses and omissions for targeted improvement. After executing actions, the loop evaluates the output, pinpoints exact gaps, and uses that data to decide whether another cycle is needed.

Does this iterative refinement approach work without external dependencies?

Yes, this iterative refinement approach works without external dependencies. It operates as a standalone agentic loop relying on its internal structured cycles of reasoning, acting, looking, probing, and hardening to achieve goal completion.