Chuyển đến nội dung
Skillpedia
Agent15k · #11009

ralph-loop-help

Skill này làm gì

Skill giải thích Ralph Loop hoạt động thế nào và cách sử dụng. Dành cho người mới với các vòng lặp agent lặp lại và muốn có ví dụ đơn giản.

Khi nào nên dùng

  • ✓Khi bạn hỏi Ralph Loop là gì hoặc nó hoạt động thế nào.
  • ✓Khi bạn muốn một ví dụ về cách bắt đầu một Ralph loop.
  • ✓Khi bạn cần biết các tùy chọn giới hạn vòng lặp hoặc cụm từ hoàn thành.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/cursor/plugins/blob/main/ralph-loop/skills/ralph-loop-help/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Ralph Loop là gì, và làm sao để tôi bắt đầu một vòng với tối đa hai mươi vòng?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent giải thích rằng cùng một prompt được đưa vào lại nhiều lần, và agent thấy công việc trước của chính nó trong các file. Nó chỉ ra các tùy chọn và cách dừng vòng lặp.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.

Câu hỏi thường gặp

Tùy chọn số vòng tối đa làm gì?

Nó đặt giới hạn số vòng lặp chạy trước khi vòng lặp tự dừng.

Cụm từ hoàn thành là gì?

Một cụm từ agent dùng để báo rằng tác vụ đã xong, và điều đó kết thúc vòng lặp.

Ai đã tạo ra kỹ thuật này?

Skill ghi nhận Geoffrey Huntley là người tiên phong.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
15k
Vị trí xếp hạng
#11009
Giấy phép
—
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự