Communityコーディング&開発github.com

prototype-openclaw-tui

廃棄可能なフィクスチャ駆動のOpenClaw ClackまたはPi TUIプロトタイプを構築し、tmux内で複数のインタラクティブバリアントを並べて比較できます。完全なアプリケーションを実行したり、ライブ状態に触れたりする必要はありません。

prototype-openclaw-tui とは?

このスキルは、OpenClawアプリケーションの特定のTUIサーフェスを分離し、実際のOpenClaw TUIスタックを使ってレンダリングし、tmuxで2〜6つのデザインバリアントを並べて比較するためのものです。本番コードやライブ状態に影響を与えることなく、UIの変更を迅速に試作・比較できます。Claude Code、Cursor、CodexなどのAIエージェントと共に使用することを想定しており、OpenClawのwizard/CLI (Clack)とTUIコンポーネント (Pi-TUI)の両方をサポートします。ワークフローは、対象モジュールの読み取り、最小限の実行可能ハーネスの作成、ベースラインバリアントの追加、フィクスチャデータを用いた代替バリアントの作成、そして各バリアントを独自のtmuxペインで起動するという流れです。専用のランチャースクリプトを使用してtmuxグリッドを管理し、`--refresh`モードでプロトタイプの反復を効率的に行えます。プロトタイプコードは廃棄可能であり、直接本番環境に昇格することはありません。

対応~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/.agents/skills/prototype-openclaw-tui

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Prototype OpenClaw TUI

このスキルを使用して、1つのOpenClawターミナルサーフェスを分離し、実際のOpenClaw TUIスタックでレンダリングし、2〜6つのデザインバリアントをtmux内で比較します。

ルール

  • 編集前にルートおよびスコープ単位のAGENTS.mdファイルを読んでください。
  • プロトタイプはターゲットの隣に配置し、*.prototype.tsという名前にしてください。
  • 既存のサーフェスを反復する場合、現在の実装を最初のbaselineバリアントとして、同じフィクスチャデータで含めてください。ベースラインは、ユーザーが明示的に新しい比較を依頼した場合にのみ省略します。
  • 実用的な範囲で、実際のOpenClawレンダラー、テーマ、コピー、コンポーネントを使用してください。
  • スキャン、モデル、ネットワークコール、インストール、設定書き込み、SQLite、その他の永続的な影響は、決定論的なインメモリフィクスチャに置き換えてください。
  • 分離されたサーフェスで十分な場合は、完全なOpenClawアプリケーションを実行しないでください。
  • プロトタイプコードは廃棄可能として扱ってください。直接本番環境に昇格させないでください。
  • 無関係および既存のワークツリー変更を保持してください。

レンダラーの選択

  • Wizard、onboarding、configuration、doctor、selection、progressサーフェス: src/wizard/clack-prompter.tsからcreateClackPrompter()を使用してください。
  • Agent shell、chat、overlay、editor、selector、またはsrc/tui/**コンポーネント: @earendil-works/pi-tuiと既存のOpenClawコンポーネントを使用してください。

共有のClack/Pi抽象化を発明しないでください。これらはtmux比較ループによって結合された別々のプロトタイプレシピです。

ワークフロー

  1. 対象モジュール、そのレンダラーアダプター、呼び出し元、および関連するテストを読んでください。
  2. ターゲットサーフェスに到達する最小限の実行可能ハーネスを作成してください。
  3. サーフェスが既に存在する場合、引数なしの呼び出しが現在の実装を変更せずに--variant=baselineとしてレンダリングするようにしてください。
  4. ベースラインを含めて合計2〜6バリアントになるように、--variant=<id>の背後に構造的に異なる代替案を追加してください。
  5. すべてのバリアントに同じフィクスチャデータとターミナル寸法を与えてください。
  6. 各バリアントを独自のtmuxペインで直接実行してください。対話型TUI出力をパイプしないでください。tmuxがPTYを提供する必要があります。
  7. ランチャーの--refreshモードでハーネスを反復してください。ユーザーのターミナルを再度開かずに、既存のセッション内の比較グリッドを置き換えてください。
  8. ユーザーが方向性を選択した後、通常のテストと検証を伴って本番コードに決定を反映させてください。プロトタイプは削除するか、別途キャプチャしてください。

比較グリッドの起動

セッション名、リポジトリパス、タイトルとコマンドのペアを指定して、バンドルされたランチャーを実行します:

.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"

プロトタイプを編集した後、--openの代わりに--refreshを指定して同じコマンドを実行してください。これによりtmuxセッションと接続された外部ターミナルが保持されます。ランチャーは、古いウィンドウとそのペインを削除する前に、置き換え用のウィンドウとグリッドを構築します。ウィンドウとペインのIDは変更され、古いペインのコマンドは停止します:

.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"

ランチャーは、--refreshが明示的に指定されていない限り、既存のセッションの置き換えを拒否します。--openは、macOSではユーザーの.commandに関連付けられたターミナルアプリ、WSLからはWindows Terminal、Linuxではxdg-terminal-exec、$TERMINAL、x-terminal-emulatorから最初に利用可能なランチャーを使用します。サポートされているランチャーがない場合、tmuxセッションは等しい切り離された寸法で準備完了のままで、スクリプトは手動アタッチコマンドを出力した後に正常終了します。アタッチした後、--refreshを1回実行してターミナルの拡大された寸法を採用してください。外部ターミナルが開かれても10秒以内にアタッチしない場合も同じガイダンスが適用されます。非対話型のTERM=dumb環境から呼び出された場合、ランチャーはプロトタイプペインプロセスのみから継承したNO_COLORを削除し、外部ターミナルが通常の色を検出してレンダリングできるようにします。ユーザーがアプリ内サーフェスを要求しない限り、Codexアプリ内ターミナルよりも外部ターミナルを優先してください。ユーザーが停止を要求しない限り、セッションをユーザーレビュー用に実行したままにしてください。

引き継ぎ

以下を報告してください:

  • プロトタイプのパスと正確な実行コマンド;
  • tmuxセッション名とアタッチコマンド;
  • どの副作用がフィクスチャに置き換えられたか;
  • 利用可能なバリアントID;
  • プロトタイプが本番コードを変更したかどうか(通常は変更しません)。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Grok Build, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills and agent Templates when requested; add Templates; install, verify, update, uninstall, publish, or sync skills.

関連スキル