writing-data
Installation
SKILL.md
Skill: TraceMem Writing Data (Governed Writes)
Purpose
This skill explains how to modify data (insert, update, delete) within TraceMem's governance model. Writing is a high-stakes operation that often triggers policy checks.
When to Use
- When you need to create records, update status, or delete resources.
- After you have read the current state and determined a change is necessary.
When NOT to Use
- Do not write if you are in
proposemode (unless prototyping in a sandbox, but generallyproposeimplies read-only). - Do not write without first evaluating relevant policies (unless you are sure the Data Product has no attached blocking policies).
Core Rules
- Verify Policy First: Before writing, it is best practice to call
decision_evaluateto check if your proposed action is allowed. - One Operation Per Product: Use
_insert,_update, or_deleteproducts appropriately. DO NOT try toinserton anupdateproduct. - Flat vs Nested: You can use a flat structure (operation + fields) for function-like products (e.g.
create_incident) or nestedrecordsfor batch table operations. - Governance: Writes are the primary target for human approvals. Be prepared for a write to be blocked.
- Purpose: Like reads, writes require a valid
purpose.
Related skills
More from tracemem/tracemem-skills
intent-and-automation
Handling user intent and automating memory tasks.
20traces-and-audit
Auditing memory traces and debugging.
17approvals
Guidelines for seeking user approval for sensitive actions.
16notes-and-context
Managing context and notes within the memory system.
16decision-envelope
Using the decision envelope pattern for structured thinking.
15overview
Overview of TraceMem core features, rules, and best practices.
14