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

agentcairn-setup — скилл для Claude Code: что делает и как установить

Помогает настроить, обновить или починить общую память AgentCairn для Claude Code и других сред. Скилл сам не ставит рантайм, а управляет установщиком.

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

Что делает agentcairn-setup

Скилл выступает диспетчером настройки локальной постоянной памяти AgentCairn в поддерживаемых средах разработки, включая Claude Code, Codex и Cursor. Он проверяет наличие инструментов recall и remember, определяет целевой хост и запускает установщик через uvx. При этом сам навык не содержит бинарников или сервера: он лишь передаёт параметры в нативный скрипт развёртывания.

Процесс опирается на утилиту Astral uv. Скилл не правит файлы конфигурации вручную. Сначала он запускает предварительный просмотр через uvx --from agentcairn cairn install <host> --print, после чего применяет изменения с сохранением резервных копий. Для Claude Code и Codex подключаются нативные плагины и хуки, а для сред уровня Cursor создаётся конфигурация MCP-сервера с инструментами search, recent и build_context.

Запуск обычной команды uvx cairn сломает установку, так как она подтянет посторонний пакет из реестра. Для корректной работы всегда требуется явное указание источника --from agentcairn, а в системе заранее должен быть доступен uvx.

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

  • Подключить локальную память AgentCairn к Claude Code или Cursor
  • Проверить конфигурацию MCP и плагинов перед применением изменений
  • Восстановить отсутствующие инструменты recall и remember
  • Обновить интеграцию AgentCairn через встроенный менеджер хоста

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

  • Проверь, подключена ли память AgentCairn к Claude Code, и настрой её при необходимости
  • Выполни предварительный просмотр конфигурации AgentCairn для Cursor перед записью
  • Почини инструменты recall и remember в текущей сессии

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

1Через Skills CLI (Vercel)

npx skills add ccf/agentcairn --skill agentcairn-setup -a claude-code

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

~/.claude/skills/agentcairn-setup/SKILL.md

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

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

Вопросы о agentcairn-setup

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

Выполните команду npx skills add ccf/agentcairn --skill agentcairn-setup -a claude-code. Также можно вручную сохранить файл навыка по пути ~/.claude/skills/agentcairn-setup/SKILL.md.

Что делает скилл agentcairn-setup?

Он определяет текущую среду, запускает нативный установщик AgentCairn, проверяет статус инструментов памяти и координирует обновление конфигураций без ручного редактирования файлов.

Почему нельзя использовать команду uvx cairn?

Команда uvx cairn загружает посторонний пакет с похожим именем. Для вызова установщика AgentCairn обязательно указывать флаг источника: uvx --from agentcairn cairn ....

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

SKILL.md · Apache-2.0
---
name: agentcairn-setup
description: Install, configure, verify, upgrade, or repair AgentCairn persistent cross-agent memory. Use when a user wants shared local-first memory in Claude Code, Codex, Cursor, OpenCode, Antigravity, VS Code, Claude Desktop, or another supported harness; when AgentCairn recall or remember tools are missing; or when its plugin, MCP server, skill, or ambient hooks need setup diagnostics.
---

# AgentCairn setup

Set up the full AgentCairn integration by delegating to AgentCairn's native,
preview-first installer. Treat this skill as a management layer only: installing
this skill does not install the AgentCairn runtime, MCP server, plugin, or hooks.

## Preserve the boundary

- Use `uvx --from agentcairn cairn install` as the source of truth for supported
  hosts and generated configuration.
- Do not copy plugin files, write MCP configuration by hand, or reproduce the
  installer's host-specific logic.
- Do not claim AgentCairn is ready merely because this setup skill is present.
- Do not use plain `uvx cairn`; that resolves an unrelated package. Use
  `uvx --from agentcairn cairn ...`.
- Use `--vault` only for MCP hosts. Configure plugin-host vaults through the
  plugin or AgentCairn's shared configuration.
- Do not install or repair every detected host unless the user explicitly asks.
- Do not write a test memory without the user's approval.

## 1. Establish the target

Check whether AgentCairn's `recall` and `remember` MCP tools are already loaded.
If they are available and the user did not request an upgrade or repair, report
that the full integration is active and move to verification.

Identify the current or requested host. Use these installer IDs:

| Host | Installer ID | Integration |
|---|---|---|
| Claude Code | `claude-code` | Native plugin, MCP tools, skill, and hooks |
| Codex | `codex` | Native plugin, MCP tools, skill, and hooks |
| Cursor | `cursor` | MCP configuration and memory skill |
| OpenCode | `opencode` | MCP configuration, commands, and native plugin |
| Antigravity | `antigravity` | Native plugin; requires a local plugin source |
| VS Code / Copilot | `vscode` | MCP configuration |
| Claude Desktop | `claude-desktop` | MCP configuration |
| Gemini CLI | `gemini` | MCP configuration |

Treat Hermes Agent separately because it uses a native `MemoryProvider`, not
`cairn install`:

```bash
hermes plugins install ccf/agentcairn/integrations/hermes
hermes memory setup agentcairn
```

If the target is still ambiguous after inspecting the current harness and
installed CLIs, ask the user which one to configure. Never choose `--all` as a
shortcut.

## 2. Check the prerequisite

Run:

```bash
uvx --version
```

If `uvx` is missing, explain that AgentCairn uses Astral's `uv` and ask before
installing a system-level prerequisite. Do not silently run a remote installer.

Confirm the AgentCairn package and CLI resolve:

```bash
uvx --from agentcairn cairn --version
```

## 3. Preview without changing host configuration

Use discovery mode to list detected hosts. It writes no AgentCairn host
configuration, but detection proves only that a host is present—not that
AgentCairn is installed or healthy:

```bash
uvx --from agentcairn cairn install
```

For a plugin host, preview the exact target:

```bash
uvx --from agentcairn cairn install <host> --print
```

This prints only the native plugin commands. For MCP hosts, the same `--print`
operation prints the complete merged configuration and may include credentials
from unrelated MCP servers. Do not run it directly through a chat-visible tool
or paste its output into an agent transcript. Ask the user to review it in
their own terminal, or redirect it to a mode-`0600` temporary file, inspect only
the AgentCairn entry locally, and remove the temporary file.

For Antigravity, first locate a local checkout of the AgentCairn plugin and
preview with its path:

```bash
uvx --from agentcairn cairn install antigravity --source <repo>/plugin --print
```

Summarize the plugin commands or configuration path shown by the preview
without exposing unrelated configuration values. If the user has not already
authorized the installation or repair, get approval before continuing.

## 4. Apply one targeted installation

Run the same operation without `--print`:

```bash
uvx --from agentcairn cairn install <host>
```

For Antigravity, retain the reviewed local source:

```bash
uvx --from agentcairn cairn install antigravity --source <repo>/plugin
```

For Claude Code and Codex, let the installer delegate to the host's plugin CLI.
Confirm the requested plugin host's CLI is available before applying. For MCP
hosts, let the installer perform its backup-first, merge-preserving
configuration write. Treat a failed command as a failed install; report its
last useful error instead of continuing as though setup succeeded.

## 5. Verify the full integration

Verify each layer that the host supports:

1. Confirm the install command exited successfully.
2. For Claude Code, run `claude plugin list --json`; for Codex, run
   `codex plugin list --json`. Confirm `agentcairn` is installed and enabled.
3. For an MCP-configured host, confirm its AgentCairn entry matches the
   privately reviewed targeted `--print` preview without removing unrelated
   configuration.
4. Restart the host. A running session cannot reliably hot-load a new plugin,
   MCP server, skill, or hook.
5. In a fresh session, confirm the AgentCairn `search`, `recall`,
   `build_context`, `recent`, and `remember` tools are present. Use `recent` or
   a focused read-only recall to exercise the MCP server. Ask before writing
   and recalling a synthetic memory.
6. If a vault index already exists, optionally run
   `uvx --from agentcairn cairn doctor --vault <vault>` to check index health.
   Do not treat an empty, not-yet-indexed vault as a plugin failure.

Report partial support honestly. MCP tools working does not prove ambient hooks
loaded; a setup skill loading does not prove the MCP tools exist.

## Repair or upgrade

Start again from the targeted `--print` preview and preserve the same host ID
and vault. For MCP hosts, rerun the targeted installer; its writes are
idempotent, backup-first, and preserve unrelated servers.

For native plugin hosts, refresh through the host's own plugin manager before
restarting:

```bash
# Codex
codex plugin marketplace upgrade agentcairn
codex plugin add agentcairn@agentcairn

# Claude Code
claude plugin marketplace update agentcairn
claude plugin update agentcairn@agentcairn
```

Do not remove an existing integration, delete a vault, or overwrite a malformed
configuration as a repair shortcut. Surface the conflict and ask before any
destructive recovery.

© ccf · Apache-2.0 · ccf/agentcairn

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

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →
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установок

Из того же набора2

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

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