ask-user-question
Skill này làm gì
Skill dạy agent AI hỏi bạn qua một hộp thoại trong ứng dụng, vì bạn không thấy đầu ra văn bản hoặc terminal của agent. Skill dành cho người muốn agent kiểm tra với họ trước khi hành động.
Khi nào nên dùng
- ✓Khi tác vụ chưa rõ và agent cần bạn làm rõ trước khi bắt đầu.
- ✓Khi agent cần bạn chọn giữa một vài phương án.
- ✓Khi một hành động mang tính phá hủy hoặc nhạy cảm cần bạn phê duyệt trước.
Liên kết skill
https://github.com/MemTensor/MemOS/blob/main/apps/openwork-memos-integration/apps/desktop/skills/ask-user-question/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Trước khi bạn sắp xếp lại các file của tôi, hãy hỏi tôi muốn chúng được nhóm theo cách nào.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent gửi một câu hỏi kèm nhãn ngắn và vài lựa chọn, rồi hộp thoại xuất hiện trong ứng dụng. Câu trả lời của bạn quay lại agent, và agent tiếp tục công việc.
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.
Ask User Question
Use this MCP tool to ask users questions and get their responses. This is the ONLY way to communicate with the user - they cannot see CLI/terminal output.
Critical Rule
The user CANNOT see your text output or CLI prompts!
If you write "Let me ask you..." and then just output text - THE USER WILL NOT SEE IT. You MUST call this tool to display a modal in the UI.
When to Use
- Clarifying questions before starting ambiguous tasks
- Asking user preferences (e.g., "How would you like files organized?")
- Confirming actions before executing (especially destructive/irreversible ones)
- Getting approval for sensitive actions (financial, messaging, deletion, etc.)
- Any situation where you need user input to proceed
Parameters
{
"questions": [{
"question": "Your question to the user",
"header": "Short label (max 12 chars)",
"options": [
{ "label": "Option 1", "description": "What this does" },
{ "label": "Option 2", "description": "What this does" }
],
"multiSelect": false
}]
}
question(required): The question text to displayheader(optional): Short category label, shown as modal title (max 12 chars)options(optional): Array of selectable choices (2-4 recommended)multiSelect(optional): Allow selecting multiple options (default: false)
Custom text input: To allow users to type their own response, include an option with label "Other" (case-insensitive). When selected, the UI shows a text input field.
{ "label": "Other", "description": "Type your own response" }
Important: When "Other" is selected, the response will be User responded: [their text] instead of User selected: Other. You must wait for and handle this text response - do NOT proceed as if they selected a predefined option.
Examples
Asking about organization preferences
AskUserQuestion({
"questions": [{
"question": "How would you like to organize your Downloads folder?",
"header": "Organize",
"options": [
{ "label": "By file type", "description": "Group into Documents, Images, Videos, etc." },
{ "label": "By date", "description": "Group by month/year" },
{ "label": "By project", "description": "You'll help me name project folders" }
]
}]
})
Confirming a destructive action
AskUserQuestion({
"questions": [{
"question": "Delete these 15 duplicate files?",
"header": "Confirm",
"options": [
{ "label": "Delete all", "description": "Remove all 15 duplicates" },
{ "label": "Review first", "description": "Show me the list before deleting" },
{ "label": "Cancel", "description": "Don't delete anything" }
]
}]
})
Simple yes/no confirmation
AskUserQuestion({
"questions": [{
"question": "Should I proceed with sending this email?",
"header": "Send email",
"options": [
{ "label": "Send", "description": "Send the email now" },
{ "label": "Cancel", "description": "Don't send" }
]
}]
})
Response Format
The tool returns the user's selection:
User selected: By file type- Single selectionUser selected: Option A, Option B- Multiple selections (if multiSelect: true)User responded: [custom text]- If user typed a custom responseUser declined to answer the question.- If user dismissed the modal
Wrong vs Correct
WRONG (user won't see this):
I'll help organize your files. How would you like them organized?
- By type
- By date
- By project
CORRECT (user will see a modal):
AskUserQuestion({
"questions": [{
"question": "How would you like your files organized?",
"options": [
{ "label": "By type" },
{ "label": "By date" },
{ "label": "By project" }
]
}]
})
Câu hỏi thường gặp
Sao không viết câu hỏi trong chat luôn?
Skill nói rằng bạn không thể thấy đầu ra văn bản hay lời nhắc terminal của agent, nên hộp thoại là cách để tiếp cận bạn.
Tôi có thể tự nhập câu trả lời không?
Có. Skill bao gồm tùy chọn ô nhập văn bản tự do.
Một câu hỏi nên có bao nhiêu lựa chọn?
Skill khuyên nên có từ hai đến bốn lựa chọn cho mỗi câu hỏi.
Chi tiết
Mô tả gốc của tác giả
Ask users questions via the UI. Use when you need clarification, user preferences, or confirmation before proceeding. The user CANNOT see CLI output - this tool is the ONLY way to communicate with them.
repo: MemTensor/MemOS
Độ phổ biến
- Sao GitHub
- 12k
- Vị trí xếp hạng
- #11401
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
memos-local
12kGiúp agent của bạn cài đặt và thiết lập MemOS, một plugin bộ nhớ cục bộ cho OpenClaw, để nó nhớ các cuộc trò chuyện trước trên thiết bị của bạn.
browserwing-admin
12kGiúp agent của bạn cài đặt và quản lý BrowserWing, một công cụ tự động hóa trình duyệt, gồm tạo, chạy và sửa các script tự động hóa.
browserwing-executor
12kCho phép agent của bạn điều khiển trình duyệt qua HTTP API để mở trang, nhấp, gõ, trích xuất dữ liệu, chụp màn hình và chạy hàng loạt bước.
memos-memory-guide
12kDạy agent của bạn tìm trong các cuộc trò chuyện trước và bộ nhớ nhóm được chia sẻ khi bạn nhắc đến chat cũ, sở thích hoặc quyết định trước.
Skill tương tự
discord-user-post
394kCho phép agent của bạn đăng tin nhắn đã duyệt lên Discord dưới tên bạn qua app Discord trên máy tính, sau khi xác nhận đúng kênh.
configure-channel
394kHướng dẫn agent của bạn kết nối một ứng dụng chat như Telegram với OpenClaw, lưu token bot an toàn và kiểm tra tin nhắn có đi qua được không.
discord
394kGiúp agent của bạn đọc, gửi, sửa và thả biểu cảm cho tin nhắn Discord qua OpenClaw, và kiểm tra đúng tin nhắn trước khi thay đổi.