feat: add standard init-db CLI for host install schema ensure
All checks were successful
技能自动化发布 / release (push) Successful in 4s

This commit is contained in:
2026-07-14 17:26:24 +08:00
parent af7a43a702
commit 6b64aad138
11 changed files with 76 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
---
name: 技能开发模板(通用业务版)
description: "OpenClaw 通用业务技能开发模板,供复制后定制新业务 skill。定制步骤见 development/DEVELOPMENT.md。"
version: 1.0.40
version: 1.0.42
author: 深圳匠厂科技有限公司
metadata:
openclaw:
@@ -38,7 +38,7 @@ allowed-tools:
- 只读查询(`health` / `stats` 等)可用 `"sync"`,立即返回结果。
- 批量处理用参数化 `pickCount` / `--pick N` 顺序消费队列,**不要并发**同一 Profile。
- 详细契约:`development/SKILL_ACTION_RUNTIME.md``references/ACTIONS.md``references/SCHEMA.md`
- 模板源仓库本身仅示范 `health` / `version` / `config-path`sync);定制后按业务增加 Action**一个能力一个 Action + 多 placements**。
- 模板源仓库本身仅示范 `health` / `version` / `config-path` / `init-db`(运维/诊断 CLI);定制后按业务增加 Action**一个能力一个 Action + 多 placements**。
## 面向用户问答LLM 规则)
@@ -83,6 +83,7 @@ allowed-tools:
python {baseDir}/scripts/main.py health
python {baseDir}/scripts/main.py config-path
python {baseDir}/scripts/main.py version
python {baseDir}/scripts/main.py init-db
```
配置:仓库 `.env.example` 为模板;用户 `.env``{JIANGCHANG_DATA_ROOT}/{JIANGCHANG_USER_ID}/{slug}/.env`,启动时自动 bootstrap。优先级进程环境变量 > 用户 `.env` > `.env.example`