REMEMBER_PROMPT = 'Review our conversation and capture valuable knowledge. Focus especially on **best practices** we discussed or discovered—these are the most important things to preserve.\n\n## Step 1: Identify Best Practices and Key Learnings\n\nScan the conversation for:\n\n### Best Practices (
highest priority)\n- **Patterns that worked well** - approaches, techniques, or solutions we found effective\n- **Anti-patterns to avoid** - mistakes, gotchas, or approaches that caused problems\n- **Quality standards** - criteria we established for good code, documentation, or processes\n- **Decision rationale** - why we chose one approach over another\n\n### Other Valuable Knowledge\n- Coding conventions and style preferences\n- Project architecture decisions\n- Workflows and processes we developed\n- Tools, libraries, or techniques worth remembering\n- Feedback I gave about your behavior or outputs\n\n## Step 2: Decide Where to Store Each Learning\n\nFor each best practice or learning, choose the right destination:\n\n### → Memory (AGENTS.md) for preferences and guidelines\nUse memory when the knowledge is:\n- A preference or guideline (not a multi-step process)\n- Something to always keep in mind\n- A simple rule or pattern\n\n**Global** (`~/.deepagents/agent/AGENTS.md`): Universal preferences across all projects\n**Project** (`.deepagents/AGENTS.md`): Project-specific conventions and decisions\n\n### → Skill for reusable workflows and methodologies\n**Create a skill when** we developed:\n- A multi-step process worth reusing\n- A methodology for a specific type of task\n- A workflow with best practices baked in\n- A procedure that should be followed consistently\n\nSkills are more powerful than memory entries because they can encode **how** to do something well, not just **what** to remember.\n\n## Step 3: Create Skills for Significant Best Practices\n\nIf we established best practices around a workflow or process, capture them in a skill.\n\n**Example:** If we discussed best practices for code review, create a `code-review` skill that encodes those practices into a reusable workflow.\n\n### Skill Location\n`~/.deepagents/agent/skills/<skill-name>/SKILL.md`\n\n### Skill Structure\n```\nskill-name/\n├── SKILL.md (required - main instructions with best practices)\n├── scripts/ (optional - executable code)\n├── references/ (optional - detailed documentation)\n└── assets/ (optional - templates,
examples)\n```\n\n### SKILL.md Format\n```markdown\n---\nname: skill-name\ndescription: "What this skill does AND when to use it. Include triggers like \'when the user asks to X\' or \'when working with Y\'. This description determines when the skill activates."\n---\n\n# Skill Name\n\n## Overview\nBrief explanation of what this skill accomplishes.\n\n## Best Practices\nCapture the key best practices upfront:\n- Best practice 1: explanation\n- Best practice 2: explanation\n\n## Process\nStep-by-step instructions (imperative form):\n1. First, do X\n2. Then, do Y\n3. Finally, do Z\n\n## Common Pitfalls\n- Pitfall to avoid and why\n- Another anti-pattern we discovered\n```\n\n### Key Principles\n1. **Encode best practices prominently** - Put them near the top so they guide the entire workflow\n2. **Concise is key** - Only include non-obvious knowledge. Every paragraph should justify its token cost.\n3. **Clear triggers** - The description determines when the skill activates. Be specific.\n4. **Imperative form** - Write as commands: "Create a file" not "You should create a file"\n5. **Include anti-patterns** - What NOT to do is often as valuable as what to do\n\n## Step 4: Update Memory for Simpler Learnings\n\nFor preferences, guidelines, and simple rules that don\'t warrant a full skill:\n\n```markdown\n## Best Practices\n- When doing X, always Y because Z\n- Avoid A because it leads to B\n```\n\nUse `edit_file` to update existing files or `write_file` to create new ones.\n\n## Step 5: Summarize Changes\n\nList what you captured and where you stored it:\n- Skills created (with key best practices encoded)\n- Memory entries added (with location
)\n'