toolfs-memory
FreeNo executable scriptsNot checkedPersistent key-value storage for session data, conversation context, and agent state. Use this skill when the user requests storing or retrieving memory…
by IceWhaleTech★ 34 GitHub starsAbout this skill
ToolFS Memory
Persistent key-value storage for session data, conversation context, and agent state. Memory entries can store any JSON-serializable data with optional metadata for categorization and organization.
How It Works
- Memory Store: Stores entries in a key-value format with optional metadata
- Session Persistence: Entries persist across agent sessions
- Metadata Support: Each entry can include metadata for categorization and search
- CRUD Operations: Full create, read, update, delete operations supported
Usage
Read Memory Entry
ToolFS Path:
/toolfs/memory/<entry_id>
Example:
GET /toolfs/memory/user-preferences-123
// Response
{
"id": "user-preferences-123",
"content": "User prefers dark mode and compact layout",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z",
"metadata": {
"category": "preferences",
"priority": "high"
}
}
Write Memory Entry
ToolFS Path:
/toolfs/memory/<entry_id>
Example:
PUT /toolfs/memory/conversation-456
Content-Type: application/json
{
"content": "Discussed ToolFS architecture and skill system",
"metadata": {
"topic": "toolfs",
"participants": ["user", "agent"],
"timestamp": "2024-01-15T14:20:00Z"
}
}
// Response
{
"success": true,
"message": "Memory entry written"
}
List Memory Entries
ToolFS Path:
/toolfs/memory
Example:
LIST /toolfs/memory
// Response
[
"user-preferences-123",
"conversation-456",
"session-state-789"
]
When to Use This Skill
Use Memory skill when you need to:
- Store Context: Save conversation summaries, user preferences, or agent state
- Persist Data: Keep information across sessions or conversations
- Organize Information: Use metadata to categorize and retrieve related entries
- Recall Information: Retrieve previously stored data by entry ID
Common use cases:
- "Store this conversation summary in memory"
- "Remember that the user prefers dark mode"
- "Save the current session state"
- "List all stored memories"
- "Retrieve the previous conversation context"
Entry Structure
Each memory entry contains:
- id: Unique identifier for the entry
- content: Main content of the entry (string)
- created_at: Timestamp when entry was created
- updated_at: Timestamp when entry was last updated
- metadata: Optional JSON object for additional information
Output Format
Memory operations return standardized result structures:
{
"type": "memory",
"source": "<entry_id>",
"content": {
"id": "<entry_id>",
"content": "...",
"created_at": "...",
"updated_at": "...",
"metadata": {}
},
"success": true,
"error": "error message if failed"
}
Present Results to User
When presenting memory results:
✓ Memory entry retrieved
ID: user-preferences-123
Content: User prefers dark mode and compact layout
Category: preferences
Priority: high
Created: 2024-01-15T10:30:00Z
Updated: 2024-01-15T10:30:00Z
✓ Memory entry stored
ID: conversation-456
Topic: toolfs
Stored successfully at 2024-01-15T14:20:00Z
Troubleshooting
Entry Not Found
If reading a memory entry fails:
- Verify the entry ID is correct
- Check if the entry exists using
LIST /toolfs/memory - Ensure the session has access to memory operations
Write Permission Error
If writing fails:
- Verify the session has write permissions
- Check memory store configuration
- Ensure entry ID is valid
Best Practices
- Use Descriptive IDs: Choose meaningful entry IDs for easy retrieval
- Include Metadata: Use metadata for categorization and filtering
- Update Timestamps: The system automatically tracks created_at and updated_at
- Organize by Category: Use metadata.category to group related entries
- Regular Cleanup: Periodically review and clean up old entries
This skill is part of ToolFS. See main SKILL.md for overview.
Install toolfs-memory in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the toolfs-memory skill do?
Persistent key-value storage for session data, conversation context, and agent state. Use this skill when the user requests storing or retrieving memory entries such as "Store this in memory", "Remember this preference", "Recall the previous conversation", or "List all memory entries".
How do I install the toolfs-memory skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the toolfs-memory skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic