← Back to Skills Marketplace
raydez

每日记忆管家

by Ray Xing · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
419
Downloads
1
Stars
3
Active Installs
3
Versions
Install in OpenClaw
/install auto-memory-keeper
Description
Auto-capture hourly session highlights and update daily memory files. Keeps long-term memory continuous without manual recording. Triggered by cron or manual...
README (SKILL.md)

Auto Memory Keeper

Overview

Automatically extract session content and update daily memory files to maintain long-term memory continuity.

Two modes:

  • Passive mode: Cron job runs hourly (automatic)
  • Active mode: Manual trigger by user ("remember this", "log today")

How It Works

Triggers

  1. Auto-trigger: Cron job runs every hour
  2. Manual trigger: User says "remember this", "log today", "update memory"

Workflow

Step 1: Check Environment

DATE=$(date +%Y-%m-%d)
MEMORY_FILE=~/.openclaw/workspace/memory/${DATE}.md

if [ ! -f "$MEMORY_FILE" ]; then
  echo "# ${DATE} Log\
\
## Today's Items\
\
- " > "$MEMORY_FILE"
fi

Step 2: Fetch Recent Sessions

# Use sessions_list to get active sessions in last 60 minutes
# Use sessions_history to get session details

Step 3: Noise Filtering

Skip these message types:

  • Simple greetings ("hi", "hello", "hey")
  • Acknowledgments ("thanks", "ok", "sure", "yes")
  • Single word responses
  • Questions without context
  • HEARTBEAT_OK messages
  • System messages

Step 4: Extract Key Info

From filtered messages, extract:

Type Keywords Format
Decision "decided", "chose", "adopted" - {time} {decision}
Task new feature, new config, new task - {time} {task description}
Progress "completed", "finished", "installed" - {time} completed {task}
Issue error, bug, failed - {time} issue: {description}
Conclusion summary, conclusion, finding - {time} {conclusion}

Step 5: Smart Deduplication

Check for duplicates before recording:

# Read current file content
# If similar content exists (>80% similarity), skip
# Otherwise append

Step 6: Update Memory File

Format:

## Today's Items

- {time} {item description}
- {time} {item description}
...

Examples

Input (user message):

"installed openclaw-tavily-search, score 3.639"

Stored:

- 21:47 installed openclaw-tavily-search skill (score 3.639)

Input (user message):

"auto-extract session content to memory file every hour"

Stored:

- 21:50 created auto-memory-keeper skill for hourly auto memory extraction

Configuration

Configurable via config.json:

{
  "memory_dir": "~/.openclaw/workspace/memory",
  "interval_hours": 1,
  "active_minutes": 60,
  "categories": ["Decision", "Task", "Progress", "Issue", "Conclusion"],
  "skip_patterns": ["^hi", "^hello", "^thanks", "^ok"],
  "dedup_threshold": 0.8
}

Quality Rules

  1. Concise - One sentence per item
  2. Timestamp - Always include time
  3. Dedupe - Avoid duplicate entries
  4. Categorize - Classify by type
  5. Skip noise - Don't record trivial messages

FAQ

Q: How to trigger manually? A: Say "remember this", "log today", or "update memory"

Q: Where is cron configured? A: Use cron job add command, see example in SKILL.md

Q: Where are memory files stored? A: ~/.openclaw/workspace/memory/YYYY-MM-DD.md

Testing

Periodically review memory files and adjust skip_patterns for better filtering.

Related

  • Works well with session-wrap-up (manual vs auto trigger)
  • Complex memories can be manually written to MEMORY.md (long-term)
Usage Guidance
This skill does what it says: it collects recent session messages and appends summarized lines to daily markdown files under ~/.openclaw/workspace/memory. Before enabling automatic runs or cron triggers, review the included script and config.json, and consider: (1) the memory files will persist summaries that may contain sensitive content — decide whether you are comfortable storing that locally; (2) change memory_dir or tighten file permissions (e.g., chmod 600) if needed; (3) verify what the agent's sessions_list / sessions_history calls will expose (other users' messages, credentials, API responses) — the script depends on the agent to provide session content; (4) run the script manually once to see generated output and adjust skip_patterns and dedup_threshold to reduce noise. No external network endpoints or secret requirements were found, but exercise the usual caution when allowing automatic background capture of conversational data.
Capability Analysis
Type: OpenClaw Skill Name: auto-memory-keeper Version: 1.0.2 The 'auto-memory-keeper' skill is designed to maintain a daily log of user activities by extracting highlights from recent OpenClaw sessions. The Python script (scripts/auto_memory_keeper.py) and instructions (SKILL.md) focus on local file management within the ~/.openclaw directory, using standard libraries and the openclaw CLI to fetch session history. No evidence of data exfiltration, malicious command execution, or prompt injection was found.
Capability Assessment
Purpose & Capability
Name/description (auto-capture hourly session highlights into daily memory files) align with the included SKILL.md and the Python script. The script implements creating/reading/writing ~/.openclaw/workspace/memory, deduplication, simple extraction rules, and a call to the OpenClaw CLI to list recent sessions — all consistent with the stated goal.
Instruction Scope
Instructions explicitly tell the agent to fetch recent session data (sessions_list / sessions_history) and extract content to local memory files. That is expected for the feature, but it means the skill will access session transcripts (potentially sensitive) and persist derived summaries to disk. The SKILL.md and script do not attempt to read unrelated files or external endpoints.
Install Mechanism
No install spec is provided (instruction-only with an included helper script). Nothing is downloaded from remote URLs or installed automatically, so there is no install-time code fetch risk from unknown hosts.
Credentials
The skill declares no required environment variables, credentials, or config paths. The resources it accesses (the OpenClaw CLI via subprocess and the user's ~/.openclaw workspace) are consistent with its purpose. No excessive or unrelated secrets are requested.
Persistence & Privilege
always is false and there are no special privilege escalations. The skill writes only to its own memory directory under the user's home and stores its local config next to the script. Autonomous invocation by the agent is allowed by default (platform behavior) but not elevated by the skill itself.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install auto-memory-keeper
  3. After installation, invoke the skill by name or use /auto-memory-keeper
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
- Initial release of auto-memory-keeper. - Automatically extracts hourly session highlights and updates daily memory files. - Supports both automatic (cron-based) and manual trigger ("remember this", "log today"). - Filters out noise and trivial messages; records key items like decisions, tasks, progress, issues, and conclusions. - Smartly deduplicates entries to avoid repeats. - Configurable storage path, interval, filtering, and deduplication criteria.
v1.0.1
- Initial release of auto-memory-keeper. - Automatically extracts conversation highlights every hour, updating a daily memory file. - Supports both automatic (cron-based) and manual ("remember this","记录一下", "帮我记一下") triggers. - Filters out noise, summarizes key decisions, tasks, progress, issues, and conclusions with timestamps. - Avoids duplicate entries by similarity detection. - Configuration options available for categories, skip patterns, and deduplication threshold.
v1.0.0
v1.0.0: Initial release - Auto-capture hourly session highlights and update daily memory files - Supports both manual trigger ("remember this","记录一下") and cron auto-execution - Smart noise filtering: records only meaningful decisions, progress, issues - Auto deduplication to avoid redundant entries - Configurable options: memory directory, categories, skip patterns - Detailed docs: triggers, output format, FAQ
Metadata
Slug auto-memory-keeper
Version 1.0.2
License MIT-0
All-time Installs 3
Active Installs 3
Total Versions 3
Frequently Asked Questions

What is 每日记忆管家?

Auto-capture hourly session highlights and update daily memory files. Keeps long-term memory continuous without manual recording. Triggered by cron or manual... It is an AI Agent Skill for Claude Code / OpenClaw, with 419 downloads so far.

How do I install 每日记忆管家?

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

Is 每日记忆管家 free?

Yes, 每日记忆管家 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 每日记忆管家 support?

每日记忆管家 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 每日记忆管家?

It is built and maintained by Ray Xing (@raydez); the current version is v1.0.2.

💬 Comments