docs: generalize skill-template references + add TESTING.md

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-10 10:00:44 +08:00
parent f3f59278b4
commit f0032b2201
9 changed files with 368 additions and 122 deletions

View File

@@ -1,5 +1,5 @@
---
description: "这是规范化的新技能模板说明,不直接作为业务技能使用。复制后替换技能名、平台名、CLI 示例与 service 实现。"
description: "规范化的新技能模板说明复制后替换名、CLI 示例与 task_service 等业务实现。"
---
# 技能模板说明
@@ -9,9 +9,10 @@ description: "这是规范化的新技能模板说明,不直接作为业务技
## 它提供什么
- 标准目录结构
- 最小 CLI 入口
- 发布型技能常见的日志表骨架
- `service` 层占位模块
- 最小 CLI 入口`run` / `logs` / `log-get` / `health` / `version`
- 通用任务日志表骨架(`task_logs`
- `service` 层占位模块`task_service.py`、通用 `sibling_bridge.py`
- 成熟的隔离测试体系IsolatedDataRoot、FakeAdapter、6 档测试 target、profile 策略)
- 与现有规范 skill 一致的发布脚本与 GitHub workflow
## 复制后你需要改什么
@@ -20,7 +21,8 @@ description: "这是规范化的新技能模板说明,不直接作为业务技
- `SKILL.md``metadata.openclaw.developer_ids`(如需让非公开技能默认授权给开发者查看)
- `references/CLI.md` 里的命令示例
- `scripts/util/constants.py` 中的 slug / 版本 / logger 名
- `scripts/service/` 下的真实业务实现
- `scripts/service/task_service.py` 中的 `cmd_run` 真实业务逻辑
- 如有特定 task_type`references/SCHEMA.md` 中补充字段映射说明
## `developer_ids` 是做什么的