chore: auto release commit (2026-04-01 14:40:56)
All checks were successful
skill-release-placeholder / release (push) Successful in 1s
All checks were successful
skill-release-placeholder / release (push) Successful in 1s
This commit is contained in:
@@ -14,4 +14,4 @@
|
||||
| `paths_snippet.py` | `CLAW_*` 数据目录解析与 fallback 说明 |
|
||||
| `sqlite_minimal.py` | 无业务含义的 SQLite 建表示例 |
|
||||
|
||||
复制后务必全局替换 `your-skill-slug` 与表名,避免与别的技能冲突。
|
||||
本技能数据子目录与 `SKILL_SLUG` 为 `toutiao-publisher`;若复制片段到其它项目请改为对应 slug 与表名。
|
||||
|
||||
@@ -26,7 +26,7 @@ import os
|
||||
import sys
|
||||
|
||||
# TODO: 复制本文件后改为你的 slug(与 SKILL.md metadata.skill.slug 一致)
|
||||
SKILL_SLUG = "your-skill-slug"
|
||||
SKILL_SLUG = "toutiao-publisher"
|
||||
|
||||
|
||||
def _getenv_first(names: tuple[str, ...]) -> str:
|
||||
@@ -82,7 +82,7 @@ def get_skills_root() -> str:
|
||||
"""
|
||||
可选:并列安装的多技能根目录。
|
||||
未设置 CLAW_SKILLS_ROOT 时,默认使用本文件所在仓库的上一级目录的上一级
|
||||
(即:.../skill-template/scripts/ → 误推断;复制后请改为 BASE_DIR 逻辑)。
|
||||
(即:.../toutiao-publisher/optional/ → 仅作开发时并列技能推断参考)。
|
||||
"""
|
||||
root = _getenv_first(("CLAW_SKILLS_ROOT",))
|
||||
if root:
|
||||
|
||||
Reference in New Issue
Block a user