/sugar:sugar-memoryfrom sugar
Guides Claude to use Sugar's persistent memory layer—recalling project context, searching past decisions, and storing learnings—to maintain continuity across sessions.
Ships in sugar. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
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.
Activate this skill when the request involves:
Do NOT use this skill for:
Before acting on any task in a project with prior work, retrieve what Sugar already knows:
get_project_context to get an organized summary of preferences, decisions, error patterns, and guidelines.recall with the topic to get formatted context.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.
After completing work that produces durable knowledge, store it:
store_learning with memory_type chosen from: decision, preference, research, error_pattern, file_context, outcome, guideline.scope="project" for project-specific context, scope="global" for cross-project standards.tags for organization.Check Sugar memory for prior context on this task...
[recall / get_project_context / search_memory]
This decision is worth remembering. Storing it...
[store_learning with type=decision, scope=project]
Example 1: recalling context at task start
Task: "Add pagination to the user list endpoint"
Before coding:
- get_project_context -> shows stored decision: "API layer uses repository pattern;
all list endpoints must use cursor pagination, not offset"
- Agent applies the stored convention instead of asking or guessing
Example 2: recalling an error pattern
Task: "CI is failing with an odd database error"
Before guessing:
- search_memory "database connection error CI" -> returns stored error_pattern:
"SQLite 'database is locked' in CI happens because tests run in parallel on one
connection; fix is serializing test DB access"
- Agent applies the known fix instead of re-diagnosing from scratch
Example 3: storing a learning
Task: "We decided to use pgvector for embeddings"
After the decision:
- store_learning(type=decision, scope=project, tags="database,embeddings",
content="Chose pgvector over Qdrant because it keeps everything in one Postgres
database; revisit if vector queries exceed 1M rows")
sugar mcp memory). Without it, the tools are unavailable and the skill cannot function.recall on an unknown topic returns "No memories found".evals/config.yml (opens in a new tab)evals/environment/Dockerfile (opens in a new tab)evals/environment/inject_mcp.py (opens in a new tab)evals/environment/mcp_servers.toml (opens in a new tab)evals/evals.json (opens in a new tab)scripts/inject_mcp.py (opens in a new tab)scripts/seed_memory.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/sugar-orchestratorGuides an agent to coordinate multi-step development workflows by analyzing task complexity, breaking work into subtasks, assigning specialized roles, and monitoring execution. Use when planning or coordinating a feature, bug fix, or refactor that spans multiple steps or concerns; deciding whether to decompose a task; assigning work to specialized agents; or tracking progress to completion. Do NOT use for implementing code directly, writing a detailed task plan with estimates, or performing a code review - those are separate skills./sugar-quality-guardianGuides an agent to review code for quality, testing, security, and performance before completion. Use when reviewing a pull request, diff, or code change for quality; enforcing test coverage and standards; validating security (injection, auth, hardcoded secrets); assessing code smells and anti-patterns; or producing a structured review verdict (approve / approve with recommendations / reject). Do NOT use for writing new features, generating code, or general debugging - this skill reviews work that already exists./sugar-task-plannerGuides an agent to turn a high-level task into a detailed execution plan with a task breakdown, dependencies, time estimates, risks, and measurable success criteria. Use when planning or decomposing a complex feature, bug fix, or refactor into subtasks; defining success criteria; estimating effort; identifying risks and mitigations; or determining a critical path. Do NOT use for coordinating execution across roles (use the orchestrator skill), reviewing finished code (use the quality-guardian skill), or for tasks simple enough to execute directly.npx claudepluginhub roboticforce/sugar --plugin sugarOther plugins' skills for the same job