# Memory Daily

> 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.

- Skill: `lord1egypt/memory-daily` (Agent Skill)
- Install (CLI): `npx skillmds@latest add lord1egypt/memory-daily`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lord1egypt/memory-daily/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: Lord1Egypt (https://skillmd.com/u/lord1egypt)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/lord1egypt/memory-daily

---


# 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

```js
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/`

