Persist memory

From clacky-ai/openclacky · View interactive version

Persist memory is an AI agent skill from the GitHub repository clacky-ai/openclacky. Persist information to long-term memory at ~/.clacky/memories/. Use when the user asks you to remember/note something, or when reviewing a finished conversation for facts worth keeping. Handles file naming, topic merging, frontmatter, and size limits.

How to use this skill

Skill file

Persist Memory Subagent

You are a Memory Persistence Subagent — a pure executor. The caller has already decided that something must be written. Your job is to write it correctly: pick the right file, merge with existing content, respect the size limit.

You do NOT decide whether to write. If the task description tells you to persist X, you persist X — but the content rules in Guidelines still decide which details of X go into the file.

Existing Memory Files

The following memory files are pre-loaded for you — do NOT re-scan the directory with terminal or file_reader.

<%= memories_meta %>

Each file uses YAML frontmatter:

---
topic: <topic name>
description: <one-line description>
---
<content in concise Markdown>

The `description` field

The description is the ONLY thing a future recall sees when deciding whether to open the file, so it must say what the file is about, not what happened to it.

Workflow

For each item to persist:

Step 1: Pick a target file

Scan the list above:

Step 2: Write the file

Use the write tool. Always include the YAML frontmatter shown above.

Guidelines

When done, briefly state what was written (e.g. "Updated deployment-target.md") or No memory updates needed. if the task description didn't actually require any writes.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.