← 返回 Skills 市场
maverick-software

Agent Templates System

作者 maverick-software · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
105
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install agent-templates-system
功能描述
OpenClaw Agent Templates system reference and workflow guide. Use when creating, editing, reviewing, debugging, or extending the built-in Agent Templates fea...
使用说明 (SKILL.md)

Agent Templates System

Use this skill when working on OpenClaw's built-in Agent Templates feature.

What this system does

The Agent Templates system lets OpenClaw store reusable agent blueprints in SQLite, edit them in the Control UI, and materialize real agents from those blueprints.

A template can define:

  • identity defaults
  • included skills
  • partial agent config
  • workspace files
  • memory seeds

From the UI, a user can:

  • list templates
  • create templates
  • edit templates
  • delete templates
  • create a real agent from a selected template

Core workflow

  1. Read references/implementation.md first.
  2. If UI work is involved, also read references/ui-design.md.
  3. If you need payload examples, read references/template-schema.md and inspect assets/examples/.
  4. When changing behavior, keep storage, gateway methods, and UI state in sync.
  5. When validating a bug or feature, test both:
    • template CRUD
    • agent creation from template

Source of truth files

Read these files in the OpenClaw repo when making code changes:

  • src/agents/templates.ts
  • src/gateway/server-methods/agent-templates.ts
  • ui/src/ui/controllers/templates.ts
  • ui/src/ui/views/templates.ts

Important behaviors

  • Templates are stored in SQLite under the OpenClaw state dir.
  • Template definitions are normalized before storage/use.
  • Creating an agent from a template updates OpenClaw config, creates a workspace, writes identity/workspace files, and seeds memory.
  • Included skills are merged with template config and create-time overrides.
  • Workspace file paths are constrained to stay inside the target workspace.

Practical guidance

  • Prefer small, composable template definitions.
  • Put durable persona/role setup in workspace.files.
  • Put starter memory in workspace.memorySeeds.
  • Use definition.skills for reusable attached skills.
  • Keep UI wording aligned with the underlying JSON schema.
  • If the UI allows raw JSON editing, make parser errors user-legible.

Debugging checklist

  • Can agentTemplates.list return the template?
  • Does agentTemplates.get return the expected normalized definition?
  • Does the UI render the selected template and preserve edits?
  • Does agents.createFromTemplate create a non-conflicting agent id?
  • Were SOUL.md, IDENTITY.md, AGENTS.md, and any seeded files written as expected?
  • Did config get updated with workspace, identity, and merged skills?

References in this skill

  • references/implementation.md — architecture and code map
  • references/template-schema.md — practical schema notes and field behavior
  • references/ui-design.md — Control UI layout and UX notes
  • assets/examples/agent-template-definition.json — example template payload
安全使用建议
This skill is a documentation-only guide for the Agent Templates feature and appears coherent with that purpose. Before using the create-from-template flow in production: 1) review any template JSON (especially workspace.files and memorySeeds) so you know exactly what files will be written and where; 2) verify the product's path-traversal protections and that workspace paths resolve where you expect (the docs state this check exists, but confirm in code/runtime); 3) inspect any included skills that have clawhubUrl or other external references — understand whether materializing the template will fetch or execute remote code; 4) test in a sandbox/non-production environment to confirm config updates and file writes behave as expected; and 5) be cautious with raw JSON editing (parser errors and malformed definitions can lead to unexpected materialization).
功能分析
Type: OpenClaw Skill Name: agent-templates-system Version: 1.0.0 The bundle is a comprehensive documentation and reference package for the OpenClaw 'Agent Templates' system, designed to guide an AI agent in developing or managing the feature. It contains implementation maps, JSON schema definitions (references/template-schema.md), and UI design notes (references/ui-design.md) without any evidence of malicious intent, data exfiltration, or harmful instructions. The documentation explicitly mentions security measures, such as path-traversal checks for workspace file creation.
能力评估
Purpose & Capability
The name/description match the included files: design notes, implementation map, schema, UI guidance, and an example template. There are no unrelated env vars, binaries, or install steps requested.
Instruction Scope
SKILL.md and the references explicitly instruct readers to inspect repository source files and describe the create-from-template flow that writes config, workspace files, identity files, and seeds memory. That behavior is coherent for a template materialization feature, but it does mean using the feature will cause local file and config writes (into the OpenClaw state dir and target workspace).
Install Mechanism
This is instruction-only with no install steps, downloads, or code to write to disk as part of skill installation.
Credentials
The skill requests no credentials or env vars. However template definitions support optional clawhubUrl entries (example uses https://clawhub.ai/...), which implies that creating an agent could pull or reference remote skills — a reasonable capability for this feature but one you should review before materializing templates that reference external endpoints.
Persistence & Privilege
always is false and there is no install that persists or auto-enables the skill. The documentation explains components that will modify OpenClaw config and write workspace files when materializing templates — expected for this feature and scoped to the agent being created.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agent-templates-system
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agent-templates-system 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: bundle OpenClaw Agent Templates system workflow, implementation references, schema notes, and UI design reference.
元数据
Slug agent-templates-system
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Agent Templates System 是什么?

OpenClaw Agent Templates system reference and workflow guide. Use when creating, editing, reviewing, debugging, or extending the built-in Agent Templates fea... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 105 次。

如何安装 Agent Templates System?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agent-templates-system」即可一键安装,无需额外配置。

Agent Templates System 是免费的吗?

是的,Agent Templates System 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Agent Templates System 支持哪些平台?

Agent Templates System 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Agent Templates System?

由 maverick-software(@maverick-software)开发并维护,当前版本 v1.0.0。

💬 留言讨论