amazon-opensearch-memory
БесплатноБез исполняемых скриптовНе проверенIntegrates an AI agent with Amazon OpenSearch Memory (OpenSearch Memory, CLI `aws opensearchmemory`, IAM prefix `osm:`), a managed service that stores…
от aws★ 3 696 звёзд на GitHubОб этом скилле
Amazon OpenSearch Memory
Overview
Amazon OpenSearch Memory gives agents durable memory. You create a space, declare the memory strategies that decide what is extracted, write conversation turns as events, and search the memories the service extracts from them asynchronously.
All commands use the AWS CLI service opensearchmemory (boto3 client opensearchmemory): each API operation is a hyphenated lowercase command, such as aws opensearchmemory create-space, and accepts --cli-input-json file://request.json. Endpoints are https://osm.<region>.api.aws for spaces and https://<space-id>.osm.<region>.on.aws for events and memories; the SDK picks them automatically. The AWS MCP server is recommended for sandboxed execution and audit logging. If its tools report that the OpenSearch Memory service or an operation is not supported, run the same AWS CLI commands in a local shell instead. Do not substitute Amazon Bedrock AgentCore Memory or OpenSearch Serverless APIs: they are different services.
Prerequisites
- An AWS CLI v2 or boto3 version that includes OpenSearch Memory. Confirm with
aws opensearchmemory help, and confirm thataws opensearchmemory search-memories helplists--search-query. If either is missing, upgrade the AWS CLI before continuing. - Credentials with the
osm:actions you need (see references/security-and-encryption.md). - A Region that offers OpenSearch Memory; check AWS Services by Region. Pass
--regionon every command.
Concepts
| Term | What it is |
|---|---|
| Space | Container for one application's events and memories. ID sp- + 12 hex. States: CREATING, ACTIVE, UPDATING, DELETING, FAILED (a deleted space returns ResourceNotFoundException) |
| Memory strategy | Declared on the space (0-10). Types: SEMANTIC (facts), SUMMARY (session summaries), CUSTOM (your extraction prompt). A space with no strategies stores events only and extracts nothing |
| Event | A conversation turn or batch of turns (or a JSON object, or a document in S3) for one actor and session. Readable immediately |
| Memory | A fact or summary extracted from events asynchronously, or written directly with create-memory |
| Actor / session | actorId identifies the end user; sessionId groups one conversation. Every memory search is scoped to one actor |
Choose the task
| User wants to | Read |
|---|---|
| Create a space, add or change strategies, set retention, delete a space | references/spaces-and-strategies.md |
| Write conversation turns, read events back, write or edit memories directly, delete user data | references/events-and-memories.md |
| Search or list memories, build a search query, filter by time or metadata | references/search.md |
| IAM policies, per-user isolation, customer managed KMS key | references/security-and-encryption.md |
| An error, or memories not appearing | references/troubleshooting.md |
Rules that prevent the most common mistakes
- Extraction is asynchronous.
create-eventreturns once the event is stored.get-eventworks immediately, but a memory search only matches after the strategy's extraction trigger fires and the result is indexed. Poll; do not report failure after one empty search. - Wait for ACTIVE before the first write. Event and memory calls return
ResourceNotFoundException("...collection is not provisioned yet") until the space is ready, sometimes briefly after it reports ACTIVE. Wait for ACTIVE, then retry with backoff. - Wait for a settled state.
update-spaceanddelete-spacereturnConflictExceptionwhile the space is CREATING or UPDATING (andupdate-spacealso while DELETING). Runaws opensearchmemory wait space-active --space-id <id> --region <r>first. update-space --memory-strategiesreplaces the whole set. Read the current strategies withget-spaceand send every strategy you want to keep.- Search needs
--actor-id. Scope by actor with the request parameter, never withsystem_metadata.actor_idinside the query.search-memoriessearches all of the actor's sessions; to work with one session, usesearch-events --session-idsorlist-eventsfor its raw turns, orlist-memories --session-idsto browse its memories. - A search takes a query clause and an optional sort. Pass the OpenSearch query clause itself with
--search-query(API memberquery) and an optional--sort. There are nosize,fromor aggregation parameters: the CLI pages for you, and--max-itemscaps the results (APImaxResults/nextToken). - Deleting an event does not delete its memories. Delete memories with
delete-memory, or delete the whole space. - **Route errors on the
Установить amazon-opensearch-memory в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл amazon-opensearch-memory?
Integrates an AI agent with Amazon OpenSearch Memory (OpenSearch Memory, CLI `aws opensearchmemory`, IAM prefix `osm:`), a managed service that stores conversation events and extracts long-term memories from them. Use only when the user names OpenSearch Memory, an OpenSearch Memory space, or `aws opensearchmemory`, for creating or updating a space and its strategies (SEMANTIC, SUMMARY, CUSTOM), writing events, searching, listing, updating or deleting memories, event and memory retention, IAM policies or customer managed KMS keys for spaces, or OpenSearch Memory errors such as ResourceNotFoundException after a space is ACTIVE, ConflictException while UPDATING, a ValidationException on a search query, or memories not appearing. Does NOT cover Amazon Bedrock AgentCore Memory (use amazon-bedrock), agent memory on Amazon Neptune (use amazon-neptune), or your own vector search on OpenSearch Service or Serverless (use amazon-opensearch-service).
Как установить скилл amazon-opensearch-memory?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл amazon-opensearch-memory запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic