Skip to content
Development
Skill

/memory-protocol

Persistent memory discipline for Engram contributors. Trigger: Decisions, bugfixes, discoveries, preferences, or session closure.

From plugin
gentleman-programming-engram
5.9k22 skills1 MCP
Install
$ npx -y skills add Gentleman-Programming/engram --skill memory-protocol --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/memory-protocol

Context preview

The summary Claude sees to decide when to auto-load this skill.

Persistent memory discipline for Engram contributors. Trigger: Decisions, bugfixes, discoveries, preferences, or session closure.

SKILL.md

memory-protocol.SKILL.md
name: engram-memory-protocol
description: >
  Persistent memory discipline for Engram contributors.
  Trigger: Decisions, bugfixes, discoveries, preferences, or session closure.
license: Apache-2.0
metadata:
  author: gentleman-programming
  version: "1.0"

When to Use

Use this skill when:

  • Making architecture or implementation decisions
  • Fixing bugs with non-obvious root causes
  • Discovering patterns, gotchas, or user preferences
  • Closing a session or after compaction

---

Save Rules

Call `mem_save` immediately after:

  • decision
  • bugfix
  • pattern/discovery
  • config/preference changes

Use structured content:

  • What
  • Why
  • Where
  • Learned

Use stable `topic_key` for evolving topics.

---

Search Rules

  • On recall requests: `mem_context` first, then `mem_search`.
  • Before similar work: run proactive `mem_search`.
  • On first message: if user references the project, a feature, or a problem, call `mem_search` with their keywords before responding.

---

Session Close Rules

Before saying done/listo: 1. Call `mem_session_summary`. 2. Include goal, discoveries, accomplished, next steps, relevant files.

After compaction: 1. Save summary first. 2. Recover context. 3. Continue work.

Ships withgentleman-programming-engram

Persistent memory system for AI coding agents. Agent-agnostic Go binary with SQLite + FTS5, MCP server, HTTP API, CLI, and TUI.

Get the whole plugin
Stats
5,941
Stars
629
Forks
Active
Maintenance
Go
Language
MIT
License
10d ago
Last commit
5mo ago
Created

Repo: Gentleman-Programming/engram