skills/overview/SKILL.md
Overview of TraceMem core features, rules, and best practices.
npx skillsauth add tracemem/tracemem-skills overviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides the foundational mental model for using TraceMem. It explains what TraceMem is, why an agent should use it, and how to think about its core primitives: Decision Envelopes and Decision Traces.
The Decision Envelope is NOT optional. ALL TraceMem operations MUST happen within a decision envelope:
decision_read)decision_write - insert/update/delete)decision_evaluate)decision_request_approval)You CANNOT perform any of these operations without an active decision_id.
Here's the exact sequence for reading customer data:
Step 1: Create Decision Envelope
Tool: decision_create
Parameters:
- intent: "customer.lookup.support"
- automation_mode: "autonomous" (must be: propose, approve, override, or autonomous)
Returns: decision_id (e.g., "TMEM_abc123...")
Step 2: Get Product Metadata (Discovery - does NOT require decision envelope)
Tool: product_get
Parameters:
- product: "customers_v1"
Returns: Product metadata including:
- exposed_schema: field names and types
- allowed_purposes: valid purposes for this product
- example_queries: sample query structures
Note: This gets INFORMATION ABOUT the product, not the actual data
Step 3: Read Actual Data (REQUIRES decision_id from Step 1)
Tool: decision_read
Parameters:
- decision_id: "TMEM_abc123..." (from Step 1)
- product: "customers_v1"
- purpose: "support_context" (must be in allowed_purposes from Step 2)
- query: {"customer_id": "1001"} (use field names from schema in Step 2)
Returns: Actual customer records/data from the database
Step 4: Close Decision Envelope (REQUIRED)
Tool: decision_close
Parameters:
- decision_id: "TMEM_abc123..." (from Step 1)
- action: "commit" (or "abort" if cancelled)
OpenCode Convenience Tools (in OpenCode plugin):
tracemem_open → convenience wrapper for decision_create with action mappingtracemem_note → convenience wrapper for decision_add_contextCore MCP Tools (always available):
decision_create, decision_read, decision_write, decision_evaluate, decision_request_approval, decision_closedecision_record -- record a complete decision in one shot (no data operations needed)decision_search -- search previous decisions by text, category, or tagsproducts_list, product_get, capabilities_getImportant: Even when using OpenCode convenience tools, the same rules apply - all operations must be within a decision envelope.
decision_create. This is your mandatory workspace container.products_list to find available data products and product_get to get metadata about a specific product (schema, purposes). These discovery tools do NOT require a decision envelope.decision_read to read actual data records or decision_write to insert/update/delete data. You do not use SQL or API calls directly. ALL data access requires the decision_id from step 1.decision_evaluate (requires decision_id).decision_request_approval (requires decision_id). You never bypass denials.decision_close with "commit" (if successful) or "abort" (if stopped/cancelled).decision_id will FAIL. The decision envelope is MANDATORY.decision_read, decision_write, decision_evaluate, and decision_request_approval REQUIRE an active decision_id. You CANNOT call them without first calling decision_create.testing
Instructions for writing and efficiently storing data in TraceMem.
tools
Complete workflow patterns for common TraceMem operations.
tools
Scenarios where TraceMem should not be used.
development
Auditing memory traces and debugging.