用户选项收集
user-select
向用户呈现选项并收集其选择,用于交互式决策
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 5
- Forks
- 2
01 前言 Front Matter
- name
- user-select
- title
- User Selection
- keywords
- [ "select", "choose", "option", "pick", "decision", "choice" ]
- description
- Present users with choices and collect their selections for interactive decision-making
02 资源文件 2
- 脚本properties.ts489 B
- 其他user-select.tsx9.0 KB
03 SKILL.md 正文
User Selection
You are a user selection generator. Your role is to present users with choices and collect their selections when you need input to proceed.
Output Format
When you need the user to select from options, output a code block with the user-select language identifier:
{
"options": [
{"text": "Option 1 display text", "value": "option1"},
{"text": "Option 2 display text", "value": "option2"},
{"text": "Option 3 display text", "value": "option3"}
],
"multiple": false
}
Field Specifications
- options (required): Array of option objects, each containing:
- text (required): The display text shown to the user
- value (required): The value returned when this option is selected
- multiple (optional): Boolean, defaults to false. Set to true to allow multiple selections
Guidelines
-
Option Design
- Keep option text clear and concise (1-8 words)
- Use meaningful values that represent the choice
- Provide 2-10 options for best usability
- Ensure text and values are unique within the options array
-
Single vs Multiple Selection
- Use single selection (multiple: false or omit) for mutually exclusive choices
- Use multiple selection (multiple: true) when users can choose several options
- Single selection is the default behavior
-
When to Use
- When you need user input to determine next steps
- To let users choose between different approaches or solutions
- To configure settings or preferences
- To select from a predefined list of items or actions
- When binary yes/no is insufficient and you need more nuanced choices
Examples
Simple Single Choice
{
"options": [
{"text": "Continue with deployment", "value": "deploy"},
{"text": "Review changes first", "value": "review"},
{"text": "Cancel operation", "value": "cancel"}
]
}
Multiple Selection
{
"options": [
{"text": "Generate unit tests", "value": "unit-tests"},
{"text": "Generate integration tests", "value": "integration-tests"},
{"text": "Add documentation", "value": "docs"},
{"text": "Update README", "value": "readme"}
],
"multiple": true
}
Environment Selection
{
"options": [
{"text": "Development environment", "value": "dev"},
{"text": "Staging environment", "value": "staging"},
{"text": "Production environment", "value": "prod"}
]
}
Feature Selection
{
"options": [
{"text": "Dark mode support", "value": "dark-mode"},
{"text": "Offline functionality", "value": "offline"},
{"text": "Push notifications", "value": "notifications"},
{"text": "Analytics integration", "value": "analytics"}
],
"multiple": true
}
Usage Tips
- Always provide clear, descriptive text for each option
- Use values that make sense programmatically (kebab-case or snake_case recommended)
- Consider the context when deciding single vs multiple selection
- After the user makes a selection, acknowledge their choice and proceed accordingly
- Don't overuse - only present selections when user input is genuinely needed
04 同仓库更多 Skills
Vertesia React UI 组件开发
vertesia-ui
使用 @vertesia/ui 构建 UI 的参考资料。涵盖组件 API(Input、Button、VModal、VTabs、Table)、支持无限滚动的列表/详情表格、可排序表头、带 URL 持久化和内联行过滤的 FilterProvider、布局组件(Sidebar、FullHeightLayout、GenericPageNavHeader)、路由(NestedRouterProvider、useParams、useNavigate)、智能体对话(ModernAgentConversation)、样式与安全。当创建或修改 React UI 页面或组件时使用。
Vertesia 工具服务器资源创建
vertesia-tool-server-resource
为 Vertesia 插件工具服务器创建工具、技能、交互、内容类型、渲染模板、钩子和事件订阅。处理文件脚手架搭建与模块资源索引接线。当向此插件添加新的工具服务器资源时使用。
Vertesia 插件架构参考
vertesia-plugin
关于插件架构、双构建系统、导入钩子和部署的参考资料。用于理解插件结构或构建配置。创建资源请使用 vertesia-tool-server-resource;构建 UI 请使用 vertesia-ui;客户端 API 请使用 vertesia-api。
Vertesia 需求能力差距评估
vertesia-gap-assessment
在提出实现方案之前,评估任意需求与现有 Vertesia 能力之间的差距。在审查 Vertesia 应用、插件、工作流或智能体的需求文档、调研笔记、演示请求或功能请求时使用,以便区分平台原生支持、已安装的项目能力、当前应用实现和真正需要自定义开发的工作。
Vertesia DSL 工作流参考
vertesia-dsl-workflow
DSL 工作流定义、远程活动、变量解析和条件处理的参考。在创建或调试调用插件远程活动的 DSL 工作流时使用。
Vertesia 演示种子内容生成
vertesia-demo-content
为 Vertesia 应用生成真实且可复用的演示或种子内容,并通过 Vertesia CLI、API 或浏览器会话上传。在构建 Vertesia 自定义应用、插件、原型、仓库工作流、AI 提取工作流、搜索/筛选页面,或需要使用真实存储对象而非硬编码模拟数组的演示时使用;包括检查当前活动的 CLI 配置文件,以及在修改 Vertesia 项目前先询问确认。