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

ralph-loop

できること

このスキルは、1つのタスクに対してエージェントが多くの反復で作業を続ける繰り返しのループを開始します。大きなタスクを、手で再開せずに着実に進めたい人向けです。

使う場面

  • ✓目標に到達するまで、1つのタスクを繰り返し改善させたいとき。
  • ✓自律的なタスクの最大反復回数を設定したいとき。
  • ✓特定の完了フレーズが出たら、ループを止めたいとき。

スキルのリンク

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

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“Ralph Loopを開始して、テストを含むTodo APIを作ってください。20回で止めてください。”

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

仕組み

エージェントはタスクとループの設定を状態ファイルに保存し、その後タスクに取り組みます。エージェントが止まろうとするたびに同じプロンプトが戻され、完了フレーズか反復の上限に達するまで続けます。

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

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

Ralph Loop

Trigger

The user wants to start a Ralph loop. An iterative development loop where the same prompt is fed back after every turn, and the agent sees its own previous work each iteration.

Workflow

  1. Gather the user's task prompt and optional parameters:

    • max_iterations (number, default 0 for unlimited)
    • completion_promise (text, or "null" if not set)
  2. Create the directory .cursor/ralph/ if it doesn't exist, then write the state file at .cursor/ralph/scratchpad.md with this exact format:

    ---
    iteration: 1
    max_iterations: <N or 0>
    completion_promise: "<TEXT>" or null
    ---
    
    <the user's task prompt goes here>
    

    Example:

    ---
    iteration: 1
    max_iterations: 20
    completion_promise: "COMPLETE"
    ---
    
    Build a REST API for todos with CRUD operations, input validation, and tests.
    
  3. Confirm to the user that the Ralph loop is active, then begin working on the task.

  4. The stop hook automatically intercepts each turn end and feeds the same prompt back as a followup message. You will see it prefixed with [Ralph loop iteration N.].

Guardrails

  • If a completion promise is set, you may ONLY output <promise>TEXT</promise> when the statement is completely and genuinely true.
  • Do not output false promises to escape the loop.
  • Always recommend setting max_iterations as a safety net.
  • Quote the completion_promise value in the YAML frontmatter if it contains special characters.

Output

Confirm the loop is active (prompt, iteration limit, promise if set), then start working on the task immediately.

よくある質問

上限を設定しなかったら?

既定では反復の上限はないため、スキルは上限を設定することを勧めます。

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

タスクが本当に完了したときにだけ、エージェントが出力するフレーズで、それによってループが終わります。

エージェントは偽の完了フレーズを出せますか?

いいえ。ループから抜けるために偽の完了フレーズを出すことは禁止されています。

詳細

作者による元の説明

Start a Ralph Loop for iterative self-referential development. Use when the user asks to run a ralph loop, start an iterative loop, or wants repeated autonomous iteration on a task until completion.

repo: cursor/plugins

人気

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

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

0

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

コメント

  • …

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

似ているスキル