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: graph_memory
description: 图记忆工具 - 让 AI 拥有真正的长期记忆能力
when_to_use: 需要 AI 记住、回忆、管理信息或任务时
context: inline
allowed-tools:
- builtin:graph_memory
@ -18,7 +15,9 @@ arguments:
user-invocable: true
---
# GraphMemory 图记忆操作
# 图记忆工具 - 让 AI 拥有真正的长期记忆能力
**何时使用**: 需要 AI 记住、回忆、管理信息或任务时调用此技能。
你可以通过以下操作与图记忆系统交互。