ask-user
Fungsinya
Skill ini membuat agent Anda berhenti dan meminta Anda memilih sebelum keputusan yang berdampak nyata. Skill menawarkan dua sampai empat opsi yang jelas, termasuk cara untuk membatalkan.
Kapan dipakai
- โSaat sebuah permintaan memiliki beberapa arti yang valid dan tebakan yang salah akan membuang waktu.
- โKetika suatu tindakan akan menghapus atau menimpa data dan perlu persetujuan Anda terlebih dahulu.
- โSaat keputusan pengarsipan atau prioritas membutuhkan masukan Anda sebelum agent melanjutkan.
Link skill
https://github.com/garrytan/gbrain/blob/master/plugin/skills/ask-user/SKILL.mdSalin 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
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โSebelum Anda menghapus draf lama itu, berikan saya beberapa pilihan dan tunggu jawaban saya.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent mendaftar dua sampai empat opsi berlabel dengan pilihan lewati atau batal. Agent kemudian berhenti dan menunggu balasan Anda sebelum melakukan apa pun, lalu melanjutkan sesuai pilihan Anda.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Ask User โ Choice Gate Pattern
Contract
- Present 2-4 options (no more โ decision paralysis kicks in past 4).
- Always include an escape hatch (Skip, Cancel, or "none of these").
- Stop the turn immediately after presenting choices. No follow-up tool calls, no preemptive action, no default-and-proceed.
- The user's response triggers the next turn. Acknowledge briefly, then branch.
- One question per message โ never stack multiple choice gates.
- Self-explanatory option labels: action verb plus brief qualifier, not "Option 1".
What This Is
A formalized pattern for presenting users with 2-4 options and stopping execution until they respond. This is the canonical way to gate on user input in any GBrain-powered agent.
This is NOT a traditional async/await. In an LLM agent, "gating" means:
- Present the choices (buttons or numbered options)
- Explicitly stop the current turn (do not proceed)
- The user's response triggers the next turn
- Read the response and branch accordingly
When To Use
- Ambiguous requests with multiple valid interpretations
- Destructive operations (bulk deletes, overwrites)
- Filing/routing decisions ("where should this go?")
- Priority triage ("which should I do first?")
- Cold-start phase gates ("ready for the next import source?")
- Any fork where the wrong default wastes significant work
When NOT To Use
- Clear, unambiguous instructions โ just do it
- Low-stakes decisions โ pick the best option and mention it
- Time-critical operations where delay costs more than a wrong choice
- When the user has already expressed a preference
How To Present Choices
Platform-agnostic format (works everywhere)
Present choices as a clear question with numbered or labeled options:
๐ **How should I handle this?**
[context about the decision โ 1-3 lines max]
1. **Option A** โ short description
2. **Option B** โ short description
3. **Option C** โ short description
4. **Skip** โ do nothing for now
With inline buttons (Telegram, Discord, Slack)
If the platform supports interactive buttons, use them:
{
"message": "๐ **How should I handle this?**\n\n<context>",
"buttons": [
{ "label": "Option A โ description", "value": "option_a" },
{ "label": "Option B โ description", "value": "option_b" },
{ "label": "Skip", "value": "skip" }
]
}
With the clarify tool (OpenClaw agents)
Some OpenClaw agents have a built-in clarify tool that presents choices natively:
clarify(
question: "How should I handle this?",
choices: [
"Option A โ description",
"Option B โ description",
"Option C โ description",
"Skip for now"
]
)
Constraints
- 2-4 options max. More than 4 creates decision paralysis.
- Labels must be self-explanatory. The user shouldn't need to re-read context.
- Always include an escape hatch. At minimum: "Skip" or "Cancel" as the last option.
- One question per message. Never stack multiple choice gates.
How To Gate (CRITICAL)
After presenting choices, you MUST stop your turn. Do not:
- โ Continue with "while you decide, I'll start on..."
- โ Pick a default and proceed
- โ Send follow-up messages before the user responds
- โ Make assumptions about which option they'll pick
Instead:
- โ End your message with a brief note that you're waiting
- โ Stop. Full stop. No more tool calls.
How To Handle The Response
When the user responds:
- Read the response โ button click, number, or text
- Acknowledge briefly โ "Got it, going with Option A."
- Branch and execute the chosen path
- If unclear, ask again
Handling text responses
Users sometimes type instead of clicking. Handle gracefully:
- "the first one" / "A" / "1" โ map to first option
- "merge" โ fuzzy match against option labels/values
- "actually, none of those" โ present alternatives or ask what they want
- Unrelated message โ the user moved on; drop the gate
Formatting Guidelines
Question line emoji prefix
Signal the decision type:
- ๐ Routing/filing decisions
- โ ๏ธ Destructive/risky operations
- ๐ฏ Priority/triage decisions
- ๐ก Creative/strategic forks
- ๐ Workflow/process choices
- ๐ Credential/security decisions
Context block
1-3 lines maximum. The user should understand the decision in under 5 seconds.
Button/option labels
Format: Action verb โ brief qualifier
- โ "Merge โ combine with existing page"
- โ "Create new โ separate meeting page"
- โ "Option 1"
Pertanyaan umum
Mengapa agent berhenti setelah bertanya?
Agent menunggu agar tidak menebak atau melanjutkan dengan nilai default yang mungkin keliru.
Berapa banyak pilihan yang akan saya lihat?
Tidak pernah lebih dari empat, agar keputusan tetap sederhana.
Bisakah agent mengajukan beberapa pertanyaan sekaligus?
Tidak. Agent mengajukan satu pertanyaan dalam satu waktu agar tetap jelas.
Detail
Deskripsi asli dari pembuat
Reusable pattern for presenting the user with explicit choices and gating execution until they respond. Used by other skills when a decision point requires human input before proceeding. Platform-agnostic โ works on Telegram (inline buttons), Discord, CLI, or any agent with a message tool.
repo: garrytan/gbrain
Popularitas
- Bintang GitHub
- 31k
- Peringkat
- #9287
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
gbrain
31kMemungkinkan agent Anda mencari fakta tentang orang, proyek, dan keputusan di basis pengetahuan bersama perusahaan, serta menyimpan catatan penting.
brain-ingest-gate
31kMemeriksa konten baru terhadap basis pengetahuan yang sudah ada sebelum ditambahkan, untuk menghindari duplikat dan menyelesaikan entitas bernama lebih dulu.
brain-link-discipline
31kMemastikan agent Anda menyertakan tautan yang berfungsi ke setiap halaman basis pengetahuan yang dilaporkannya, dalam pesan yang sama, agar Anda bisa langsung membukanya.
brain-ops
31kMemberi agent Anda rutinitas inti untuk basis pengetahuan: memeriksa konteks yang ada terlebih dahulu, menyimpan catatan eksplisit beserta sumbernya, dan menautkan halaman terkait.
Skill serupa
add-model-provider
394kMemungkinkan agent Anda menghubungkan penyedia model AI baru ke OpenClaw dengan perintah pengaturan yang aman, menjaga kunci API tetap di luar teks biasa, dan menjalankan uji langsung.
acp-router
394kMembantu agent Anda mengirim tugas ke asisten pemrograman seperti Claude Code atau Cursor lewat OpenClaw, sehingga pekerjaan dijalankan di alat tersebut.
browser-automation
394kMengajari agent Anda mengendalikan halaman web langkah demi langkah, termasuk login, tab, dan pemulihan saat halaman berhenti merespons.