Community编程与开发github.com

创建模板

将这个智能体转换为一个可供他人复用的可分享模板。

创建模板 是什么?

该技能将当前AI智能体会话封装为一个标准化的可复用模板,便于他人审查和使用。它由控制界面调用,在现有对话中创建一个私有草稿,并使用特定于该请求的`draftId`作为工作上下文——这确保了多个同时进行的模板创建过程彼此隔离。工作流程涉及四个关键步骤:捕捉智能体的可复用角色(定义其输入、任务、输出和权限)、盘点仅相关的工作区和插件依赖、按照草案格式编写提案(生成新的`CLAW.md`与清理后的`files`),最后移交审查而不暴露内部路径或ID。 对于开发者和AI智能体用户而言,该技能解决了将特定配置的智能体转换为通用、可共享版本的核心需求。它通过仅包含可移植的工作区指令和经过验证的工具依赖(包括通过ClawHub的`scripts/cli.mjs`进行精确的包引用),确保不会泄露个人信息、凭证或私有数据。该技能支持OpenClaw平台,并依赖控制界面进行包组装和发布——用户只需在审查阶段移除可选组件并确认发布。

兼容平台✓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 的新对话。

文档

创建模板 是做什么的?

控制界面在智能体现有的主对话中调用此手动技能。它在发送消息之前准备一份私有草稿,并将该请求的 draftId 附加为工作上下文。使用此轮次附带的 draftId,并且只编辑 .openclaw/template-drafts/<draftId>.json;切勿搜索最新草稿或使用共享指针。附加的上下文是针对特定请求的,因此重叠的模板创建保持隔离。保持内部路径和 ID 不暴露在你的回复中。在同一个对话中工作;当草稿准备好时,控制界面会打开包审查,并负责包组装和发布。

  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、生成审查链接、上传或发布。控制界面会打开对构建好的精确存档的审查;用户可以在那里移除可选组件并明确发布。当审查打开时,即完成。

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.

相关技能