返回顶部
p

project-memory-guard项目内存守卫

Enforce project boundaries and memory writeback rules before anything enters project memory. Use before: writing notes into project memory, saving outputs/tasks/summaries, importing external messages into projects, migrating historical records. Triggered when anything attempts to write to project memory or when project boundary validation is needed.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
87
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

project-memory-guard

项目记忆守卫

根据项目和回写规则验证每次内存写入。防止污染和模式漂移。

输入

必填字段:

  • - rawcontent — 试图进入项目记忆的内容
  • candidateprojectid — 正在写入的项目
  • memorytype — 记忆类型:笔记、发现、任务、摘要、记录等
  • source — 来源:用户消息、论文、工具输出等
  • timestamp — 内容创建时的ISO-8601时间戳
  • confidence — 项目分配的置信度评分0.0–1.0

输出模式

decision: accept | reject | reroute
destination: string | null # project_id 或 inbox 或 null
normalized_record: object | null # 接受/重路由后的清理记录
contamination_risk: none | low | medium | high
missing_fields: string[] | null
reason: string

硬性规则

条件决策
缺少 projectid拒绝 — 不得进入正式项目记忆
缺少 memorytype
拒绝 — 不得正式回写 | | 缺少 timestamp | 拒绝 — 不得正式回写 | | 置信度 < 0.6 | 重路由 至收件箱 | | 跨项目歧义 | 重路由 至收件箱或清理模式 | | 所有字段齐全 + 高置信度 | 接受 |

重路由目标

  • - inbox — 等待人工审核的未验证内容
  • cleanup — 需要消歧的歧义内容
  • 特定project_id — 重路由至已知项目时

标准化

当 decision 为 accept 或 reroute 时,对记录进行标准化:

  • - 剥离不在模式中的标识性元数据
  • 添加 validatedat 时间戳
  • 添加 guardversion = 1.0
  • 在 normalizedrecord.raw 中保留原始 rawcontent

失败处理

若对任何字段不确定:

  • - 不要猜测projectid或memorytype
  • 设置 decision = reroute,destination = inbox
  • 明确列出 missing_fields
  • 在 reason 中说明

验证失败时绝不强制接受。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 project-memory-guard-1775978701 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 project-memory-guard-1775978701 技能

通过命令行安装

skillhub install project-memory-guard-1775978701

下载

⬇ 下载 project-memory-guard v1.0.0(免费)

文件大小: 1.77 KB | 发布时间: 2026-4-13 11:38

v1.0.0 最新 2026-4-13 11:38
Initial release: enforce project boundaries and memory writeback rules

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部