Skip to main content

mem0-remember

Stores a memory verbatim from user input with appropriate type classification and metadata. Use when the user says remember this, save this, store this, note that, or explicitly asks to record a decision, preference, convention, or learning.

소스 정보

저장소
mem0ai/mem0
최근 소스 활동
2026년 9월 8일 18:02
감지된 SKILL.md 언어
영어
스타
68,275
포크
8,103

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
mem0-remember
description
Stores a memory verbatim from user input with appropriate type classification and metadata. Use when the user says remember this, save this, store this, note that, or explicitly asks to record a decision, preference, convention, or learning.
# Mem0 Remember Store a fact or learning directly into mem0. ## Execution ### Step 1: Extract the content The user provides the content as an argument: `/mem0-remember <text>` If no text was provided, ask: "What should I remember?" ### Step 2: Classify the memory Based on the content, pick the best `metadata.type`: | Content signal | Type | |---|---| | "we decided...", "always use...", "never..." | `decision` | | "X doesn't work because...", "don't try..." | `anti_pattern` | | "I prefer...", "use X instead of Y" | `user_preference` | | "the convention is...", "we always..." | `convention` | | "learned that...", "figured out..." | `task_learning` | | setup, env, tooling, config | `environmental` | | anything else | `task_learning` | ### Step 3: Store Call `add_memory` with: - `text="<the user's text>"` - `user_id=<active_user_id>` - `app_id=<active_project_id>` - `metadata={"type": "<classified_type>", "branch": "<active_branch>", "confidence": 1.0, "source": "remember_command"}` - `infer=False` `infer=False` because the user stated the fact explicitly — no extraction needed. `confidence=1.0` because the user explicitly asked to store this. ### Step 4: Confirm The `add_memory` response returns `event_id` (not `memory_id`) because writes are async. Call `get_event_status(event_id=<event_id>)` once. - If status is `SUCCEEDED`: print the memory ID from the result. - If status is `PENDING` or `processing`: print with the event ID as fallback. ``` Remembered as <type>: "<content, first 80 chars>" Memory ID: <id from event status> ``` Append `...` only if content was truncated (longer than 80 chars). ## Output formatting IMPORTANT: Do NOT use markdown in your output. OpenCode TUI renders text verbatim — markdown like **bold**, ## headers, and | table | syntax appears as raw characters. Use plain text with indentation for structure. Use dashes for lists. Use spaces to align columns instead of markdown tables.
GitHub에서 보기