Langsung ke konten
Skillpedia
Agen15k · #11010

ralph-loop

Fungsinya

Skill ini memulai loop berulang tempat agent terus mengerjakan satu tugas selama banyak putaran. Untuk orang yang ingin kemajuan stabil pada tugas besar tanpa memulai ulang secara manual.

Kapan dipakai

  • ✓Saat Anda ingin agent terus mengulang satu tugas sampai mencapai tujuan.
  • ✓Saat Anda ingin menetapkan jumlah putaran maksimal untuk tugas otonom.
  • ✓Saat Anda ingin loop berhenti setelah frasa penyelesaian tertentu muncul.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/cursor/plugins/blob/main/ralph-loop/skills/ralph-loop/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Mulai Ralph loop untuk membangun API todo dengan tes, dan berhenti setelah 20 putaran.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent menyimpan tugas dan pengaturan loop Anda dalam file status, lalu mengerjakan tugasnya. Setiap kali agent mencoba berhenti, prompt yang sama dimasukkan kembali, dan agent terus bekerja sampai frasa penyelesaian atau batas putaran tercapai.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.

Pertanyaan umum

Apa yang terjadi jika saya tidak menetapkan batas maksimal?

Batas defaultnya tidak ada, sehingga skill menyarankan Anda menetapkan batas.

Apa itu frasa penyelesaian?

Frasa yang dikeluarkan agent hanya ketika tugas benar-benar selesai, yang lalu mengakhiri loop.

Bisakah agent memalsukan frasa penyelesaian?

Tidak. Skill melarang mengeluarkan frasa penyelesaian palsu hanya untuk keluar dari loop.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
15k
Peringkat
#11010
Lisensi
—
Diperbarui
31/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa