notes-and-context
Installation
SKILL.md
Skill: TraceMem Notes and Context
Purpose
This skill teaches how to "show your work" by adding context and reasoning to the decision trace. This makes the agent's internal logic visible to auditors and humans.
When to Use
- Before making a significant decision (e.g., "I decided to approve this because X").
- When model confidence is relevant ("Confidence: 0.85").
- To summarize findings from multiple reads ("Found 3 matching records, selecting the most recent").
When NOT to Use
- Do not use as a general logging facility for debugging (use your standard logging for that).
- Do not dump raw massive JSON payloads (summarize them).
Core Rules
- Show Your Logic: If you make a choice, record why.
- No Secrets: Never put API keys, passwords, or highly sensitive PII in the context summary.
- Structured Data: Use the
payloadfield for machine-readable context (e.g., scores, counts), andsummaryfor human-readable text.
Correct Usage Pattern
-
Add Context: Call
decision_add_contextwith:decision_id: Current decision.summary: A clear sentence (e.g., "Selected plan B due to cost constraints.").payload: Optional JSON object with details (e.g.,{"plan_a_cost": 100, "plan_b_cost": 50}).
-
Timing: Add context as you go. Do not wait until the end to dump everything. A chronological trace is easier to read.
Common Mistakes
- Empty Context: Making complex decisions without logging any context makes the trace hard to audit ("Blue box effect").
- Redundant Context: Logging "I am about to read data" (the read event itself logs this). Log reasoning, not actions.
- Over-verbosity: Logging every single token or intermediate thought.
Safety Notes
- Privacy: Context strings are often visible in dashboards. Assume your manager can read them.
- Immutable: Once added, context cannot be edited.
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.
16decision-envelope
Using the decision envelope pattern for structured thinking.
15overview
Overview of TraceMem core features, rules, and best practices.
14writing-data
Instructions for writing and efficiently storing data in TraceMem.
14