一键导入
use-memory
Stores and retrieves agent memories for context persistence. Use when saving findings, recalling past analysis, or searching for relevant context.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Stores and retrieves agent memories for context persistence. Use when saving findings, recalling past analysis, or searching for relevant context.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Routes user queries to the best-fit Altertable skill. Use when unsure which Altertable skill applies to a request.
Instruments applications with Altertable Product Analytics. Use when adding event tracking, identifying users, updating traits, resetting sessions, managing consent, or aliasing identifiers.
Queries and analyzes Altertable product events and identities. Use for event counts, properties, user activity, identity traits, behavioral trends, or validating incoming instrumentation.
Creates and analyzes conversion funnels. Use when analyzing user journeys, drop-off points, onboarding, checkout, or multi-step flows.
Interprets Insight data to identify patterns, anomalies, and trends. Use when analyzing visualizations, extracting findings, or explaining patterns in graphs.
Analyzes web analytics traffic patterns and user behavior. Use when asked about pageviews, sessions, traffic sources, or website user behavior.
| name | use-memory |
| compatibility | Requires Altertable MCP server |
| description | Stores and retrieves agent memories for context persistence. Use when saving findings, recalling past analysis, or searching for relevant context. |
| metadata | {"author":"altertable-ai","requires":"altertable-mcp"} |
Memory and knowledge transform agents from stateless tools into learning entities. Instead of starting fresh each run, agents can:
Altertable distinguishes knowledge entries from memories:
create_knowledge only when the user wants a stable source of truth recorded exactly.At the start of every workflow - proactively recall relevant context before taking action.
Search when:
initialize returns relevant knowledge entries, read them before decidingOnly after something valuable happens - quality over quantity.
Create a memory when:
Create a knowledge entry when:
Do not create memories for:
Record specific events with outcomes.
Use when: Something happened that you should remember
Include: The outcome (success, failure, rejected, approved)
Example: "Created DSC-789 for 15% revenue drop. User rejected - said threshold should be 20%."
Record facts and knowledge independent of specific events.
Use when: You learned a fact or pattern
Include: Confidence level if uncertain
Example: "Organization ignores metric changes under 20% - confirmed by user feedback."
Record techniques and approaches that work.
Use when: You discovered a technique
Include: Success rate and failure contexts
Example: "For sales table: use date_trunc with timezone filter for accurate daily aggregations. Fails without timezone on UTC data."
Did something HAPPEN? (event with outcome) → Episodic
Did you LEARN A FACT? (pattern, threshold, preference) → Semantic
Did you DISCOVER A TECHNIQUE? (approach, workaround) → Procedural
None of the above? → Probably not worth saving
Quick reference for common situations:
| Situation | Type | Scope | Importance | Decay |
|---|---|---|---|---|
| Discovery approved | Episodic | Workflow | 8 | Weekly |
| Discovery rejected with feedback | Episodic | Workflow | 9 | Monthly |
| User stated preference | Semantic | Organization | 9 | Monthly |
| Data pattern found | Semantic | Organization | 7 | Weekly |
| Query optimization worked | Procedural | Organization | 8 | Monthly |
| Workaround for edge case | Procedural | Workflow | 6 | Weekly |
| Entity-specific behavior | Semantic | Entity | 7 | Weekly |
| Workflow failed for specific reason | Episodic | Workflow | 8 | Weekly |
| Business rule confirmed | Semantic | Organization | 9 | Monthly |
| Technique failed in context | Procedural | Workflow | 7 | Weekly |
Knowledge that applies to everyone in the org.
Context specific to this workflow type.
Knowledge private to a specific agent.
Facts about a specific entity (insight, discovery, table).
Does this apply to the entire organization? → Organization
Is this specific to this workflow type? → Workflow
Is this about a specific entity (INS-, DSC-)? → Entity
Is this my personal learning/optimization? → Agent
Link memories to specific entities when relevant:
This enables searching for all memories related to a specific entity.
Rate importance honestly - it affects how long memories persist.
| Score | Meaning | Examples |
|---|---|---|
| 9-10 | Critical | Major outage cause, critical business rule |
| 7-8 | Valuable | Clear pattern, confirmed preference |
| 5-6 | Moderate | Potentially useful, unconfirmed |
| 1-4 | Low | Minor detail, easily rediscovered |
Guideline: Only save memories with importance >= 7. Lower importance creates noise.
Memories decay over time without reinforcement.
Decay rates:
Over time, the system automatically:
Episodic → Semantic: When multiple similar events occur, they get abstracted into a general pattern.
Procedural merging: Similar techniques get consolidated into best practices.
Scope promotion: Patterns seen across multiple workflows get promoted to organization scope.
Good memories are specific, actionable, and include context.
| Bad | Good |
|---|---|
| "Revenue issue" | "Revenue dropped 15% in Q4 due to seasonal churn" |
| "User didn't like it" | "User rejected DSC-123 - said 10% threshold is too low, prefers 20%" |
| "Query was slow" | "Sales table aggregation: use date_trunc with index, reduced from 30s to 2s" |
| "Something about funnels" | "Funnel analysis requires strict event ordering for accurate conversion rates" |
Search returns no results:
Search returns low relevance:
Expected memory is missing:
Too much noise in results: