Skip to content
Back to skills

Memory Engine

ASecurity

Enable the Memory Engine. When on, decisions and patterns are automatically captured during tool use (via PostToolUse hook) and flushed to warm storage before session compaction. Decision context is loaded at every session start.

  • 726 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 5, 2026
ai-agents

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add Snowflake-Labs/cocoplus --skill memory-on --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Memory Engine?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Memory Engine
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/snowflake-labs-memory-engine-fe3017cf/badge)](https://www.skillsdirectory.com/skills/snowflake-labs-memory-engine-fe3017cf)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "memory-on"
description: "Enable the Memory Engine. When on, decisions and patterns are automatically captured during tool use (via PostToolUse hook) and flushed to warm storage before session compaction. Decision context is loaded at every session start."
version: "1.0.0"
author: "CocoPlus"
tags:
  - cocoplus
  - memory-engine
---

Your objective is to enable the Memory Engine.

Before proceeding, verify that `.cocoplus/` exists.
If not: output "CocoPlus not initialized in this directory. Run `$pod init` to begin." Then stop.

Create mode flag: create the file `.cocoplus/modes/memory.on` with empty content using the Write tool (cross-platform: do not use `touch`)

Initialize memory files if they don't exist:
- `.cocoplus/memory/decisions.md` — with header `# Decisions Log\n\n_Decisions captured by CocoPlus Memory Engine_\n`
- `.cocoplus/memory/patterns.md` — with header `# Patterns Log\n\n_Patterns identified by CocoPlus Memory Engine_\n`
- `.cocoplus/memory/errors.md` — with header `# Errors Log\n\n_Error lessons captured by CocoPlus Memory Engine_\n`

Update AGENTS.md (keep ≤200 lines): replace Memory line with `- Memory: ON (capturing decisions)`

Output: "✓ Memory Engine enabled. Decisions, patterns, and error lessons will be captured automatically and persisted across sessions. Existing memory: [decision count] decisions, [pattern count] patterns."

## Anti-Rationalization

| Shortcut / Temptation | Why It Fails |
|-----------------------|--------------|
| Overwrite memory files if they already exist instead of checking first | Existing memory files contain historical records; overwriting them destroys cross-session context |
| Skip updating AGENTS.md since the flag is set | AGENTS.md drives session-start behavior; a stale "Memory: off" entry means memory context won't be loaded |

## Exit Criteria

- [ ] `.cocoplus/modes/memory.on` flag exists
- [ ] `.cocoplus/memory/decisions.md`, `patterns.md`, and `errors.md` all exist with correct headers
- [ ] `.cocoplus/AGENTS.md` Memory line reads `- Memory: ON (capturing decisions)`
- [ ] Output reports existing decision and pattern counts

Files in this skill

  • memory-capture.skill.md3.5 KB
  • memory-off.skill.md1.4 KB
  • memory-on.skill.md2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.