Community程式設計與開發github.com

建立範本

將此代理程式轉換為可分享的範本,供他人檢閱。

建立範本 是什麼?

此技能使用戶能將現有的代理程式工作階段封裝為可重複使用、他人可檢閱的「範本」。它由 Control UI 觸發,在目前對話中以手動方式執行,並在草稿準備好後交由 Control UI 開啟套件檢閱。其運作方式如下:首先,從對話與代理程式的持久指令中提煉出一個連貫、可重複使用的角色(包括輸入、工作、輸出、權限)。接著,它利用 CLI 指令列舉目前啟用的技能與外掛,以識別哪些是可移植的,並記錄其套件參考,同時將個人脈絡、認證及私有檔案路徑排除在外。最後,它根據規範的草稿格式撰寫一份提案,將可移植的指令碼寫入 `CLAW.md`,並在 `files` 中對應原始工作區檔案。此技能對於想要標準化代理程式行為、建立模板或在不暴露機密資料的情況下分享設定的開發者特別有幫助。它支援 OpenClaw 生態系統(利用 `scripts/cli.mjs` 與 Control UI 互動),並確保同時進行的範本建立作業彼此隔離。

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

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

在你喜歡的 AI 中提問

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

說明文件

建立範本 是做什麼的?

Control UI 會在代理程式的現有主要對話中調用此手動技能。它會在發送訊息前準備一份私人草稿,並將該請求的 draftId 附加為工作環境。使用本次對話回合中附帶的 draftId,且僅編輯 .openclaw/template-drafts/<draftId>.json;不要搜尋最新的草稿或使用共享指標。附帶的環境是請求特定的,因此重疊的範本建立作業會保持隔離。回覆中不得包含內部路徑或 ID。在此同一對話中工作;當草稿準備好時,Control UI 會開啟套件檢閱,並負責套件的組裝與發佈。

  1. 擷取可重複使用的代理程式。 讀取目前的草稿 JSON。運用此對話與代理程式的持久指令,識別出它的連貫、可重複使用角色,包含輸入、工作、輸出和權限。保留有用的行為與設定;省略個人脈絡。如果職責無法構成單一連貫的範本,請在寫入前先詢問要分享哪項職責。當四個範圍欄位描述出一個新使用者可用的代理程式時,即為完成。
  2. 只盤點相關素材。 選取實作該角色的可移植工作區指令與檔案。找到此 SKILL.md 並使用其中的 scripts/cli.mjs 來進行盤點,以便 CLI 與正在執行的 OpenClaw 安裝版本相匹配;若在技能目錄之外執行,請使用絕對路徑來調用。執行 node scripts/cli.mjs skills list --agent <此代理程式的 ID> --json 和 node scripts/cli.mjs plugins list --enabled --json。將結果與此工作階段中實際可用的工具及角色中使用的功能進行比較。使用 node scripts/cli.mjs plugins inspect <ID> --json 檢查候選工具,以取得其來源與確切版本。僅當你能將某個技能或外掛對應到當前的 ClawHub 套件參考與確切版本時,才予以宣告;僅有外掛可用性並非必要條件。將套件參考放入 packages,MCP 需求放入 mcpServers,實用的排程放入 cronJobs。這些宣告是依賴關係,而非複製到封存檔中的檔案。當每個包含的檔案和宣告都與可重複使用的角色相關聯時,即為完成。
  3. 撰寫提案。 遵循草稿格式。為新擁有者改寫指令。在草稿的 scope 中包含輸入、工作、輸出和權限,並在 CLAW.md 中描述可移植的行為。僅將新撰寫的可移植文字放入 files,並在資訊清單中透過 source 對應包含的工作區檔案。排除原始對話、記憶、USER.md、認證、密碼值、私人 URL、本地路徑與個人事實。不要複製原始工作區的目錄樹。當此回合的草稿路徑下的 JSON 有效且不包含任何私有來源資料時,即為完成。
  4. 移交檢閱。 簡短告知使用者此範本的用途、你包含了哪些可選檔案/依賴項,以及任何你無法移植的功能。不要列印內部草稿路徑或 ID、產生檢閱連結、上傳或發佈。Control UI 會開啟對已建構封存的精確檢閱;使用者可以在那裡移除可選項目並明確發佈。當檢閱開啟時,即為完成。

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 when explicitly requested; install, verify, update, uninstall, publish, or sync skills.

相關技能