project-memory-guard
БесплатноБез исполняемых скриптовНе проверенEnforce project boundaries and memory writeback rules before anything enters project memory. Use before: writing notes into project memory, saving…
от jiaxiaojunQAQ★ 35 звёзд на GitHubОб этом скилле
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 memorycandidate_project_id— the project being written tomemory_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 createdconfidence— 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 reviewcleanup— 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_attimestamp - Add
guard_version= "1.0" - Preserve original
raw_contentinnormalized_record.raw
Failure Handling
If uncertain about any field:
- Do not guess project_id or memory_type
- Set
decision = "reroute"withdestination = "inbox" - List
missing_fieldsexplicitly - Explain in
reason
Never force acceptance when validation fails.
Установить project-memory-guard в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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.
Как установить скилл project-memory-guard?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл project-memory-guard запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic