agent-memory · openhands — скилл для Claude Code: что делает и как установить
Скилл agent-memory сохраняет знания о проекте в файл AGENTS.md и подтягивает их в будущие сессии с агентом.
MIT 117 установок ★ 185 обновлён 2026-10-25
npx skills add OpenHands/extensions --skill agent-memory -a claude-codeЧто делает agent-memory
Скилл создаёт или обновляет файл AGENTS.md в корне репозитория. В него записываются постоянные правила кодовой базы: структура каталогов, команды сборки, линтинга, тестирования и кодстайл. Конкретные ошибки текущей сессии и разовые фиксы агент туда не вносит, чтобы не захламлять контекст.
Перед записью агент обязан составить нумерованный список фактов и запросить подтверждение. В файл попадают только одобренные пункты, при этом агент группирует их по разделам и встраивает в уже существующий текст. Без явного согласия пользователя изменения в AGENTS.md не сохраняются.
Какие задачи решает
- сохранить команды сборки и линтинга для новых сессий
- зафиксировать правила кодстайла и соглашения репозитория
- описать структуру каталогов для контекста агента
- исключить разовые ошибки из долгосрочной памяти проекта
Примеры запросов агенту
- /remember
- Запомни команды для запуска тестов и сборки в AGENTS.md
- Сохрани из списка только первый и третий пункты
Как установить agent-memory
1Через Skills CLI (Vercel)
npx skills add OpenHands/extensions --skill agent-memory -a claude-code2Вручную: положить файлы
~/.claude/skills/agent-memory/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/agent-memory/
1Через Skills CLI (Vercel)
npx skills add OpenHands/extensions --skill agent-memory -a codex2Вручную: положить файлы
.agents/skills/agent-memory/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add OpenHands/extensions --skill agent-memory -a cursor2Вручную: положить файлы
.cursor/skills/agent-memory/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install OpenHands/extensions skills/agent-memory2Вручную: положить файлы
.github/skills/agent-memory/SKILL.md1Через Skills CLI (Vercel)
npx skills add OpenHands/extensions --skill agent-memory -a gemini-cli2Командой платформы
gemini skills install https://github.com/OpenHands/extensions --path skills/agent-memoryВручную: положить файлы
.devin/skills/agent-memory/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add OpenHands/extensions --skill agent-memory -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы об agent-memory
Как установить agent-memory в Claude Code?
Выполните команду npx skills add OpenHands/extensions --skill agent-memory -a claude-code в терминале.
Что делает скилл agent-memory?
Он ведёт файл AGENTS.md в корне проекта, накапливая команды запуска, правила оформления кода и общую структуру для повторного использования агентами.
Записывает ли скилл данные без спроса?
Нет, перед сохранением агент показывает нумерованный список найденных фактов и ждёт подтверждения пользователя.
Исходный текст
SKILL.md · MIT
--- name: agent-memory description: Persist and retrieve repository-specific knowledge using AGENTS.md files. Use when you want to save important information about a codebase (build commands, code style, workflows) for future sessions. triggers: - /remember --- * Repository memory: Use AGENTS.md in each repository root to store and access important information. - If this file exists, it will be added to your context automatically. - If missing, you should create it unless the user has explicitly asked you to not do so. * Store and maintain **general knowledge** that will be helpful for most future tasks: 1. Repository structure 2. Common commands (build, lint, test, pre-commit, etc.) 3. Code style preferences 4. Workflows and best practices 5. Any other repository-specific knowledge you learn * IMPORTANT: ONLY LOG the information that would be helpful for different future tasks, for example, how to configure the settings, how to setup the repository. Do NOT add issue-specific information (e.g., what specific error you have ran into and how you fix it). * When adding new information: - ALWAYS ask for user confirmation first by listing the exact items (numbered 1, 2, 3, etc.) you plan to save to AGENTS.md - Only save the items the user approves (they may ask you to save a subset) - Ensure it integrates nicely with existing knowledge in AGENTS.md - Reorganize the content if needed to maintain clarity and organization - Group related information together under appropriate sections or headings - If you've only explored a portion of the codebase, clearly note this limitation in the repository structure documentation - If you don't know the essential commands for working with the repository, such as lint or typecheck, ask the user and suggest adding them to AGENTS.md for future reference (with permission) When you receive this message, please review and summarize your recent actions and observations, then present a list of valuable information that should be saved in AGENTS.md to the user.
© OpenHands · MIT · OpenHands/extensions
Похожие скиллы
Все скиллы по теме «Настройка агента: память, контекст, субагенты» →Сначала — agent-memory от других авторов.