chore: sync from OpenClaw workspace (2026-04-05 09:17)

This commit is contained in:
2026-04-05 09:17:42 +08:00
parent 31925d25bf
commit 5bc3ce6810
7 changed files with 115 additions and 34 deletions

View File

@@ -26,7 +26,7 @@ import os
import sys
# TODO: 复制本文件后改为你的 slug与 SKILL.md metadata.skill.slug 一致)
SKILL_SLUG = "toutiao-publisher"
SKILL_SLUG = "your-skill-slug"
def _getenv_first(names: tuple[str, ...]) -> str:
@@ -82,7 +82,7 @@ def get_skills_root() -> str:
"""
可选:并列安装的多技能根目录。
未设置 CLAW_SKILLS_ROOT 时,默认使用本文件所在仓库的上一级目录的上一级
(即:.../toutiao-publisher/optional/ → 仅作开发时并列技能推断参考)。
(即:.../skill-template/scripts/ → 误推断;复制后请改为 BASE_DIR 逻辑)。
"""
root = _getenv_first(("CLAW_SKILLS_ROOT",))
if root: