memory-discipline

Recalls agent memory before tasks and saves decisions at resolution points.

3|Updated Oct 25, 2025
One-click install
npx skills add https://github.com/Prismaibrowser/prismspace-web --skill memory-discipline-prismaibrowser
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: memory-discipline
Source: https://github.com/Prismaibrowser/prismspace-web/tree/main/.agents/skills/memory-discipline
Command: npx skills add https://github.com/Prismaibrowser/prismspace-web --skill memory-discipline-prismaibrowser

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Agent memory only pays off when reads happen before work starts and writes happen at decision points; without a disciplined loop, agents rediscover known facts and lose the reasoning behind settled decisions. ## Core Features & Use Cases - Recall Before Work: Run a project-scoped memory_smart_search as the first tool call on any nontrivial task to surface prior decisions and constraints. - Save at Decision Points: Persist each settled decision with its reason, 2-5 specific concepts, and real file paths the moment it resolves, rather than batch-saving at session end. - Corrections Become Lessons: Hand off user corrections to the lesson skill so they carry confidence and resurface before similar work. - Use Case: Before modifying an auth refresh flow, search memory for prior auth decisions; when you settle on cursor pagination over offset, save the choice with the reason that offset scans broke past 100k rows. ## Quick Start Ask the agent to search project memory for the current task topic before reading any code, then save each decision with its reason as it settles.

Frequently Asked Questions about memory-discipline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use agent memory effectively during coding tasks?▼

Search project-scoped memory as your first tool call before reading code, then save each settled decision with its reason the moment it resolves. End-of-session batch saves lose the reasoning, so write at decision points.

What should I save to agent memory versus skip?▼

Save settled decisions with reasons, non-obvious constraints found by debugging, and environment facts not derivable from the repo. Skip anything readable from code, transient state, secrets, and step-by-step narration that hooks already capture.

What is the difference between a memory and a lesson?▼

Memories carry facts like decisions and constraints, while lessons carry corrections with confidence scores and resurface before similar work. When a user corrects your approach, save a lesson instead of a memory.

When should I search memory during a task?▼

Search at task start before reading code, and recall lessons before repeating a task type you have been corrected on. Searching after finishing work to double-check is an anti-pattern that wastes the recall benefit.

Why is memory_smart_search or memory_save not available?▼

These tools require the agentmemory MCP server to be connected and configured for your project. Check the shared troubleshooting guide at ../_shared/TROUBLESHOOTING.md for setup and connection issues.