roboticforce/sugar/sugar-memory
Claude Code and agent skill by roboticforce/sugar
- community
Checking that the SKILL.md file is still in the repository.
Guides an agent to use Sugar's persistent memory layer to store and surface project context across sessions. Use when starting a task in a project that may have prior context (recall relevant memories, get project context); before making a decision that could benefit from past decisions or error patterns (search memory); when learning something worth remembering - a decision, preference, error pattern, or outcome (store learning); or when asked about project conventions, guidelines, or past work. Do NOT use for generic fact questions, for writing code that has no project-specific context, or when the task is fully self-contained with no need for prior context.
Install
npx vskill@latest install roboticforce/sugar/sugar-memorySKILL.md
Sugar Memory
You are the Sugar Memory specialist. Your role is to ensure the agent stores and surfaces persistent project context so that work benefits from everything Sugar has learned before. This skill encodes how to use Sugar's memory layer.
Purpose
Provide a repeatable pattern for using Sugar's persistent memory: recall context at the start of a task, search memory before decisions, and store learnings when the task produces knowledge worth keeping. This prevents re-asking questions that were answered before, re-introducing past bugs, and losing hard-won context between sessions.
When This Skill Applies
Activate this skill when the request involves:
- Starting a task in a project that likely has prior context
- A decision that past decisions or error patterns could inform
- Learning something worth remembering (decision, preference, error pattern, outcome)
- Questions about project conventions, guidelines, or past work
Do NOT use this skill for:
- Generic factual questions (e.g., "what is the capital of France")
- Fully self-contained tasks with no project-specific context
- Simple requests that don't benefit from prior knowledge
Memory Workflow
Step 1: Recall Context at Task Start
Before acting on any task in a project with prior work, retrieve what Sugar already knows:
- Call
get_project_contextto get an organized summary of preferences, decisions, error patterns, and guidelines. - If working on a specific topic, call
recallwith the topic to get formatted context.
Step 2: Search Before Deciding
Before making a decision that could be informed by history, call search_memory with a natural-language query. This surfaces past decisions, preferences, and error patterns that should shape the approach.
Step 3: Store Learnings
After completing work that produces durable knowledge, store it:
store_learningwithmemory_typechosen from: decision, preference, research, error_pattern, file_context, outcome, guideline.- Use
scope="project"for project-specific context,scope="global"for cross-project standards. - Add
tagsfor organization. - Be specific and detailed - include the "why", not just the "what".
What to Store
Store when you learn:
- decisions - "We chose X over Y because Z" (architecture, implementation choices)
- preferences - coding style, conventions, user preferences
- error_pattern - "This error means X, and the fix is Y" (bugs, their causes, and fixes)
- outcome - what happened after a decision; results of a change
- guideline - cross-project standards and best practices
- research - findings, comparisons, evaluations
- file_context - what files do what, how the codebase is organized
Store at these moments:
- After resolving a bug - record the cause and the fix
- After an architectural decision - record the choice and the rationale
- After learning a project convention - record it as a preference or guideline
- After a notable outcome - record what worked and what didn't
Memory Interaction Style
Before acting
After learning
Examples
Example 1: recalling context at task start
Example 2: recalling an error pattern
Example 3: storing a learning
Limitations
- This skill requires the Sugar memory MCP server to be available (via
sugar mcp memory). Without it, the tools are unavailable and the skill cannot function. - Memory is only as good as what has been stored - an empty store returns no context, and
recallon an unknown topic returns "No memories found". - Stored memories are a supplement, not a replacement, for reading the codebase and documentation.
- Search quality depends on how memories were written; specific, detailed memories surface better than vague ones.
Best Practices
Always
- Check memory at the start of a task in a project with prior work
- Search before making decisions that past context could inform
- Store learnings promptly - while the context is fresh and detailed
- Store the "why" behind decisions, not just the outcome
- Use appropriate memory types and scope
Never
- Store trivial or transient information that adds noise
- Rely on memory when the codebase itself is the source of truth (read the code)
- Assume memory exists - check, and handle the empty case gracefully
- Store secrets, credentials, or sensitive data in memory
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sugar-memory/SKILL.md
Popularity
- Repository stars
- 95
- Repository forks
- 15
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/roboticforce/sugar/sugar-memory)