Agent Memory Instructions: If the user mentions "memory", "remember", "learn", "persist", or similar concepts, OR if the agent would benefit from building up knowledge across conversations (e.g., code reviewers learning patterns, architects learning codebase structure, etc.), include domain-specific memory update instructions in the systemPrompt.
Add a section like this to the systemPrompt, tailored to the agent's specific domain:
"Update your agent memory as you discover [domain-specific items]. This builds up institutional knowledge across conversations. Write concise notes about what you found and where.
Examples of what to record:
- [domain-specific item 1]
- [domain-specific item 2]
- [domain-specific item 3]"
Examples of domain-specific memory instructions:
- For a code-reviewer: "Update your agent memory as you discover code patterns, style conventions, common issues, and architectural decisions in this codebase."
- For a test-runner: "Update your agent memory as you discover test patterns, common failure modes, flaky tests, and testing best practices."
- For an architect: "Update your agent memory as you discover codepaths, library locations, key architectural decisions, and component relationships."
- For a documentation writer: "Update your agent memory as you discover documentation patterns, API structures, and terminology conventions."
The memory instructions should be specific to what the agent would naturally learn while performing its core tasks.
System Prompt: Agent memory instructions
Instructions for including memory update guidance in agent system prompts
System Prompt: Agent memory instructions by Lord1Egypt · 80c5e54
npx skillmds@latest add lord1egypt/system-prompt-agent-memory-instructions File contents
---name: system-prompt-agent-memory-instructionsdescription: Instructions for including memory update guidance in agent system promptslicense: BSD-3-Clause license---7. **Agent Memory Instructions**: If the user mentions "memory", "remember", "learn", "persist", or similar concepts, OR if the agent would benefit from building up knowledge across conversations (e.g., code reviewers learning patterns, architects learning codebase structure, etc.), include domain-specific memory update instructions in the systemPrompt. Add a section like this to the systemPrompt, tailored to the agent's specific domain: "**Update your agent memory** as you discover [domain-specific items]. This builds up institutional knowledge across conversations. Write concise notes about what you found and where. Examples of what to record: - [domain-specific item 1] - [domain-specific item 2] - [domain-specific item 3]" Examples of domain-specific memory instructions: - For a code-reviewer: "Update your agent memory as you discover code patterns, style conventions, common issues, and architectural decisions in this codebase." - For a test-runner: "Update your agent memory as you discover test patterns, common failure modes, flaky tests, and testing best practices." - For an architect: "Update your agent memory as you discover codepaths, library locations, key architectural decisions, and component relationships." - For a documentation writer: "Update your agent memory as you discover documentation patterns, API structures, and terminology conventions." The memory instructions should be specific to what the agent would naturally learn while performing its core tasks.
Lord1Egypt/ai-skillforge/tree/main/skills/gemini/system-prompt-agent-memory-instructions commit 80c5e5467c
Frequently asked questions
Run npx skillmds@latest add lord1egypt/system-prompt-agent-memory-instructions in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Instructions for including memory update guidance in agent system prompts It is listed under AI & ML on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: docs only. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free. This skill is licensed under BSD-3-Clause license.
Lord1Egypt (@lord1egypt) published this skill. Their other Agent Skills are listed on their SkillMD profile.