Token导航 LogoToken导航TokenDH.com
研究检索执行命令clawhub未标认证来源可访问clear审计通过

prompt-buttons提示按钮

Agent Skill

用于辅助提示词、系统指令、Agent 行为约束和工作流模板的整理。它适合让 Agent 规范任务边界、统一输出格式、拆分操作步骤或优化提示词可复用性。使用时需要保留真实业务约束,不要把示例当硬规则;涉及自动执行、外部工具或高风险操作时,应在提示词中明确确认步骤、权限边界和失败处理方式。

总安装

4,443

周安装

187

GitHub Stars

公开资料未说明

下载量

1,556
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install prompt-buttons

简介

用简洁按钮菜单包装 Agent 提示,提升用户交互体验。

  • 适用于需要快速选择是/否或小选项集的决策场景。
  • 支持个位数选项集的可点击式响应界面设计。
  • 需配合具体业务逻辑定义按钮选项与触发动作。
  • 安装方式:通过 clawhub 平台使用 openclaw skills install prompt-buttons 命令部署。

SKILL.md

name
prompt-buttons
version
1.0.2
description
A comprehensive helper skill that wraps agent prompts with short, consistent tappable button menus (Yes/No, single digits, or small option sets) so users can interact via Telegram inline buttons or fall back gracefully to numbered lists on channels without button support.
author
jin
license
MIT
tags
[ux, buttons, prompts, telegram, interaction]

prompt-buttons

Purpose

  • Standardize how agents present choice-driven prompts so users can respond with one tap.
  • Prefer true Telegram inline buttons when channel supports them; otherwise render a compact numbered list as fallback.
  • Enforce short labels and one-line option descriptions so menus remain scannable on mobile.

Design rules (enforced by the skill)

  • Button label length: 1–3 characters preferred; allow up to 10 chars only when necessary. Examples: Yes, No, 1, 2, A.
  • Option descriptions: one sentence / one short clause. Keep each option on a single line.
  • Message header: single-line title (question or short instruction).
  • Always include buttons metadata in the outgoing message payload. Do not rely on free-text only.
  • For menus >6 items, prefer paginated menus (ask user to choose a page) or hierarchical choices (1–3 then deeper options).
  • Log the user’s last button-style preference in memory (scope: agent:main) to persist UX.

Capabilities

  • Build Yes/No prompts with canonical callback payloads.
  • Build numbered menus (1–9) with mapped callback actions.
  • Render channel-appropriate fallback text when inline buttons are unavailable.
  • Validate button payloads before sending (short labels, callback_data present).
  • Optionally include metadata in callback_data (compact JSON base64) for routing back to the calling skill.

API / Integration

  • Other skills call prompt-buttons by sending a message via the message tool with action=send and a buttons array in the recommended format.

Recommended payload (Telegram inline buttons): { "action": "send", "channel": "telegram", "message": "Title: Pick an option\ 1 — Show top 10 entries\ 2 — Triage noisy entries", "buttons": [[ {"text":"1","callback_data":"{\"a\":\"show_top10\"}"}, {"text":"2","callback_data":"{\"a\":\"triage\"}"} ]] }

Notes on callback_data

  • Keep callback_data compact (<=64 bytes recommended for safety across channels).
  • When you need to send structured data, encode a short action key and state id (e.g., {\"a\":\"triage\",\"id\":42}), optionally base64-encode if required by the channel provider.
  • The skill listening for button presses should expect callback_data and map the short action key back to handler functions.

Fallback rendering (channels without inline button support)

  • Produce a numbered list in the message body identical to the button order.
  • Example fallback body:

"Pick an option:\ 1 — Show top 10 entries\ 2 — Triage noisy entries\ Reply with the number to choose."

Implementation details (for skill authors)

  • Use message(action=send, channel=..., message=..., buttons=...) to show the ask.
  • Register a callback handler for the channel’s button callbacks (Telegram: listen for callback_query). The handler should:

1. Parse callback_data. 2. Acknowledge the callback (Telegram answerCallbackQuery) to remove the loading spinner. 3. Dispatch to the appropriate internal handler (map action keys to functions).

  • When dispatching long-running work from a button press, acknowledge immediately and spawn a background subagent for the task — return a brief confirmation message to the user.

Security & privacy

  • Never include raw secrets or tokens in callback_data. Use short opaque identifiers that map to server-side state.
  • When storing user preferences (e.g., prefers buttons vs typed replies), store only non-sensitive flags in memory with scope agent:main.

Examples

  • Yes/No (implementation):

message: "Run self-improving now?\ Yes — Run and execute now.\ No — Not now." buttons: [[{"text":"Y","callback_data":"{\"a\":\"self_imp_yes\"}"},{"text":"N","callback_data":"{\"a\":\"self_imp_no\"}"}]]

  • Multi-step menu (page 1 of 2):

message: "Pick what to do next (page 1):\ 1 — Show top 10 entries\ 2 — Triage entries\ 3 — Propose promotions\ 4 — Next page" buttons: [[{"text":"1","callback_data":"{\"a\":\"show_top10\"}"},{"text":"2","callback_data":"{\"a\":\"triage\"}"},{"text":"3","callback_data":"{\"a\":\"promote\"}"},{"text":"4","callback_data":"{\"a\":\"page2\"}"}]]

Developer notes

  • Keep the skill code minimal: message builders + validation + callback dispatch map.
  • Include unit tests that validate: button label length, callback_data structure, fallback body matches buttons order.
  • Provide an example handler in index.js that demonstrates mapping compact action keys to functions and acknowledging Telegram callback queries.

Installation / discovery

  • Place the skill under /data/workspace/skills/prompt-buttons/ and ensure a discovery copy in /data/workspace/skills/skills/prompt-buttons/ so OpenClaw discovers it.
  • The skill entry in /data/.openclaw/openclaw.json should be enabled: skills.entries.prompt-buttons.enabled = true.

Compatibility

  • Channels with native inline button support: Telegram (full), some webchat adapters (if configured).
  • Channels without button support: gracefully fall back to numbered list; the calling skill must accept numeric replies.

Versioning & changelog

  • v1.0.2 — Detailed SKILL.md, explicit Telegram inline button guidance, validation rules, and dev notes.

Contact

  • Author: jin
  • Repo / Local path: /data/workspace/skills/prompt-buttons/

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

89.01%
按下载量换算1,385

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install prompt-buttons 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills