本文へスキップ
Skillpedia
エージェント15k · #11009

ralph-loop-help

できること

このスキルは、Ralph Loopの仕組みと使い方を説明します。繰り返すエージェントのループに不慣れで、簡単な例がほしい人向けです。

使う場面

  • ✓Ralph Loopとは何か、どう機能するかを尋ねるとき。
  • ✓Ralph Loopの開始の例がほしいとき。
  • ✓反復回数の上限や完了フレーズのオプションを知る必要があるとき。

スキルのリンク

https://github.com/cursor/plugins/blob/main/ralph-loop/skills/ralph-loop-help/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/cursor/plugins/blob/main/ralph-loop/skills/ralph-loop-help/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“Ralph Loopとは何ですか。最大20回で開始するにはどうすればよいですか。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、同じプロンプトが何度も繰り返し与えられ、ファイルの中に以前の作業が見えることを説明します。オプションと、ループの止め方を示します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Ralph Loop Help

Trigger

The user asks what Ralph Loop is, how it works, or needs usage guidance.

What to Explain

What is Ralph Loop?

Ralph Loop implements the Ralph Wiggum technique — an iterative development methodology based on continuous AI loops, pioneered by Geoffrey Huntley.

Core concept: the same prompt is fed to the agent repeatedly. The "self-referential" aspect comes from the agent seeing its own previous work in the files and git history, not from feeding output back as input.

Each iteration:

  1. The agent receives the SAME prompt
  2. Works on the task, modifying files
  3. Tries to exit
  4. Stop hook intercepts and feeds the same prompt again
  5. The agent sees its previous work in the files
  6. Iteratively improves until completion

Starting a Ralph Loop

Tell the agent your task along with options:

Start a ralph loop: "Build a REST API for todos" --max-iterations 20 --completion-promise "COMPLETE"

Options:

  • --max-iterations N — max iterations before auto-stop
  • --completion-promise "TEXT" — phrase to signal completion

How it works:

  1. Creates .cursor/ralph/scratchpad.md state file
  2. Agent works on the task
  3. Stop hook intercepts exit and feeds the same prompt back
  4. Agent sees its previous work and iterates
  5. Continues until promise detected or max iterations reached

Cancelling a Ralph Loop

Ask the agent to cancel the ralph loop. It will remove the state file and report the iteration count.

Completion Promises

To signal completion, the agent outputs a <promise> tag:

<promise>TASK COMPLETE</promise>

The stop hook looks for this specific tag. Without it (or --max-iterations), Ralph runs indefinitely.

When to Use Ralph

Good for:

  • Well-defined tasks with clear success criteria
  • Tasks requiring iteration and refinement
  • Iterative development with self-correction
  • Greenfield projects

Not good for:

  • Tasks requiring human judgment or design decisions
  • One-shot operations
  • Tasks with unclear success criteria

Learn More

Output

Present the above information clearly to the user, tailored to their specific question.

よくある質問

最大反復回数のオプションは何をしますか?

ループが自分で止まるまでに何回実行されるかの上限を設定します。

完了フレーズとは何ですか?

タスクが終わったことをエージェントが示すために使うフレーズで、それによってループが終わります。

この技法を誰が作りましたか?

スキルは、その先駆者としてGeoffrey Huntleyを挙げています。

詳細

作者による元の説明

Explain the Ralph Loop plugin, how it works, and available skills. Use when the user asks for help with ralph loop, wants to understand the technique, or needs usage examples.

repo: cursor/plugins

人気

GitHubのスター
15k
ランキング
#11009
ライセンス
—
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル