Project Memory
Store and apply project-specific memory from MEMORY.md in the repository root.
What this skill does
- •Loads persistent project memory from
MEMORY.md. - •Captures new lessons when the user asks to remember something.
- •Applies past lessons before substantial work.
When to use
- •At session start, if
MEMORY.mdexists. - •Before major implementation work.
- •When the user says things like:
- •"remember this"
- •"save this to memory"
- •"add to memory"
- •"don't do this again"
- •"project-memory"
- •"scratchpad" (legacy phrasing)
- •After any mistake worth preventing next time.
Initial session behavior
At session start:
- •Check for
MEMORY.mdat the project root. - •If it exists, read it.
- •Acknowledge loaded memory with a short summary:
- •"Loaded project memory: [key points]"
- •Explicitly state how it affects this session.
Capturing new memory
When the user asks to save memory or corrects your behavior:
- •Decide if the information should persist:
- •Repeated mistakes
- •User workflow preferences
- •Project conventions
- •Important context likely to matter later
- •If
MEMORY.mddoes not exist, create it with the format below. - •Append a concise entry under the relevant category.
- •Confirm save:
- •"Saved to project memory: [what was saved]"
Memory file format
Use this structure in MEMORY.md:
markdown
# Project Memory ## User Preferences ### [YYYY-MM-DD] Short title Context: What happened Memory: What to remember Action: How to behave next time ## Project Conventions ### [YYYY-MM-DD] Short title Context: ... Memory: ... Action: ... ## Past Mistakes ### [YYYY-MM-DD] Short title Context: ... Memory: ... Action: ... ## Environment Notes ### [YYYY-MM-DD] Short title Context: ... Memory: ... Action: ...
Applying memory
Before starting substantial work:
- •Scan relevant entries in
MEMORY.md. - •Call out relevant lessons before acting.
- •Use lessons to guide decisions.
- •If memory conflicts with the current request, ask for clarification.
Best practices
- •Keep memory concise and scannable.
- •Record durable behavior, not long transcripts.
- •Prefer concrete rules over vague advice.
- •Prune outdated entries occasionally.
- •Never store secrets, tokens, credentials, or personal data.
Relationship to normal context
MEMORY.md is for persistent, cross-session project memory.
Use normal conversation context for temporary task details.