fix: 修复Skill定义兼容性 - 整合description和when_to_use到Markdown body

移除frontmatter中不被WaterFlow处理的冗余字段:
- name: WaterFlow使用目录名作为skill名称
- description: WaterFlow从Markdown #标题提取
- when_to_use: 不被处理,整合到body中

修改后的SKILL.md完全兼容WaterFlow SkillLoader:
- description从#标题正确提取
- allowed-tools正确转换为allowedTools
- arguments正确映射
- user-invocable正确转换为userInvocable
This commit is contained in:
root
2026-04-16 17:22:56 +08:00
parent 56e787a5a8
commit 9e2f390332
3 changed files with 9 additions and 12 deletions

View File

@ -1,7 +1,4 @@
---
name: persona
description: 管理 AI 人设 - 更新或清除 AI 角色特征
when_to_use: 需要修改 AI 的角色设定或清除人设时
context: inline
allowed-tools:
- builtin:graph_memory
@ -25,7 +22,9 @@ arguments:
user-invocable: true
---
# GraphMemory Persona 人设管理
# 管理 AI 人设 - 更新或清除 AI 角色特征
**何时使用**: 需要修改 AI 的角色设定或清除人设时调用此技能。
管理 AI 的人设/角色特征。