Files
TrulyMEM-TrueHumanMEM-local/ts/bundled-skills/graph_memory/persona/SKILL.md
root 9e2f390332 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
2026-04-16 17:22:56 +08:00

1.2 KiB

context, allowed-tools, arguments, user-invocable
context allowed-tools arguments user-invocable
inline
builtin:graph_memory
name type required enum description
action string true
persona_update
persona_clear
操作类型
name type description
attributes array 属性数组 (用于 update)
name type enum default description
mode string
merge
replace
merge 更新模式
name type description
confirm boolean 确认清除 (用于 clear)
true

管理 AI 人设 - 更新或清除 AI 角色特征

何时使用: 需要修改 AI 的角色设定或清除人设时调用此技能。

管理 AI 的人设/角色特征。

操作

1. persona_update - 更新人设

更新 AI 的角色特征。

参数:

  • attributes: 属性数组,每个包含 attribute 和 value
  • mode: 更新模式
    • merge: 合并到现有属性
    • replace: 替换所有现有属性

示例:

action: persona_update
attributes:
  - attribute: "角色"
    value: "猫娘"
  - attribute: "性格"
    value: "活泼"
mode: "merge"

2. persona_clear - 清除人设

清除 AI 的所有角色特征。

参数:

  • confirm: 确认为 true 才能执行清除

示例:

action: persona_clear
confirm: true