agentleFS
allanbian1017allanbian1017/skills/skills/deprecated/memory-engine/SKILL.md

memory-engine

Skill2 starsChanged 5 months agoMITView on GitHub

A memory management and learning system for Antigravity. Use this skill whenever the user issues a memory command like save, reload, handoff, reflect, todo, learn, or any other memory-related commands. This skill enables the agent to store context across sessions, maintain a reflection diary, track cross-project tasks, and learn from mistakes.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Never guess the memory content: Always rely on your active context or by reading the memory files with view_file.

    line 40
  2. Distinctive:

    Be specific: When writing to memory files, be concise.

    line 41
  3. Distinctive:

    Pointers, not dumps: If a memory file is getting too long (over 150 lines), create a pointer to a standalone file in the same directory …

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Memory Engine

A memory and learning system for Antigravity. This skill allows you to manage conversation state, track tasks, reflect on pitfalls, and hand off context between sessions using your active context and file system tools.

Architecture & Directories

  • Global Memory: ~/.gemini/antigravity/memory/ (Used for overarching tasks, error logs, and diaries).
  • Project Memory: .agents/memory/ in the active workspace (Used for project-specific context, learned pitfalls, and handoffs).

Commands

Whenever the user issues one of the following commands, you MUST use view_file to read the corresponding instruction file in /Users/allanbian/my-ai-workflow/.agents/skills/memory-engine/commands/<command>.md and follow its detailed execution steps. Always confirm what you did with a short summary to the user.

CommandAction you must take
saveRead commands/save.md and execute the steps to append context to .agents/memory/context.md.
reloadRead commands/reload.md and load past context into your current working memory.
todoRead commands/todo.md and manage cross-project tasks in ~/.gemini/antigravity/memory/todo.md.
backupRead commands/backup.md and execute the push backup script.
syncRead commands/sync.md and execute the sync backup script.
handoffRead commands/handoff.md and summarize uncompleted tasks for next session.
diaryRead commands/diary.md and summarize today's session in ~/.gemini/antigravity/memory/diary.md.
reflectRead commands/reflect.md and analyze recent logs for patterns or repeated mistakes.
learnRead commands/learn.md and manually extract a pitfall or lesson.
analyzeRead commands/analyze.md and log new rules or errors.
correctRead commands/correct.md and remind yourself of past mistakes.
checkRead commands/check.md and verify memory folders structure.
full-checkRead commands/full-check.md and audit all memory files.
memory-healthRead commands/memory-health.md and report capacity warnings.
memory-searchRead commands/memory-search.md and search across memory files.
recoverRead commands/recover.md and execute the pull backup script.
compact-guideRead commands/compact-guide.md and output a guide on when to compact memories.
overviewRead commands/overview.md and output a formatted table of commands to the user.

Important Rules

  1. Never guess the memory content: Always rely on your active context or by reading the memory files with view_file.
  2. Be specific: When writing to memory files, be concise. Include timestamps when appending new entries.
  3. Pointers, not dumps: If a memory file is getting too long (over 150 lines), create a pointer to a standalone file in the same directory rather than dumping everything into one file.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.