返回顶部
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
安全检测
已通过
67
下载量
0
收藏
概述
安装方式
版本历史

project-memory-guard

# Project Memory Guard Validate every memory write against project and writeback rules. Prevent contamination and schema drift. ## Input Required fields: - `raw_content` — the content attempting to enter project memory - `candidate_project_id` — the project being written to - `memory_type` — type of memory: note, finding, task, summary, record, etc. - `source` — where this came from: user message, paper, tool output, etc. - `timestamp` — ISO-8601 timestamp of when the content was created - `confidence` — confidence score 0.0–1.0 for project assignment ## Output Schema ``` decision: "accept" | "reject" | "reroute" destination: string | null # project_id or "inbox" or null normalized_record: object | null # cleaned record if accepted/rerouted contamination_risk: "none" | "low" | "medium" | "high" missing_fields: string[] | null reason: string ``` ## Hard Rules | Condition | Decision | |-----------|----------| | Missing `project_id` | **reject** — never enter formal project memory | | Missing `memory_type` | **reject** — no formal writeback | | Missing `timestamp` | **reject** — no formal writeback | | Confidence < 0.6 | **reroute** to inbox | | Cross-project ambiguity | **reroute** to inbox or cleanup mode | | All fields present + high confidence | **accept** | ## Reroute Destinations - `inbox` — unverified content waiting for manual review - `cleanup` — ambiguous content needing disambiguation - Specific project_id — when rerouting to a known project ## Normalization When `decision` is `accept` or `reroute`, normalize the record: - Strip identifying metadata not in schema - Add `validated_at` timestamp - Add `guard_version` = "1.0" - Preserve original `raw_content` in `normalized_record.raw` ## Failure Handling If uncertain about any field: - Do not guess project_id or memory_type - Set `decision = "reroute"` with `destination = "inbox"` - List `missing_fields` explicitly - Explain in `reason` Never force acceptance when validation fails.

标签

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

下载 Zip 包

⬇ 下载 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
返回顶部