← Back to Skills Marketplace
gimlettt

luci-memory

by Zhuorui Yu · GitHub ↗ · v1.0.6 · MIT-0
cross-platform ✓ Security Clean
286
Downloads
0
Stars
0
Active Installs
5
Versions
Install in OpenClaw
/install luci-memory
Description
Search personal video memory — media content (videos, images, keyframes, transcripts) and portrait data (traits, events, relationships, speeches). Use when t...
README (SKILL.md)

luci-memory

Setup

Requires an MEMORIES_AI_KEY. On first use, if no key is found, the script will error and ask for one.

When the user provides their key, save it to {baseDir}/.env:

MEMORIES_AI_KEY=sk-their-key-here

After that, everything just works — the key is loaded automatically from .env on every run.

Timezone

All timestamps in Luci-memory are stored and returned in UTC. Skill output labels them with " UTC" so this is unambiguous. The user's local timezone is in USER.md (e.g. Asia/Shanghai). You are responsible for converting in both directions:

  1. Reading results. When presenting captured_time to the user, convert from UTC to the user's local timezone. Never show raw UTC labels to the user.

  2. Writing filters. --after and --before are interpreted as UTC. If the user says relative dates like "yesterday" or "this morning", convert their local-time intent to a UTC range before passing the dates.

Example (user in Asia/Shanghai, UTC+8, asks "what did I do yesterday" on 2026-04-08):

  • Local intent: 2026-04-07 00:00 → 2026-04-08 00:00 (Asia/Shanghai)
  • UTC range to pass: --after 2026-04-06T16:00:00 --before 2026-04-07T16:00:00

If USER.md has no timezone and the user uses relative dates, ask them first.

Unified search across personal media and portrait data from the Luci-memory API.

The user's videos go through two processing pipelines that produce different data:

  • Media content (personal): video summaries, audio transcripts, visual transcripts, keyframes, images
  • People & knowledge (portrait): traits, events with participants, relationships, speeches attributed to speakers

When to use

  • User asks to find or search videos, images, or photos
  • User asks what was said or shown in a video
  • User asks to list recent videos or images
  • User asks about media at a specific location or time
  • User asks about traits, personality, hobbies, interests
  • User asks what events happened, or events involving specific people
  • User asks about relationships between people
  • User asks about what someone said
  • User mentions "luci memory" or wants to use their video memory

Choosing the right type

  • About content (what happened, what was said/shown, find media) → use media types (search_video, query_audio, etc.)
  • About people (who, traits, relationships, named individuals) → use portrait types (traits, events, speeches, etc.)
  • Ambiguous questions like "What happened with Alice last week?" → use both: portrait types to identify the person and events, media types to get detailed video content and transcripts.
  • Person name fallback: Portrait data only exists for people who have appeared in at least 5 videos AND been named by the user in the app. If a portrait query by person name returns no results, fall back to media types — search video summaries, audio transcripts, or visual transcripts for mentions of that name instead.

Relevance guidelines

  • There is no rerank process — retrieved results may contain items irrelevant to the user's actual intent.
  • Always verify relevance: after receiving results, check each item against the user's original query. Only present results that are relevant. Discard anything that doesn't match.
  • Refine and retry: if results seem off or too broad, retry with a more specific query, narrower date range, or additional filters. Do not just dump low-quality results to the user.
  • Ask the user: if the query is ambiguous or too vague to produce good results, ask the user for more specific conditions before searching. It is better to clarify than to return noise. Do this no more than 1 time.

No hallucination — ground every claim in retrieved data

  • Never fabricate what the user did, said, or experienced. Every detail in your answer must come from actual search results.
  • Multi-step retrieval: for questions like "what did I do and say at XXX", do NOT answer from a single broad search. Follow this pattern:
    1. Locate: search broadly (search_video, search_events) to find relevant video_ids or event_ids.
    2. Retrieve: once you have IDs, prefer query_audio / query_visual with --video-ids to get complete transcripts. You can also use search_audio / search_visual scoped to those video IDs to find specific moments — use both flexibly as needed.
  • Do not stuff keywords into search queries. Each semantic search query should be a short, coherent natural-language query, rather than stacking multiple possible words. You are encouraged to try different ones and query various times though.
  • If data is missing, say so. Do not fill gaps with plausible-sounding guesses. "I couldn't find transcript data for that video" is always better than making something up.

How to invoke

Note: --after / --before are UTC. Convert from the user's local timezone first (see Timezone section above).

Returning Images/Keyframes to User

When search results include signed URLs (keyframes, images), follow this pipeline to send them in chat:

  1. Download the signed URL to the workspace:
    curl -sL -o /path/to/workspace/image.jpg "\x3Csigned_url>"
    
2. Send via OpenClaw message CLI:
openclaw message send --channel \x3Cchannel> --target \x3Cchat_id> --media /path/to/workspace/image.jpg --message "caption"
3. Cleanup the file after sending:
rm /path/to/workspace/image.jpg
⚠️ Signed URLs expire after ~1 hour. Download promptly.
⚠️ Do NOT use /tmp or paths outside the workspace — some tools block external paths.
⚠️ The image tool only analyzes images — it cannot send them to the user. Use openclaw message send --media instead.

# ============ Media content (personal) ============

# --- Video ---
bash {baseDir}/run.sh --query "cooking in kitchen" --type search_video
bash {baseDir}/run.sh --query "what did I do" --type search_video --location "Heze"
bash {baseDir}/run.sh --query "meeting" --type search_video --after 2025-12-01 --before 2026-01-01
bash {baseDir}/run.sh --type query_video
bash {baseDir}/run.sh --type query_video --location "Suzhou" --after 2025-12-01

# --- Image ---
bash {baseDir}/run.sh --query "sunset" --type search_image
bash {baseDir}/run.sh --query "food" --type search_image --location "Beijing"
bash {baseDir}/run.sh --type query_image

# --- Audio Transcripts (what was said) ---
bash {baseDir}/run.sh --query "talking about work" --type search_audio
bash {baseDir}/run.sh --query "budget" --type search_audio --video-ids VI123,VI456
bash {baseDir}/run.sh --type query_audio --video-ids VI123,VI456

# --- Visual Transcripts (what was shown) ---
bash {baseDir}/run.sh --query "walking in park" --type search_visual
bash {baseDir}/run.sh --type query_visual --video-ids VI123,VI456

# --- Keyframes ---
bash {baseDir}/run.sh --query "person waving" --type search_keyframe
bash {baseDir}/run.sh --type query_keyframe --video-ids VI123,VI456

# ============ People & knowledge (portrait) ============

# --- Traits ---
bash {baseDir}/run.sh --type traits
bash {baseDir}/run.sh --type traits --person "Alice"
bash {baseDir}/run.sh --query "outdoor activities" --type search_traits

# --- Events ---
bash {baseDir}/run.sh --type events
bash {baseDir}/run.sh --type events --person "Alice"
bash {baseDir}/run.sh --type events --person "Alice,Bob"
bash {baseDir}/run.sh --type events --after 2025-12-01 --before 2026-01-01
bash {baseDir}/run.sh --query "cooking in kitchen" --type search_events
bash {baseDir}/run.sh --query "meeting" --type search_events --person "Bob" --after 2025-12-01

# --- Relationships ---
bash {baseDir}/run.sh --type relationships
bash {baseDir}/run.sh --type relationships --person "Alice"

# --- Speeches ---
bash {baseDir}/run.sh --type speeches
bash {baseDir}/run.sh --type speeches --person "Alice"
bash {baseDir}/run.sh --type speeches --event-ids EVT123,EVT456
bash {baseDir}/run.sh --type speeches --person "Alice" --event-ids EVT123

Parameters

Flag Short Description
--query -q Search term (required for search_* types)
--type -t Operation type (default: search_video)
--top-k -k Max results (default: 10)
--location -l Filter by location name, geocoded via Google Maps (e.g. "Suzhou")
--after Only results after this date (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS)
--before Only results before this date
--video-ids Comma-separated video IDs (media types)
--person -p Filter by person name(s), comma-separated (portrait types). Use user for self.
--event-ids Comma-separated event IDs (portrait types)

Signed URLs

Image and keyframe results include a signed_url field — a temporary (1-hour) direct link to view/download from Google Cloud Storage. No authentication needed, but they expire after 1 hour.

Types reference

Media search types (require --query)

Type What it searches Supports
search_video Video summaries by meaning --location, --after/before
search_image Image descriptions by meaning --location, --after/before
search_audio Audio transcripts by meaning --video-ids, --after/before
search_visual Visual transcripts by meaning --video-ids, --after/before
search_keyframe Keyframe images by meaning --video-ids, --after/before

Media query types (list/filter)

Type What it returns Requires Supports
query_video Recent videos --location, --after/before
query_image Recent images --location, --after/before
query_audio Audio transcripts for videos --video-ids --after/before
query_visual Visual transcripts for videos --video-ids --after/before
query_keyframe Keyframes for videos --video-ids --after/before

Portrait query types (list/filter)

Type What it returns Supports
traits Personality traits, hobbies, interests --person
events Events with participants --person, --after/before, --event-ids
relationships How user relates to people --person
speeches What people said --person, --event-ids

Portrait search types (semantic, require --query)

Type What it searches Supports
search_events Events by meaning --person, --after/before
search_traits Traits by meaning
Usage Guidance
This skill appears to do what it says: query your personal media and portrait data on memories.ai. Before installing, consider: (1) it requires your MEMORIES_AI_KEY and the SKILL.md asks you to save it to a local .env file in the skill workspace — that stores the key on disk; only do this if you trust the environment and the memories.ai service, (2) the skill will call memories.ai endpoints (including a userinfo endpoint that receives your key) and may download signed URLs (images/keyframes) into the workspace temporarily — those files will be briefly written to disk and sent via the agent's messaging CLI, (3) SKILL.md references USER.md for timezone conversion; ensure your agent has that file or be prepared for the skill to ask you for timezone info, and (4) verify you trust the memories.ai domains listed in the code (skills.memories.ai and mavi-backend.memories.ai). If any of these are unacceptable (disk-stored keys, media downloads, network calls to those domains), do not install or run the skill. Otherwise the skill is internally coherent and fits its stated purpose.
Capability Analysis
Type: OpenClaw Skill Name: luci-memory Version: 1.0.6 The luci-memory skill is a legitimate tool for searching personal media and portrait data via the memories.ai API. It manages an API key (MEMORIES_AI_KEY) stored in a local .env file and communicates with authorized backend endpoints (skills.memories.ai and mavi-backend.memories.ai). The SKILL.md provides clear instructions for the agent to handle timezone conversions, verify result relevance, and display images using standard OpenClaw CLI tools. The Python implementation in scripts/run.py uses standard libraries for API interaction and lacks any indicators of malicious intent, such as unauthorized data exfiltration or suspicious execution patterns.
Capability Tags
requires-sensitive-credentials
Capability Assessment
Purpose & Capability
Name/description (personal video/media/portrait search) aligns with the actual behavior: the code calls memories.ai endpoints and requires a MEMORIES_AI_KEY. Required binary (python3) and the single env var are appropriate for this client tool.
Instruction Scope
SKILL.md and scripts instruct the agent to store the MEMORIES_AI_KEY in a local .env, convert user-local times using USER.md, download signed-media URLs to the workspace and send them via the OpenClaw CLI. These actions are expected for a media-retrieval skill, but note: SKILL.md references USER.md (timezone info) which is not declared in requires.config paths (the agent must have or obtain USER.md). The instructions also describe downloading user media into the workspace and sending it via the agent; this is normal but has privacy implications.
Install Mechanism
No external install/downloads are performed; the skill is provided as Python scripts included in the bundle. There are no third-party package installs or remote archives referenced by the install spec.
Credentials
Only MEMORIES_AI_KEY is required and is the declared primary credential. The code reads the key from the environment or a local .env file next to the skill — this is proportional to contacting the memories.ai/userinfo APIs. Users should note the key will be stored on disk if they follow the SKILL.md instructions.
Persistence & Privilege
The skill is not always-enabled and does not request elevated platform privileges. It does network calls and writes/reads a local .env (its own config), but it does not modify other skills or system-wide settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install luci-memory
  3. After installation, invoke the skill by name or use /luci-memory
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.6
luci-memory 1.0.6 - Added detailed instructions for returning images and keyframes to the user: download signed URLs to the workspace and send using openclaw message send --media. - Provided explicit security and expiration warnings for handling signed image URLs. - Clarified that images should not be sent using /tmp or non-workspace paths, and not with the image tool. - No changes to code, API, or invocation methods. Documentation only.
v1.0.5
Version 1.0.5 of luci-memory - No code or documentation changes detected in this version. - Behavior and usage remain unchanged from the previous release.
v1.0.3
- Added explicit timezone handling: all Luci-memory timestamps are UTC; skill must convert to user's local timezone (from USER.md) when presenting times and interpreting relative date queries. - Updated SKILL.md with a new "Timezone" section, detailed explainers, and usage examples for converting between UTC and local time in both inputs and outputs. - Clarified that --after/--before filters must use UTC, and to ask the user for their timezone if not set and relative dates are used. - No .env file is now included in the repository (removed from sources).
v1.0.1
- Added support for API authentication via MEMORIES_AI_KEY, using a .env file for secure storage and auto-loading. - Introduced first-time setup instructions: users will be prompted for their key if not present, and it is saved to .env. - Updated SKILL.md with metadata describing environment variable requirements. - No functional search changes, but skill now requires proper API key setup for use.
v1.0.0
luci-memory 1.0.0 – Initial release - Enables unified search across personal media content (videos, audio, images, keyframes, transcripts) and portrait data (traits, events, relationships, speeches). - Provides clear guidance on when to use media search vs. portrait data for user queries. - Includes detailed usage instructions, parameters, and sample invocation commands. - Recommends strict relevance checks: only return information grounded in retrieved data, never fabricate or hallucinate. - Outlines best practices for refining searches and handling ambiguous or missing data.
Metadata
Slug luci-memory
Version 1.0.6
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 5
Frequently Asked Questions

What is luci-memory?

Search personal video memory — media content (videos, images, keyframes, transcripts) and portrait data (traits, events, relationships, speeches). Use when t... It is an AI Agent Skill for Claude Code / OpenClaw, with 286 downloads so far.

How do I install luci-memory?

Run "/install luci-memory" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is luci-memory free?

Yes, luci-memory is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does luci-memory support?

luci-memory is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created luci-memory?

It is built and maintained by Zhuorui Yu (@gimlettt); the current version is v1.0.6.

💬 Comments