Community程式設計與開發github.com

Crabbox 應用程式操作

當要求開啟、執行、測試或顯示 Crabbox 中的應用程式時使用,包括原生桌面、網頁預覽以及在臨時機器上的電腦使用。

Crabbox 應用程式操作 是什麼?

此技能旨在處理 Crabbox 環境中與應用程式相關的所有請求,包括啟動原生桌面應用程式、顯示網頁預覽以及執行電腦使用操作。它會自動檢測並重用現有的 Crabbox 環境以進行後續操作,並根據請求的應用程式類型(原生或網頁)選擇適當的設定檔和簡報模式。該技能確保正確處理生命週期管理,例如保留程序 ID 以監控日誌和停止程序,以及管理用於顯示應用程式的側面板視圖。對於需要模型 API 呼叫的應用程式,它概述了使用 `openclaw crabbox run` 命令安全傳遞憑證同時防止憑證洩露到臨時環境的過程。最後,它強調了清理步驟,例如在不需要時釋放環境、在重複「再次顯示」請求時重用現有視圖,以及在不應主動控制時避免注入點擊。

相容平台~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/extensions/crabbox/skills/crabbox-apps

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Crabbox 中的應用程式

「在 Crabbox 中開啟並顯示給我看」意味著啟動正在運作的應用程式,並在請求使用者的聊天側面板中開啟其視圖。完成這兩個操作。

使用已啟用的 crabbox 工具檢查目前的附件,然後再建立一個。針對後續的動作重複使用該環境。profiles 會發現已設定的設定檔;選擇一個與應用程式相容的設定檔。原生桌面檢視和 CUA 需要一個已啟用桌面的設定檔。切勿在需要特定平台的應用程式中默默地替換為另一個作業系統。

create 將機器附加到此對話,但不會移動代理程式或其主要工作空間。對於具備可用 screen 功能的「開啟並顯示」請求,為原生應用傳遞 presentation: "desktop",或為網頁應用傳遞 presentation: "portal"。這會在佈建完成之前開啟右側邊欄,顯示機器啟動進度。其結果會識別環境。使用 exec 對該環境執行命令;一般的 shell 仍會保留其現有的目標。 明確複製或重新建立任務所需的檔案。不要假設本地專案已同步。

原生應用

  1. 根據需要使用遠端 exec 安裝或建置應用程式。
  2. 使用 exec 和 background: true 啟動它。保留其 processId 以用於狀態、日誌和停止。不要分離 shell 程序以逃避生命週期所有權。
  3. 當 computer 工具可用時,選擇傳回的 environmentId 並觀察應用程式。CUA 在 VNC 顯示的同一桌面上運作。
  4. 當 screen 工具可用時,使用該 environmentId 和 dock: "right" 呼叫 desktop_show。在聲明成功之前,驗證應用程式已就緒。僅分配了機器或空白桌面是不夠的。

網頁應用

  1. 當 portal 工具可用時,使用 environmentId 為環境和應用程式的連接埠開啟一個入口。保留其入口 ID 和公開 URL。
  2. 使用遠端 exec、background: true,並明確設定應用程式的 PORT 和 PUBLIC_URL 來啟動 Web 伺服器。驗證它是否有回應。
  3. 當 screen 工具可用時,使用傳回的 portalId 和 dock: "right" 呼叫 portal_show。直接在入口中顯示 Web 應用程式。
  4. 對於 CUA 測試,請使用附加環境的瀏覽器連接到同一台伺服器。遠端瀏覽器和使用者的入口有獨立的 Cookie 和瀏覽器狀態;不要假設它們共享登入或頁面導覽。

如果必要的工具或桌面功能不可用,請報告缺失的功能和實際完成的狀態。使用者瀏覽器無法到達的入口不是完成的預覽。保留獨立來源的入口傳輸;切勿在 Gateway 來源上公開任意應用程式腳本。

呼叫模型 API 的應用程式

雲端代理推論已使用 Gateway 持有的認證。租用中進行自己 API 呼叫的應用程式需要一個單獨的受保護路由。對於獨佔擁有的協調器支援的 Linux 租用,請使用主機 CLI:

openclaw crabbox run --id <lease-id> --model <provider/model> -- <command> <args>

從擁有憑證的主機和擁有租用的本地專案目錄執行。首先準備原始碼和相依性:該命令會跳過同步和 hydration,其橋接器僅允許模型主機。租用 ID 不會覆蓋 Crabbox 的儲存庫聲明。要求沒有活躍的 Egress 會話,並且 Crabbox 二進位檔支援 egress run --upstream-proxy-env。Crabbox 擁有前景橋接器、遠端命令和會話清理。

提供者必須具有已設定的 API 金鑰 SecretRef 和連接埠 443 上與 OpenAI 相容的 HTTPS 端點。不支援 Auth-profile/OAuth 憑證、自訂 Header 和請求傳輸覆寫。CLI 會注入一個哨兵值作為 OPENAI_API_KEY,以及 OPENAI_BASE_URL、OPENAI_MODEL、代理設定和公共 CA 信任。實際金鑰和上游代理憑證保留在主機上。使用一個遵守代理和 CA 環境的客戶端;Node.js 需要 NODE_USE_ENV_PROXY 支援,而 Python 的預設 urllib.request opener 會遵守環境。自訂 SDK 客戶端可能需要明確的代理/信任設定。

讓此命令在整個應用程式的生命週期內保持執行。不要分離應用程式或將金鑰複製到 box 中。普通的工具 exec 和 background 不會獲得此模型授權。在清理之前,取消會撤銷存取權;如果不確定結算,請在重用租用之前檢查已命名的會話和遠端程序。此路徑不需要 Gateway 重新啟動或持久的 Egress 設定。請參閱設定、可執行的範例和復原指南。

後續動作和清理

對於「再次顯示」的請求,重新開啟目前的環境或入口。檢視器重新連線不得分配另一台機器。在顯示記住的入口之前,使用 portal list 確認它仍然存在;入口 ID 可能會在 Gateway 重新啟動後過期。如果它已消失,請為相同的環境和正在執行的應用程式連接埠開啟一個替代入口,然後顯示並驗證該新入口。如果應用程式依賴 PUBLIC_URL 進行連結或重新導向,請重新整理應用程式的 PUBLIC_URL。使用 process_status 檢查已啟動的應用程式,並使用 process_stop 僅停止該程序。stop 會釋放整個臨時環境。關閉側面板只會隱藏檢視。

在 CUA 輸入之前再次觀察。當使用者取得桌面控制權時,停止發送輸入,直到他們釋放控制權;螢幕截圖讀取可以繼續。永遠不要繞過控制權所有權的拒絕,以 shell 注入的點擊來解決問題。

機器是可丟棄的,並遵循其設定的生命週期。在停止它之前,請保留請求的輸出;對話記錄本身不是遠端檔案的備份。

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.

相關技能