iris-development — скилл для Claude Code: память агентов в Redis Cloud
Скилл по Redis Agent Memory: помогает подключить постоянную память ИИ-агента на Redis Cloud — сессии, долговременные записи и их поиск.
npx skills add redis/agent-skills --skill iris-development -a claude-codeЧто делает iris-development
Скилл ведёт агента по работе с Redis Agent Memory (RAM) — управляемым сервисом памяти на Redis Cloud. Память делится на два уровня: журнал событий сессии, куда записи только добавляются, и долговременные записи, которые можно искать по смыслу. Фоновый обработчик на стороне Redis Cloud сам вытаскивает устойчивые факты из сессии и переносит их в долговременную память.
Внутри — набор файлов-правил в references/, сгруппированных по темам: настройка сервиса и токена, события сессии, долговременная память, перенос фактов. Примеры кода даны на Python (redis-agent-memory) и TypeScript (@redis-iris/agent-memory), оба класса называются AgentMemory. SDK берут ключ из переменной AGENT_MEMORY_API_KEY, а идентификатор хранилища — из AGENT_MEMORY_STORE_ID.
Заранее нужен аккаунт Redis Cloud с созданным сервисом памяти и выданным ключом хранилища: без AGENT_MEMORY_API_KEY SDK не авторизуется. URL плоскости данных выдаётся в консоли после создания сервиса.
Какие задачи решает
- подключить к агенту постоянную память на Redis Cloud
- записывать события сессии в правильном формате
- искать по долговременной памяти с фильтрами
- загружать записи пачкой без дублей по id
- понять, когда писать в сессию, а когда сразу в долговременную память
Примеры запросов агенту
- Покажи, как записать событие сессии через
AgentMemoryна Python - Как искать по долговременной памяти с фильтром по
ownerId? - Объясни, как фоновый перенос достаёт факты из сессии
Как установить iris-development
1Через Skills CLI (Vercel)
npx skills add redis/agent-skills --skill iris-development -a claude-code2Вручную: положить файлы
~/.claude/skills/iris-development/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/iris-development/
1Через Skills CLI (Vercel)
npx skills add redis/agent-skills --skill iris-development -a codex2Вручную: положить файлы
.agents/skills/iris-development/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add redis/agent-skills --skill iris-development -a cursor2Вручную: положить файлы
.cursor/skills/iris-development/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install redis/agent-skills iris-development2Вручную: положить файлы
.github/skills/iris-development/SKILL.md1Через Skills CLI (Vercel)
npx skills add redis/agent-skills --skill iris-development -a gemini-cli2Командой платформы
gemini skills install https://github.com/redis/agent-skills --path skills/iris-developmentВручную: положить файлы
.devin/skills/iris-development/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add redis/agent-skills --skill iris-development -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о iris-development
Как установить iris-development в Claude Code?
Выполните npx skills add redis/agent-skills --skill iris-development -a claude-code. После этого скилл окажется в ~/.claude/skills/iris-development/SKILL.md.
Что делает iris-development?
Даёт агенту инструкции по Redis Agent Memory: создание сервиса, события сессии, долговременные записи и фоновый перенос фактов. Примеры кода на Python и TypeScript.
Что нужно, чтобы скилл заработал?
Сервис памяти в Redis Cloud и ключ хранилища. SDK читают его из AGENT_MEMORY_API_KEY, а идентификатор хранилища — из AGENT_MEMORY_STORE_ID.
Исходный текст
SKILL.md · MIT
--- name: iris-development description: Iris is Redis's umbrella for AI-focused products. Use this skill when integrating with the Iris Redis Agent Memory (RAM) data plane on Redis Cloud — recording session events for an AI agent, creating or searching long-term memories, configuring a memory store, or tuning background memory promotion. Code examples use the official `redis-agent-memory` (Python) and `@redis-iris/agent-memory` (TypeScript) SDKs. license: MIT metadata: author: redis version: "1.0.0" --- # Iris: Redis Agent Memory **Iris** is the umbrella brand for Redis's AI-focused products. This skill currently covers one product in that family: **Redis Agent Memory (RAM)** — the persistent memory layer for AI agents, delivered as a managed service on Redis Cloud. Additional Iris products will be added as separate sections when they ship. Redis Agent Memory exposes a REST/JSON data-plane API with two memory tiers: - **Session memory** — append-only conversation history per session (working memory). - **Long-term memory** — semantically searchable records extracted from sessions (or created directly). A background **promotion** worker — managed by Redis Cloud — extracts durable facts from session events and writes them into long-term memory. ## Official SDKs All code samples use the official SDKs: | Language | Package | Class | Install | | ---------- | -------------------------- | ------------- | ---------------------------------- | | Python | `redis-agent-memory` | `AgentMemory` | `pip install redis-agent-memory` | | TypeScript | `@redis-iris/agent-memory` | `AgentMemory` | `npm add @redis-iris/agent-memory` | Both SDKs read the bearer token from `AGENT_MEMORY_API_KEY` and the default store ID from `AGENT_MEMORY_STORE_ID`. The production data-plane URL is `https://gcp-us-east4.memory.redis.io`; the exact URL for your service is also shown in the Cloud console after provisioning. ## When to Apply Reference these guidelines when: - Creating a memory service on Redis Cloud ([https://cloud.redis.io/#/agent-memory](https://cloud.redis.io/#/agent-memory)) - Wiring an agent to call `AgentMemory.add_session_event(...)` / `addSessionEvent(...)` - Searching long-term memory with `search_long_term_memory(...)` / `searchLongTermMemory(...)` - Choosing between session events and direct long-term memory writes ## Rule Categories by Priority | Priority | Category | Impact | Prefix | | -------- | ----------------------- | ------ | ------------ | | 1 | Setup & Cloud Service | HIGH | `setup-` | | 2 | Session Memory / Events | HIGH | `session-` | | 3 | Long-Term Memory | HIGH | `ltm-` | | 4 | Memory Promotion | MEDIUM | `promotion-` | ## Quick Reference ### 1. Setup & Cloud Service (HIGH) - [`setup-cloud-service`](references/setup-cloud-service.md) - Create a Memory service on Redis Cloud - [`setup-auth-token`](references/setup-auth-token.md) - Authenticate the SDK with a store API key ### 2. Session Memory / Events (HIGH) - [`session-when-to-use`](references/session-when-to-use.md) - Choose session events vs direct long-term memory - [`session-add-event`](references/session-add-event.md) - Append a session event correctly - [`session-retrieval`](references/session-retrieval.md) - Retrieve session memory and individual events ### 3. Long-Term Memory (HIGH) - [`ltm-bulk-create`](references/ltm-bulk-create.md) - Create long-term memories in bulk with idempotent IDs - [`ltm-search`](references/ltm-search.md) - Search long-term memory semantically with filters - [`ltm-organize`](references/ltm-organize.md) - Organize records with namespace, ownerId, topics, and memoryType ### 4. Memory Promotion (MEDIUM) - [`promotion-overview`](references/promotion-overview.md) - How background promotion works ## How to Use Read individual rule files under `references/` for detailed explanations and code examples: ``` references/setup-cloud-service.md references/session-add-event.md references/promotion-overview.md ``` Each rule file contains: - Brief explanation of why it matters - Correct example(s) with Python and TypeScript SDK code - Either an "Incorrect" example or "When to use / When NOT needed" guidance - Additional context and references
© redis · MIT · redis/agent-skills