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

ralph-loop

Skill này làm gì

Skill khởi động một vòng lặp lặp đi lặp lại, nơi agent tiếp tục làm một tác vụ qua nhiều vòng. Dành cho người muốn tiến độ đều đặn cho một tác vụ lớn mà không phải khởi động lại bằng tay.

Khi nào nên dùng

  • ✓Khi bạn muốn agent tiếp tục lặp lại một tác vụ cho đến khi đạt mục tiêu.
  • ✓Khi bạn muốn đặt số vòng tối đa cho một tác vụ tự động.
  • ✓Khi bạn muốn vòng lặp dừng khi một cụm từ hoàn thành cụ thể xuất hiện.

Liên kết skill

https://github.com/cursor/plugins/blob/main/ralph-loop/skills/ralph-loop/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/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

“Bắt đầu một Ralph loop để xây một API todo có test, và dừng sau 20 vòng.”

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

Cách hoạt động

Agent lưu tác vụ và cài đặt vòng lặp vào một file trạng thái, rồi làm việc trên tác vụ. Mỗi khi nó cố dừng, cùng prompt được đưa lại, và nó tiếp tục cho đến khi đạt cụm từ hoàn thành hoặc giới hạn vòng.

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

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.

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

Điều gì xảy ra nếu tôi không đặt số vòng tối đa?

Mặc định không có giới hạn vòng, nên skill khuyên bạn nên đặt một giới hạn.

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

Một cụm từ agent chỉ xuất ra khi tác vụ thật sự hoàn thành, và điều đó kết thúc vòng lặp.

Agent có thể giả mạo cụm từ hoàn thành không?

Không. Skill cấm xuất ra một cụm từ hoàn thành sai chỉ để thoát khỏi vòng lặp.

Chi tiết

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

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

Độ phổ biến

Sao GitHub
15k
Vị trí xếp hạng
#11010
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ự