remember · langchain-ai — скилл для Claude Code: что делает и как установить
Скилл remember разбирает разговор и сохраняет найденные практики и договорённости в AGENTS.md или в новый скилл. Срабатывает на «запомни это» и «обнови память».
MIT 236 установок ★ 31 501 обновлён 2026-10-25
npx skills add langchain-ai/deepagents --skill remember -a claude-codeЧто делает remember
Скилл просматривает текущий разговор и вытаскивает то, что стоит сохранить. В первую очередь это лучшие практики: что сработало, каких ошибок избегать, по каким критериям вы решили, что код или документ хорош, и почему выбрали один подход вместо другого. Ещё он собирает соглашения по коду, решения по архитектуре, выработанные процессы и ваши замечания к поведению агента.
Каждую находку скилл раскладывает по месту. Предпочтения и простые правила уходят в память: глобальную $DEEPAGENTS_HOME/agent/AGENTS.md или проектную .deepagents/AGENTS.md. Если в разговоре сложился многошаговый процесс, скилл создаёт из него новый скилл в $DEEPAGENTS_HOME/agent/skills/<skill-name>/SKILL.md, при необходимости с папками scripts/, references/ и assets/. Файлы агент правит через edit_file или write_file, а в конце выводит список, что и куда записано.
Скилл сделан под deepagents-code, и пути записи взяты оттуда. В другом агенте AGENTS.md по этим путям может остаться непрочитанным.
Какие задачи решает
- записать, почему выбрали один подход, а не другой
- зафиксировать ошибку как антипаттерн, чтобы к ней не возвращаться
- превратить отработанный процесс, например ревью кода, в отдельный скилл
- занести соглашения по стилю кода в проектный
.deepagents/AGENTS.md - закрепить ваши замечания к поведению агента
Примеры запросов агенту
- Запомни это: решение по архитектуре и его причины запиши в
.deepagents/AGENTS.md. - Сохрани, чему мы научились в этом разговоре, а процесс ревью оформи как скилл.
- Обнови память по итогам нашего разговора.
Как установить remember
1Через Skills CLI (Vercel)
npx skills add langchain-ai/deepagents --skill remember -a claude-code2Вручную: положить файлы
~/.claude/skills/remember/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/remember/
1Через Skills CLI (Vercel)
npx skills add langchain-ai/deepagents --skill remember -a codex2Вручную: положить файлы
.agents/skills/remember/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add langchain-ai/deepagents --skill remember -a cursor2Вручную: положить файлы
.cursor/skills/remember/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install langchain-ai/deepagents libs/code/deepagents_code/built_in_skills/remember2Вручную: положить файлы
.github/skills/remember/SKILL.md1Через Skills CLI (Vercel)
npx skills add langchain-ai/deepagents --skill remember -a gemini-cli2Командой платформы
gemini skills install https://github.com/langchain-ai/deepagents --path libs/code/deepagents_code/built_in_skills/rememberВручную: положить файлы
.devin/skills/remember/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add langchain-ai/deepagents --skill remember -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о remember
Как установить remember в Claude Code?
Выполните npx skills add langchain-ai/deepagents --skill remember -a claude-code. Файл скилла будет лежать в ~/.claude/skills/remember/SKILL.md.
Что делает remember?
Скилл просматривает разговор, выделяет лучшие практики, соглашения и решения и записывает их в память AGENTS.md или оформляет как новый скилл. В конце он показывает, что сохранено и где.
Когда remember создаёт скилл, а когда пишет в AGENTS.md?
В AGENTS.md идут предпочтения и простые правила, глобальные или проектные. Скилл создаётся, когда в разговоре появился многошаговый процесс или методика, которую стоит повторять.
Исходный текст
SKILL.md · MIT
--- name: remember description: "Review the current conversation and capture valuable knowledge — best practices, coding conventions, architecture decisions, workflows, and user feedback — into persistent memory (AGENTS.md) or reusable skills. Use when the user says: (1) remember this, (2) save what we learned, (3) update memory, (4) capture learnings." license: MIT compatibility: designed for deepagents-code --- Review our conversation and capture valuable knowledge. Focus especially on **best practices** we discussed or discovered—these are the most important things to preserve. ## Step 1: Identify Best Practices and Key Learnings Scan the conversation for: ### Best Practices (highest priority) - **Patterns that worked well** - approaches, techniques, or solutions we found effective - **Anti-patterns to avoid** - mistakes, gotchas, or approaches that caused problems - **Quality standards** - criteria we established for good code, documentation, or processes - **Decision rationale** - why we chose one approach over another ### Other Valuable Knowledge - Coding conventions and style preferences - Project architecture decisions - Workflows and processes we developed - Tools, libraries, or techniques worth remembering - Feedback I gave about your behavior or outputs ## Step 2: Decide Where to Store Each Learning For each best practice or learning, choose the right destination: ### -> Memory (AGENTS.md) for preferences and guidelines Use memory when the knowledge is: - A preference or guideline (not a multi-step process) - Something to always keep in mind - A simple rule or pattern **Global** (`$DEEPAGENTS_HOME/agent/AGENTS.md`): Universal preferences across all projects **Project** (`.deepagents/AGENTS.md`): Project-specific conventions and decisions ### -> Skill for reusable workflows and methodologies **Create a skill when** we developed: - A multi-step process worth reusing - A methodology for a specific type of task - A workflow with best practices baked in - A procedure that should be followed consistently Skills are more powerful than memory entries because they can encode **how** to do something well, not just **what** to remember. ## Step 3: Create Skills for Significant Best Practices If we established best practices around a workflow or process, capture them in a skill. **Example:** If we discussed best practices for code review, create a `code-review` skill that encodes those practices into a reusable workflow. ### Skill Location `$DEEPAGENTS_HOME/agent/skills/<skill-name>/SKILL.md` ### Skill Structure ``` skill-name/ ├── SKILL.md (required - main instructions with best practices) ├── scripts/ (optional - executable code) ├── references/ (optional - detailed documentation) └── assets/ (optional - templates, examples) ``` ### SKILL.md Format ```markdown --- name: skill-name description: "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." --- # Skill Name ## Overview Brief explanation of what this skill accomplishes. ## Best Practices Capture the key best practices upfront: - Best practice 1: explanation - Best practice 2: explanation ## Process Step-by-step instructions (imperative form): 1. First, do X 2. Then, do Y 3. Finally, do Z ## Common Pitfalls - Pitfall to avoid and why - Another anti-pattern we discovered ``` ### Key Principles 1. **Encode best practices prominently** - Put them near the top so they guide the entire workflow 2. **Concise is key** - Only include non-obvious knowledge. Every paragraph should justify its token cost. 3. **Clear triggers** - The description determines when the skill activates. Be specific. 4. **Imperative form** - Write as commands: "Create a file" not "You should create a file" 5. **Include anti-patterns** - What NOT to do is often as valuable as what to do ## Step 4: Update Memory for Simpler Learnings For preferences, guidelines, and simple rules that don't warrant a full skill: ```markdown ## Best Practices - When doing X, always Y because Z - Avoid A because it leads to B ``` Use `edit_file` to update existing files or `write_file` to create new ones. ## Step 5: Summarize Changes List what you captured and where you stored it: - Skills created (with key best practices encoded) - Memory entries added (with location)
© langchain-ai · MIT · langchain-ai/deepagents
Похожие скиллы
Все скиллы по теме «Настройка агента: память, контекст, субагенты» →Сначала — remember от других авторов.