Agent Skill
2/7/2026read-memory
Read all entries from the memory persistence system, or look up a specific key. Requires memory.md to exist.
A
adamrdrew
0GitHub Stars
1Views
npx skills add adamrdrew/claude-code-patterns
SKILL.md
| Name | read-memory |
| Description | Read all entries from the memory persistence system, or look up a specific key. Requires memory.md to exist. |
name: read-memory description: Read all entries from the memory persistence system, or look up a specific key. Requires memory.md to exist.
Read Memory
Read entries from the memory persistence system.
Procedure
-
Attempt to read
memory.mdfrom the current working directory using the Read tool -
If memory.md does not exist:
- Stop execution
- Inform the user: "Memory has not been initialized. Use the
create-memoryskill first to set up the memory system." - Do NOT attempt to create the file
-
If memory.md exists:
- Parse the file for memory entries (lines matching
- **key**: valueformat) - If the user asked for a specific key, find and return that value
- If the user asked for all memory, list all key-value pairs
- If no entries exist, inform the user that memory is empty
- Parse the file for memory entries (lines matching
Output Format
When displaying memory entries:
## Current Memory
- **key1**: value1
- **key2**: value2
Or for a specific key lookup:
**key**: value
If key not found:
Key "requested_key" not found in memory.
Skills Info
Original Name:read-memoryAuthor:adamrdrew
Download