360 Secure SkillHub
360 安全技能中心

Memory Daily

该 Skill 在 memory/YYYY-MM-DD.md 中维护每日记忆:可确保当天文件存在、追加带时间戳条目、读取指定日期内容,并汇总最近 N 天记录,帮助 Agent 跨会话保持连续性。默认记忆目录为工作区下的 memory/。

分类:知识
toller892
toller892
热度 18.96
最近更新 2026-05-11 17:45:14

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add toller892/memory-daily
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
memory-daily
description
Automates daily memory file management. Use when creating, reading, or appending to daily memory notes (memory/YYYY-MM-DD.md). Helps the agent maintain continuity across sessions without manual file editing.

memory-daily

Manages daily memory files in memory/YYYY-MM-DD.md.

Functions

ensureToday(memoryDir?)

Creates today's daily file if it doesn't exist. Returns the file path.

append(entry, memoryDir?)

Appends a timestamped entry to today's daily file. Creates the file first if needed.

read(date?, memoryDir?)

Reads a daily file. Defaults to today. Date format: YYYY-MM-DD.

recent(days?, memoryDir?)

Returns content from the last N days (default 2).

Usage

const mem = require('./skills/memory-daily');

// Ensure today's file exists
await mem.ensureToday();

// Append an entry
await mem.append('## Session Notes\n- Deployed new feature X');

// Read today
const today = await mem.read();

// Read last 3 days
const recent = await mem.recent(3);

Default memory directory

<workspace>/memory/