跳到正文
cccskills
免费在 GitHub 公开中文介绍

prototype-openclaw-tui

使用固定示例数据和实际渲染组件,为OpenClaw终端界面制作独立原型,在tmux中并排操作、比较二至六种方案,无需更改实际数据。

原文查看原文说明

Build throwaway, fixture-driven OpenClaw Clack or Pi TUI prototypes and compare multiple interactive variants side by side in tmux without running the full application or touching live state.

AI 评分90分/ 100查看安装方法

适用场景

  • 比较初始配置界面的方案
  • 探索聊天与选择界面的布局
  • 对比现有界面和改进方案
  • 不更改实际数据即可试用界面

中文介绍

功能

将OpenClaw终端界面制作成可独立运行的原型,并排操作和比较二至六种方案。引导与配置界面使用createClackPrompter(),聊天和选择界面使用@earendil-works/pi-tui及现有组件。网络通信、配置保存等操作会替换为固定示例数据,所有方案使用相同数据和界面尺寸。

适用场景

适合通过实际操作,选择配置引导、进度显示或聊天界面的布局。改进现有界面时,会将当前实现作为baseline纳入比较,便于查看与修改方案的差异。反复调整原型时,可用--refresh更新比较界面。

使用示例

  • “请并排比较当前配置界面和将设置项分组后的方案。”
  • “请使用同一份示例数据,制作三种聊天选择界面原型。”

注意事项

比较需要tmux终端分屏工具和对应的OpenClaw渲染环境。原型以*.prototype.ts命名,放在目标文件旁边,不能直接作为生产代码采用。将选定方案应用到生产代码时,仍需进行常规测试和验证。

本介绍由 AI(OpenAI Codex)根据公开的 SKILL.md 撰写。准确的规格请查看下方原文。

客观评估

AI 仅根据 SKILL.md 的内容,从 4 个方面进行了评估。星标数和热度不计入评估。

指令清晰度能否看出何时使用、做什么
A良好明确说明独立制作终端界面原型,并在tmux中比较二至六种交互方案。
步骤具体性步骤、输入输出和示例是否具体
A良好提供八步流程、渲染组件选择标准、启动与刷新命令及交接内容。
安全性发送数据、删除文件、执行命令等是否有说明
A良好要求以示例数据替代网络及持久性操作、保留已有修改,并规定现有会话的刷新条件。
安装难易度所需工具和 API 密钥是否少且有说明
B部分不足执行示例使用tmux、Node.js、tsx和渲染环境,但未提供安装步骤。

总分按每项 A=25 分、B=15 分、C=5 分相加。 由 AI(OpenAI Codex)于 2026年10月19日 评估。仅供参考,安装前请同时查看原文。

如果您认为评估有误,请申请复核

请写明哪一项有误以及原因。无需登录。我们会对照 SKILL.md 重新评估,并在此处更新结果。

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

包含的文件(3)

  • SKILL.md5.1 KB
  • agents/openai.yaml286 B
  • scripts/launch-tmux-grid.sh11.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Prototype OpenClaw TUI

Use this skill to isolate one OpenClaw terminal surface, render it with the real OpenClaw TUI stack, and compare two to six design variants in tmux.

Rules

  • Read the root and scoped AGENTS.md files before editing.
  • Keep the prototype beside the target and name it *.prototype.ts.
  • When iterating on an existing surface, include its current implementation as the first baseline variant with the same fixture data. Only omit the baseline when the user explicitly asks for a greenfield comparison.
  • Use the real OpenClaw renderer, theme, copy, and component where practical.
  • Replace scanning, models, network calls, installs, config writes, SQLite, and other durable effects with deterministic in-memory fixtures.
  • Do not run the full OpenClaw application when the isolated surface is enough.
  • Treat prototype code as throwaway. Do not promote it directly to production.
  • Preserve unrelated and pre-existing worktree changes.

Choose the renderer

  • Wizard, onboarding, configuration, doctor, selection, or progress surface: use createClackPrompter() from src/wizard/clack-prompter.ts.
  • Agent shell, chat, overlay, editor, selector, or src/tui/** component: use @earendil-works/pi-tui and the existing OpenClaw component.

Do not invent a shared Clack/Pi abstraction. They are separate prototype recipes joined only by the tmux comparison loop.

Workflow

  1. Read the target module, its renderer adapter, callers, and adjacent tests.
  2. Create the smallest executable harness that reaches the target surface.
  3. If the surface already exists, make the no-argument invocation render its current implementation unchanged as --variant=baseline.
  4. Add structurally different alternatives behind --variant=<id>, for two to six total variants including the baseline.
  5. Give every variant the same fixture data and terminal dimensions.
  6. Run each variant directly in its own tmux pane. Do not pipe interactive TUI output; tmux must provide the PTY.
  7. Iterate on the harness with the launcher's --refresh mode. Respawn the panes in the existing session; do not kill the session or reopen the user's terminal.
  8. After the user chooses a direction, carry the decision into production code with normal tests and validation. Remove or separately capture the prototype.

Launch the comparison grid

Run the bundled launcher with a session name, repository path, then title and command pairs:

.agents/skills/prototype-openclaw-tui/scripts/launch-tmux-grid.sh \
  --open \
  app-recommendations-prototype "$PWD" \
  "A - Baseline" "node --import tsx src/wizard/setup.app-recommendations.prototype.ts --variant=baseline" \
  "B - Grouped" "node --import tsx src/wizard/setup.app-recommendations.prototype.ts --variant=grouped" \
  "C - Focused" "node --import tsx src/wizard/setup.app-recommendations.prototype.ts --variant=focused"

After editing the prototype, run the same command with --refresh instead of --open. This preserves the tmux session, attached external terminal, window, and first pane while restarting all pane commands and reapplying the grid:

.agents/skills/prototype-openclaw-tui/scripts/launch-tmux-grid.sh \
  --refresh \
  app-recommendations-prototype "$PWD" \
  "A - Baseline" "node --import tsx src/wizard/setup.app-recommendations.prototype.ts --variant=baseline" \
  "B - Grouped" "node --import tsx src/wizard/setup.app-recommendations.prototype.ts --variant=grouped" \
  "C - Focused" "node --import tsx src/wizard/setup.app-recommendations.prototype.ts --variant=focused"

The launcher refuses to replace an existing session unless --refresh is explicitly provided. --open uses the user's .command-associated terminal app on macOS, Windows Terminal from WSL, or the first available Linux launcher from xdg-terminal-exec, $TERMINAL, and x-terminal-emulator. If no supported launcher is available, the tmux session remains ready at equal detached dimensions and the script exits successfully after printing the manual attach command. Attach, then run --refresh once to adopt the terminal's larger dimensions. The same guidance applies if an external terminal opens but does not attach within ten seconds. When invoked from a non-interactive TERM=dumb environment, the launcher removes its inherited NO_COLOR only from prototype pane processes so the external terminal can detect and render its normal colors. Prefer the external terminal over the Codex in-app terminal unless the user asks for the in-app surface. Leave the session running for user review unless asked to stop it.

Handoff

Report:

  • the prototype path and exact run command;
  • the tmux session name and attach command;
  • which effects were replaced with fixtures;
  • available variant ids;
  • whether the prototype changed production code (normally no).

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

1password

免费有简介AI 评分 100分

检查1Password命令行工具的安装和认证,将已保存的密码或API密钥传入命令及配置。支持桌面应用集成、服务账号和交互式登录,并先验证访问权限。

  • 安装1Password命令行工具
  • 将API密钥传入命令
  • 在CI中使用服务账号认证
openclaw/openclaw39.2万2026年10月19日 更新

acp-router

免费有简介AI 评分 80分

将提交给OpenClaw的自然语言请求转交给Claude Code等外部编程智能体,通过ACP或acpx启动、继续会话,并保留对话上下文。

  • 在讨论串中启动Claude Code
  • 继续外部智能体的现有工作
  • 通过acpx直接传递指令
openclaw/openclaw39.2万2026年10月19日 更新

add-model-provider

免费有简介AI 评分 100分

为OpenClaw添加模型服务商,并通过实际回复验证连接。凭据以环境变量或文件引用的形式配置,同时验证设置并报告测试结果。

  • 为OpenClaw添加模型服务商
  • 通过引用配置认证凭据
  • 确认模型能返回实际回复
openclaw/openclaw39.2万2026年10月19日 更新

agent-transcript

免费有简介AI 评分 90分

将AI代理的工作日志整理为可附在GitHub拉取请求或议题中的记录,筛选相关内容、移除敏感信息,并支持预览及经单独授权后的发布。

  • 为拉取请求整理代理工作记录
  • 从本地日志提取相关请求和结果
  • 预览已移除敏感信息的记录
openclaw/openclaw39.2万2026年10月19日 更新

apple-notes

免费有简介AI 评分 100分

通过代理管理macOS上的Apple Notes笔记,支持创建、查看、搜索、编辑和删除,在文件夹之间移动笔记,并将选定笔记导出为HTML或Markdown。

  • 创建带标题的笔记
  • 按文件夹筛选或模糊搜索笔记
  • 编辑笔记并整理文件夹
openclaw/openclaw39.2万2026年10月19日 更新

apple-reminders

免费有简介AI 评分 70分

通过Mac查看、添加和编辑Apple Reminders中带截止时间的待办事项,管理列表并完成或删除任务,整理在iPhone或iPad上查看的个人任务。

  • 查看今天和已逾期的任务
  • 添加带截止日期的个人待办事项
  • 整理iPhone或iPad上的任务
openclaw/openclaw39.2万2026年10月19日 更新

查看 openclaw 的全部技能

报告此技能的问题