К основному содержанию
скилл CX Codex

setup-open-index — скилл для Claude Code: контекст доменного агента

Ставит Open Index как читаемый и записываемый слой контекста для агента в конкретной предметной области — юридической, поддержки, инфраструктурной.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add DrDroidLab/open-index --skill setup-open-index -a claude-code
Открыть на GitHub

Что делает setup-open-index

Скилл проводит через весь путь: установка Open Index, инициализация доменного «мозга», подключение MCP-сервера и проверка, что агент видит инструменты. По умолчанию доступ на чтение и запись, флаг --read-only нужен только тогда, когда агент не должен менять знания о домене.

Внутри — пошаговая инструкция. Сначала виртуальное окружение и pip install -e '.[mcp]' из локального чекаута, затем open-index init <brain-name>, open-index validate и open-index index. Схему note из примера предлагается заменить понятиями домена: для юридического агента это дела, пункты, обязательства, прецеденты. Дальше MCP-сервер запускается командой open-index mcp --brain /absolute/path/to/<brain-name>, а конфигурация клиента повторяет форму с mcpServers и ключом open-index. В Claude адаптер лежит в .mcp.json.

Проверка идёт по пяти инструментам: navigation_guidelines, search_brain, get_entity, put_entity, create_doc_type. Дымовой тест — синтетическая сущность, поиск по ID и удаление. В режиме только чтения put_entity и create_doc_type должны отсутствовать. Для общей или многовладельческой установки нужен бэкенд OpenSearch, а секреты держат в переменных окружения: в brain.yaml, файлах скилла и логах им не место. Скилл прямо запрещает объявлять настройку завершённой, пока не прошли обнаружение инструментов и синтетический запрос.

Какие задачи решает

  • подключить Open Index к агенту через MCP
  • завести доменный «мозг» и описать его схему
  • проверить, что агент видит нужные инструменты
  • ограничить агента чтением без права записи
  • вынести секреты из конфигурации в переменные окружения

Примеры запросов агенту

  • Настрой Open Index как контекстный слой для агента поддержки
  • Подключи MCP-сервер Open Index к моему проекту
  • Проверь подключение Open Index синтетическим запросом

Как установить setup-open-index

1Через Skills CLI (Vercel)

npx skills add DrDroidLab/open-index --skill setup-open-index -a claude-code

2Вручную: положить файлы

~/.claude/skills/setup-open-index/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/setup-open-index/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о setup-open-index

Как установить setup-open-index в Claude Code?

Выполните npx skills add DrDroidLab/open-index --skill setup-open-index -a claude-code. После этого скилл лежит в ~/.claude/skills/setup-open-index/SKILL.md.

Что делает setup-open-index?

Проводит установку и настройку Open Index как слоя контекста для доменного агента: установка, инициализация «мозга», подключение MCP-сервера и проверка инструментов.

Когда нужен режим только чтения?

Флаг --read-only добавляют, если агент не должен обновлять знания о домене. По умолчанию его не ставят.

Исходный текст

SKILL.md · MIT
---
name: setup-open-index
description: >-
  Install and configure Open Index as the read/write context layer for a
  domain-specialized agent. Use when setting up a legal, marketing, customer
  support, sales, infrastructure, or other domain agent with Open Index over MCP.
---

# Set up Open Index for a domain agent

Open Index gives a domain-specialized agent structured context it can search,
traverse, and maintain. It is read/write by default; use `--read-only` only when
the agent must never update domain knowledge.

## 1. Install

From a local checkout:

```bash
python -m venv .venv
. .venv/bin/activate
pip install -e '.[mcp]'
```

If Open Index is published as a package, install the equivalent `open-index[mcp]`
release instead. Never invent or hardcode credentials during setup.

## 2. Initialize the domain brain

Choose a short directory name and describe the actual domain in `brain.yaml`:

```bash
open-index init <brain-name>
cd <brain-name>
open-index validate
open-index index
```

Replace the example `note` schema with concepts meaningful to the domain. For
example, a legal agent might model matters, clauses, obligations, and precedents;
a support agent might model products, issues, customer segments, and resolutions.

## 3. Connect the MCP server

Configure the agent runtime to launch this command from the brain directory:

```bash
open-index mcp --brain /absolute/path/to/<brain-name>
```

Generic MCP configuration shape:

```json
{
  "mcpServers": {
    "open-index": {
      "command": "open-index",
      "args": ["mcp", "--brain", "/absolute/path/to/<brain-name>"]
    }
  }
}
```

Adapt the location of this configuration to the selected client. Claude Code's
optional adapter is `.mcp.json`; OpenClaw and Hermes may install this `SKILL.md`
in their own skills directory while their MCP connection is configured according
to that runtime's current documentation.

For retrieval-only access, append `--read-only`. Do not add it by default.

## 4. Verify the agent connection

Confirm the connected server exposes these default tools:

- `navigation_guidelines`
- `search_brain`
- `get_entity`
- `put_entity`
- `create_doc_type`

The MCP host should inject the server's dynamic domain-context instructions into
the agent prompt. `navigation_guidelines()` is a refresh/fallback for hosts that
do not support server instructions or after the schema/index changes.

Run a safe smoke test using synthetic content:

1. Search the brain and confirm the welcome entity is returned.
2. Create a synthetic entity that matches an existing doc type.
3. Fetch it by ID and verify its fields.
4. Remove it if the setup should remain clean.

In read-only mode, verify `put_entity` and `create_doc_type` are absent.

## 5. Production setup

Use `open-index serve` for a remote MCP endpoint and configure authentication.
Use the OpenSearch backend for shared or multi-writer deployments. Keep secrets in
environment variables, never in `brain.yaml`, skill files, examples, or logs.

## Guardrails

- Treat the brain's domain context according to its sensitivity and access policy.
- Do not put credentials, private keys, tokens, or unrelated personal data in it.
- Reuse existing doc types and relationship meanings before creating new ones.
- Run `open-index validate` after changing file-backed schemas or entities.
- Do not claim setup is complete until tool discovery and a synthetic query pass.

© DrDroidLab · MIT · DrDroidLab/open-index

Похожие скиллы

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →
setup-matt-pocock-skills Matt Pocock Скилл настраивает репозиторий для инженерных скиллов Matt Pocock: задаёт трекер задач, метки триажа и расположение доменной документации. Запустите его перед первым использованием остальных скиллов. 1 052 851установок ask-matt Matt Pocock Помогает выбрать подходящий скилл или рабочий поток из набора Matt Pocock. Пригодится, когда непонятно, с чего начать задачу: от идеи до разбора бага. 766 587установок to-tickets Matt Pocock Разбивает план, спецификацию или переписку на небольшие сквозные задачи и отмечает, какие из них блокируют остальные. Пригодится, когда нужно согласовать порядок работы до публикации задач в трекере. 711 230установок writing-plans Jesse Vincent Скилл превращает требования к многошаговой задаче в подробный план реализации до начала работы с кодом. Пригодится, когда исполнителю нужно зафиксировать файлы, интерфейсы и проверки. CX Codex 282 859установок caveman-review JuliusBrussee Пишет замечания к коду одной строкой: место, проблема, исправление. Пригодится, когда ревью диффа или PR надо пройти быстро и без воды. CX Codex +1 411 800установок caveman-compress JuliusBrussee Сжимает CLAUDE.md, списки задач и другие текстовые файлы в краткий формат, сохраняя читаемую резервную копию. CX Codex +1 411 500установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой