openclaw - 💡(How to fix) Fix Feature: Skills 组件模型扩展(manifest + 多组件)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Code Example

my-skill/
├── SKILL.md           # 核心指令(现有,保持不变)
├── manifest.yaml       # 元数据声明(新增,可选)
├── templates/          # 提示词模板
├── agents/             # Subagent 模板
└── references/         # 参考文档(渐进加载,不占 context)

---

name: financial-analysis
version: "1.0.0"
description: "上市公司财务分析。触发词:分析财报、DCF估值、财务分析。"
triggers: ["分析财报", "DCF估值", "财务分析"]
capabilities:
  templates: [{path: "templates/dcf.md"}]
  agents: [{path: "agents/extractor.md"}]
  references: [{path: "references/standards.md"}]
RAW_BUFFERClick to expand / collapse

问题

当前 OpenClaw Skills 只支持 prompt 注入(SKILL.md)。Claude Code 的 Plugin 系统支持更丰富的组件模型:

  • commands/ — Slash 命令
  • agents/ — Subagent 模板
  • hooks/ — 事件钩子
  • output-styles/ — 输出样式
  • templates/ — 提示词模板
  • references/ — 渐进式加载的参考文档

建议

第一阶段:Skills 目录结构标准化

my-skill/
├── SKILL.md           # 核心指令(现有,保持不变)
├── manifest.yaml       # 元数据声明(新增,可选)
├── templates/          # 提示词模板
├── agents/             # Subagent 模板
└── references/         # 参考文档(渐进加载,不占 context)

manifest.yaml 示例:

name: financial-analysis
version: "1.0.0"
description: "上市公司财务分析。触发词:分析财报、DCF估值、财务分析。"
triggers: ["分析财报", "DCF估值", "财务分析"]
capabilities:
  templates: [{path: "templates/dcf.md"}]
  agents: [{path: "agents/extractor.md"}]
  references: [{path: "references/standards.md"}]

参考

  • Claude Code 源码:Plugin 系统(多源加载 + manifest + 组件模型)
  • Claude Code 知识库第14章:Skills 渐进式披露
  • 设计文档:OpenClaw workspace self-improving/design-skills-components.md

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Feature: Skills 组件模型扩展(manifest + 多组件)