Token导航 LogoToken导航TokenDH.com
效率需要联网clawhub未标认证来源可访问clear审计通过

questions-form问题表

Agent Skill

questions-form 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

40,195

周安装

1,626

GitHub Stars

公开资料未说明

下载量

12,618
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:questions-form(问题表)
来源仓库:https://github.com/edonadei/questions-form
安装命令:
openclaw skills install questions-form
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install questions-form

简介

使用内联按钮以交互式电报形式呈现多个澄清问题。当代理在继续执行任务之前需要向用户询问 2 个或更多澄清问题,并希望以结构化表单布局一次性呈现所有问题并带有可选选项和“其他”自由文本转义窗口时使用。在以下情况下触发:收集多方面的需求、入职流程、偏好收集或任何需要用户通过 Telegram 输入结构化多问题的场景。

SKILL.md

name
questions-form
description
>

Questions Form

Present multiple clarifying questions as a Telegram inline-button form. All questions appear at once; the user answers in any order, then submits.

When to Use

  • You need 2 or more clarifying questions answered before proceeding
  • Questions have enumerable options (with optional free-text fallback)
  • The channel is Telegram

Do not use this pattern for a single yes/no question — just send one message with buttons for that.

Form Protocol

Step 1: Compose the Form

Define each question internally as an object:

{ id: "type",     text: "What type of project?", options: ["Web App", "Mobile", "API"] }
{ id: "timeline", text: "What is your timeline?", options: ["This week", "This month", "No rush"] }
{ id: "budget",   text: "Budget range?",          options: ["< $1k", "$1k-5k", "$5k-10k", "> $10k"] }

Initialize internal tracking state:

form_state = { type: null, timeline: null, budget: null }
awaiting_freetext = null
form_submitted = false

Step 2: Send the Header

Send a plain message (no buttons) as the form introduction:

{
  "action": "send",
  "channel": "telegram",
  "message": "**I have a few questions before we proceed.**\
Please answer each one by tapping a button, then tap Submit when done."
}

Step 3: Send Each Question

For each question, send a separate message with inline buttons. Put selectable options in rows of 2-3 buttons. Always put "Other" on its own last row.

The callback_data must follow this convention: form:<question_id>:<value>

Example:

{
  "action": "send",
  "channel": "telegram",
  "message": "**1. What type of project is this?**",
  "buttons": [
    [
      { "text": "Web App", "callback_data": "form:type:web" },
      { "text": "Mobile", "callback_data": "form:type:mobile" },
      { "text": "API", "callback_data": "form:type:api" }
    ],
    [
      { "text": "Other (type your answer)", "callback_data": "form:type:other" }
    ]
  ]
}
{
  "action": "send",
  "channel": "telegram",
  "message": "**2. What is your timeline?**",
  "buttons": [
    [
      { "text": "This week", "callback_data": "form:timeline:this_week" },
      { "text": "This month", "callback_data": "form:timeline:this_month" },
      { "text": "No rush", "callback_data": "form:timeline:no_rush" }
    ],
    [
      { "text": "Other (type your answer)", "callback_data": "form:timeline:other" }
    ]
  ]
}
{
  "action": "send",
  "channel": "telegram",
  "message": "**3. Budget range?**",
  "buttons": [
    [
      { "text": "< $1k", "callback_data": "form:budget:lt_1k" },
      { "text": "$1k-5k", "callback_data": "form:budget:1k_5k" }
    ],
    [
      { "text": "$5k-10k", "callback_data": "form:budget:5k_10k" },
      { "text": "> $10k", "callback_data": "form:budget:gt_10k" }
    ],
    [
      { "text": "Other (type your answer)", "callback_data": "form:budget:other" }
    ]
  ]
}

Step 4: Send the Submit Button

After all questions, send the submit/cancel message:

{
  "action": "send",
  "channel": "telegram",
  "message": "**When you've answered all questions above, tap Submit.**",
  "buttons": [
    [{ "text": "\✓ Submit All Answers", "callback_data": "form:submit" }],
    [{ "text": "\✗ Cancel", "callback_data": "form:cancel" }]
  ]
}

Step 5: Handle Callbacks

When you receive a callback starting with form::

Regular option (form:<qid>:<value> where value is not other):

  • Record the answer: form_state[qid] = value
  • Acknowledge: send "Got it -- <question label>: **<chosen label>**"

"Other" option (form:<qid>:other):

  • Send: "Type your answer for: <question text>"
  • Set awaiting_freetext = qid
  • The next plain text message from the user is their free-text answer
  • Record: form_state[qid] = <user's text>
  • Acknowledge: "Got it -- <question label>: **<user's text>**"
  • Clear awaiting_freetext

Submit (form:submit):

  • Check form_state for any null values
  • If incomplete: send "You still need to answer: <list of unanswered questions>"
  • If complete: set form_submitted = true and proceed with the collected answers

Cancel (form:cancel):

  • Discard form_state
  • Send: "Form cancelled. Let me know how you'd like to proceed."

Step 6: Use the Answers

Once submitted, reference the collected answers as structured data and proceed:

Collected: { type: "mobile", timeline: "End of March", budget: "1k_5k" }

Now continue with the original task using these clarified requirements.

Changing Answers

Users can click a different button for any question at any time before submitting. Simply overwrite the previous value and acknowledge the change:

"Updated -- <question>: **<new value>**"

Callback Data Convention

  • All form callbacks must use the form: prefix
  • Format: form:<question_id>:<value>
  • Keep question IDs short (2-8 chars) — Telegram has a 64-byte callback_data limit
  • Keep values short and use underscores instead of spaces
  • The agent identifies form callbacks by checking if the incoming message starts with form:

Button Layout Rules

  • Maximum 2-3 buttons per row for clean rendering
  • Keep button labels under 20 characters
  • Use Title Case for option labels
  • "Other" button always says: "Other (type your answer)"
  • "Other" button always goes on its own last row
  • Submit button includes checkmark: "\✓ Submit All Answers"
  • Cancel button includes X mark: "\✗ Cancel"

Edge Cases and Advanced Patterns

See references/form-patterns.md for:

  • Handling timeouts and abandoned forms
  • Dependent questions (show question B only after A is answered)
  • Large option sets (>6 options)
  • Multi-select questions (toggle pattern)
  • Free-text disambiguation
  • Resuming interrupted forms

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

93.16%
按下载量换算11,755

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills