BeClaude

ralph-loop

30.2kOfficial PluginDevelopmentby Anthropic

Interactive self-referential AI loops for iterative development, implementing the Ralph Wiggum technique. Claude works on the same task repeatedly, seeing its previous work, until completion.

Python3272 forks747 issuesUpdated 6/16/2026First seen 4/17/2026

Summary

This skill enables Claude to work on a task iteratively, reviewing its previous output and refining it until completion.

  • It is useful for complex development tasks that benefit from self-correction and progressive improvement, such as debugging, code generation, or writing documentation.

Install & Usage

1
Add a marketplace
/plugin marketplace add <org/repo>
2
Install the plugin

Add the configuration to /plugin install ralph-loop@<marketplace>

3
Manage with /plugin
/plugin

Use Cases

Refactoring a large codebase by iteratively improving code quality and structure.
Generating comprehensive unit tests for a module, adding edge cases with each loop.
Writing and refining a technical blog post, enhancing clarity and depth over iterations.
Debugging a tricky bug by analyzing previous attempts and trying new approaches.
Building a complex algorithm step by step, verifying correctness at each stage.
Creating a detailed project plan or architecture document, expanding details iteratively.

Usage Examples

1

/ralph-loop Refactor the main controller file to use dependency injection, improving testability.

2

/ralph-loop Write unit tests for the user authentication module, covering all edge cases.

3

/ralph-loop Draft a README for the project, then improve it with setup instructions and examples.

View source on GitHub
claude-codemcpskills

Security Audits

LicenseUnknownSourcePassRepositoryPass

Frequently Asked Questions

What is ralph-loop?

This skill enables Claude to work on a task iteratively, reviewing its previous output and refining it until completion. It is useful for complex development tasks that benefit from self-correction and progressive improvement, such as debugging, code generation, or writing documentation.

How to install ralph-loop?

To install ralph-loop: add a marketplace (/plugin marketplace add <org/repo>), then add the config to /plugin install ralph-loop@<marketplace>. Finally, /plugin in Claude Code.

What is ralph-loop best for?

ralph-loop is a plugin categorized under Development. Created by Anthropic.

What can I use ralph-loop for?

ralph-loop is useful for: Refactoring a large codebase by iteratively improving code quality and structure.; Generating comprehensive unit tests for a module, adding edge cases with each loop.; Writing and refining a technical blog post, enhancing clarity and depth over iterations.; Debugging a tricky bug by analyzing previous attempts and trying new approaches.; Building a complex algorithm step by step, verifying correctness at each stage.; Creating a detailed project plan or architecture document, expanding details iteratively..