Agent skill

Persist Memory

by clacky-ai in clacky-ai/openclacky

Persist information to long-term memory at ~/.clacky/memories/.

MITAuto-check passedAgent Workflows

Install Persist Memory

skills CLI
$ npx skills add clacky-ai/openclacky --skill persist-memory -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install clacky-ai/openclacky persist-memory --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/clacky-ai/openclacky.git skills-src && mkdir -p .claude/skills && cp -r skills-src/lib/clacky/default_skills/persist-memory .claude/skills/persist-memory && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
persist-memory
GitHub stars
1.2k
Token cost
~645 tokens
SKILL.md length
289 words
Files
1
Skills in repo
20
Repo updated
First seen
Licence
MIT

At a glance

Persist information to long-term memory at ~/.clacky/memories/.

  • Works in 2 steps: Pick a target file → Write the file
  • The user asks you to remember/note something
  • SKILL.md covers Existing Memory Files, Workflow and Guidelines
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Persist Memory is an agent skill from 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.

Its SKILL.md is about 650 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows, covering Agent memory. The repository describes itself as: The most Token-efficient open-source AI Agent. The licence is MIT.

When your agent uses it

  • The user asks you to remember/note something
  • Reviewing a finished conversation for facts worth keeping

Example prompts

  • “/persist-memory”

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. Pick a target file
  2. Write the file

What it can do on your machine

Read from SKILL.md and the folder at commit 00ab936. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Persist Memory loads about 645 tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 289 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~67
When it runs · the whole SKILL.md, loaded when a task matches
~645

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from clacky-ai/openclacky at commit 00ab936, republished under its MIT licence (© clacky-ai). 289 words, ~645 tokens.

Download SKILL.mdSave it as .claude/skills/persist-memory/SKILL.md (or your agent's skills folder).
name
persist-memory
description
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.
name_zh
记住信息
description_zh
把需要记住的内容写入长期记忆,自动归类合并。
fork_agent
true
user-invocable
false
auto_summarize
true
forbidden_tools
web_search, web_fetch, browser

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.

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>

Workflow

For each item to persist:

Step 1: Pick a target file

Scan the list above:

  • Matching topic exists → read it with file_reader(path: "~/.clacky/memories/<filename>"), integrate the new info, drop stale parts, then write the updated version back.
  • No match → create a new file at ~/.clacky/memories/<topic-slug>.md.
    • Slug: lowercase, hyphen-separated, descriptive (e.g. deployment-target.md, code-style-preferences.md).
Step 2: Write the file

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

Guidelines

  • Aim for around 4000 characters of content (after the frontmatter). This is a soft target — moderate overshoot is fine, do NOT iterate writes just to shave characters.
  • If a file grows much larger than that (say, well past 8000), trim the least important information rather than splitting one topic across multiple files.
  • Prefer merging into an existing file over creating a new one. Only create a new file when no existing topic genuinely covers the area.
  • Write concise, factual Markdown — no fluff, no redundant headings.
  • One topic per file. Don't bundle unrelated facts together.
  • Do NOT use terminal or file_reader to list the memories directory — the list above is authoritative.

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.

© clacky-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in lib/clacky/default_skills/persist-memory of clacky-ai/openclacky.

Open the folder on GitHubat commit 00ab936

Compare with similar skills

Persist Memory next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Persist Memory compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Persist Memory this skillclacky-ai/openclacky1.2k—~645Automated safety check: PassMIT
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
Beads Task Memorygastownhall/beads28k—~1.2kAutomated safety check: PassMIT
Reflect on Session Learningscursor/plugins10k5 repos~1.2kAutomated safety check: PassNone
MemPalace Memory SearchMemPalace/mempalace59k—~1.4kAutomated safety check: PassMIT
Compound Learning WriterEveryInc/compound-engineering-plugin25k—~2kAutomated safety check: PassMIT

Similar skills

  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 8 days ago
    Agent WorkflowsAuto-check passed
  • Beads Task Memory

    gastownhall/beads

    Tracks multi-session work with dependencies in the bd issue tracker so the agent can find ready tasks and recover its context after conversation compaction.

    28k GitHub stars~1.2k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Official

    Starts three parallel reviewer subagents over the current conversation transcript, then turns their findings into concrete edits to existing skills.

    10k GitHub starsUsed in 5 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • MemPalace Memory Search

    MemPalace/mempalace

    Mines project files and conversation exports into a local, searchable memory palace and recalls past work by semantic search through the mempalace CLI.

    59k GitHub stars~1.4k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Compound Learning Writer

    EveryInc/compound-engineering-plugin

    Records one solved and verified problem as a durable learning in the repository, but only when the reasoning is not already clear from the final code, tests or docs.

    25k GitHub stars~2k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check passed
  • Searches past Claude Code, Codex and Cursor sessions and summarizes what was worked on, tried or decided, using extraction scripts instead of reading raw logs.

    24k GitHub stars~3.1k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from clacky-ai/openclacky

All 20 skills in this repo
  • Skill Add

    clacky-ai/openclacky

    Install skills from a zip URL or local zip file path. An agent skill from clacky-ai/openclacky.

    1.2k GitHub stars~560 tokensUpdated yesterday
    Auto-check passed
  • Media Gen

    clacky-ai/openclacky

    Generate or edit images, videos, or audio in the current task.

    1.2k GitHub stars~7.3k tokensUpdated yesterday
    Auto-check passed
  • Browser Setup

    clacky-ai/openclacky

    Configure the browser tool for Clacky. An agent skill from clacky-ai/openclacky.

    1.2k GitHub stars~3.1k tokensUpdated yesterday
    Auto-check: notes
  • Cron Task Creator

    clacky-ai/openclacky

    Create, manage, and run scheduled automated tasks (cron jobs) in Clacky.

    1.2k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Deploy

    clacky-ai/openclacky

    Deploy Rails applications to Railway. An agent skill from clacky-ai/openclacky.

    1.2k GitHub stars~1.9k tokensUpdated yesterday
    Auto-check passed
  • MCP Manager

    clacky-ai/openclacky

    Manage MCP (Model Context Protocol) servers for openclacky: add, list, probe, remove, reconfigure.

    1.2k GitHub stars~3k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Persist Memory

What does Persist Memory do?

Persist information to long-term memory at ~/.clacky/memories/. Persist Memory is an agent skill from clacky-ai/openclacky.clacky/memories/.

When should I use Persist Memory?

Persist Memory fits situations like: the user asks you to remember/note something; reviewing a finished conversation for facts worth keeping.

How do I install Persist Memory in Claude Code?

Run `npx skills add clacky-ai/openclacky --skill persist-memory -a claude-code`. Or copy the skill folder (lib/clacky/default_skills/persist-memory in clacky-ai/openclacky) into .claude/skills/persist-memory in your project. Claude Code loads it when a task matches its description.

How do I install Persist Memory in Codex?

Run `npx skills add clacky-ai/openclacky --skill persist-memory -a codex`. Or copy the skill folder (lib/clacky/default_skills/persist-memory in clacky-ai/openclacky) into .agents/skills/persist-memory in your project. Codex loads it when a task matches its description.

Can I use Persist Memory in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add clacky-ai/openclacky --skill persist-memory -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/persist-memory, .gemini/skills/persist-memory, .github/skills/persist-memory and .opencode/skills/persist-memory in your project.

What does Persist Memory need to run?

SKILL.md names no scripts, command-line tools or credentials: Persist Memory is instructions for the agent only.

Does Persist Memory access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Persist Memory safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Persist Memory use?

Persist Memory is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Persist Memory use?

About 645 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Persist Memory?

Skills that share tags, products or a category with Persist Memory: Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars), Beads Task Memory (gastownhall/beads, 28k stars), Reflect on Session Learnings (cursor/plugins, 10k stars) and MemPalace Memory Search (MemPalace/mempalace, 59k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Persist Memory?

clacky-ai (a GitHub organization) maintains it in clacky-ai/openclacky, which has 1,204 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on October 9, 2026.

Source: clacky-ai/openclacky on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.