Agent skill
distill-memory
Save key decisions, procedures, or learnings so the user never has to rediscover them. Trigger when a significant decision is made, a non-obvious procedure is found, or a lesson is learned. Do not wait to be asked.
Install this agent skill to your Project
npx add-skill https://github.com/nowledge-co/community/tree/main/nowledge-mem-codex-plugin/skills/distill-memory
SKILL.md
Capture what matters before the session ends. Save decisions, procedures, and learnings as durable memories that any connected AI tool can find later.
What to distill
- Decisions with rationale ("we chose PostgreSQL because ACID is required")
- Procedures: non-obvious steps, workarounds, setup sequences
- Learnings: surprises, gotchas, corrections to prior assumptions
- Preferences: user's stated preferences for future reference
- Plans that future sessions will need to resume
- Context that would be lost when the session ends
What to skip
- Routine code changes, obvious fixes, standard operations
- Work in progress that will change before it matters
- Generic information already widely known
- Simple Q&A answerable from documentation
Workflow
- Search first to avoid duplicates:
nmem --json m search "concept" - If an existing memory captures the same concept, update it:
bash
nmem --json m update <memory_id> -c "updated content" - Otherwise, create a new memory:
bash
nmem --json m add "content" -t "Title" --unit-type decision -l "label" -s codex -i 0.8 - At the end of a substantial task, explicitly check whether one durable memory should be added or updated. Do not skip that review just because the user did not ask.
Unit types
fact, preference, decision, plan, procedure, learning, context, event
Additional flags
- Temporal context:
--when past(orpresent,future,timeless) - Event date:
--event-start 2026-03(for time-anchored knowledge)
Importance scale
0.8-0.9: Major decisions, important procedures, breakthroughs0.5-0.7: Useful patterns, conventions, secondary decisions0.3-0.4: Minor notes, preferences, contextual observations1.0: rare, only for critical corrections or pivotal choices
After saving
Report what was stored, which unit type was used, and why each memory was worth keeping. One strong memory is better than three weak ones.
Links
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
search-memory
Search your personal knowledge base when past insights would improve response. Recognize when stored breakthroughs, decisions, or solutions are relevant. Search proactively based on context, not just explicit requests.
check-integration
Check Nowledge Mem setup, detect your agent, and guide native plugin installation. Use when the user asks about setup, configuration, or when memory tools aren't working as expected.
distill-memory
Capture breakthrough moments and valuable insights as searchable memories in your knowledge base.
read-working-memory
Read your daily Working Memory briefing to understand current context. Contains active focus areas, priorities, unresolved flags, and recent knowledge changes. Load this automatically at the beginning of sessions for cross-tool continuity.
status
Check Nowledge Mem connection status, server version, CLI version, and configuration. Use when diagnosing issues or verifying setup.
save-handoff
Save a concise handoff summary only when the user explicitly requests it. Use this for resumable progress notes in generic agent environments where a real session importer is not guaranteed.
Didn't find tool you were looking for?