К основному содержанию
скилл Claude Code CX Codex Cursor GitHub Copilot

ce-compound — скилл для Claude Code: документирование решений

Скилл фиксирует решённые задачи как долгоживущие знания репо. Пригодится, когда в коде уже есть ответ, но логика, по которой вы туда пришли, потеряется для следующего разработчика.

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

Что делает ce-compound

ce-compound пишет документацию о нетривиальных решениях прямо в проект. Он запускается после того, как вы проверили код и тесты работают. Скилл судит, достаточно ли важна логика, чтобы её сохранить: если она очевидна из финального кода или тестов, документ не пишется.

Вы задаёте контекст через аргументы: режим (интерактивный или автоматический), глубину анализа (лёгкую или полную). Скилл читает историю сессии, исследует дерево проекта, общается с агентами, чтобы выделить суть решения. Итог — одна запись в папке <root>/solutions/, привязанная к реальному коду и готовая для следующего поиска.

Реквизиты для установки зависят от вашей платформы: Claude Code, Codex, Cursor, GitHub Copilot и остальные требуют разных команд. Файл SKILL.md после установки объясняет, как вызвать скилл и что означают флаги.

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

  • Сохранить нетривиальное решение, которое иначе потеряется при смене состава команды
  • Зафиксировать причину выбора подхода вместо простого факта того, что он работает
  • Связать рассуждение с кодом так, чтобы следующий разработчик нашёл его без подсказок
  • Избежать повторного анализа одной задачи разными агентами в разных сессиях

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

  • /ce-compound контекст интеграции с GraphQL
  • /ce-compound mode:non-interactive depth:full кэширование результатов запроса
  • /ce-compound mode:non-interactive depth:lightweight

Как установить ce-compound

1Через Skills CLI (Vercel)

npx skills add EveryInc/compound-engineering-plugin --skill ce-compound -a claude-code

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

~/.claude/skills/ce-compound/SKILL.md

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

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

Весь набор →
ce-brainstorm EveryInc Превращает размытые идеи в структурированный план требований через диалог. Отделяет продуктовые решения от кода. Claude Code CX Codex Cursor +1 3 900установок ce-plan EveryInc Оформляет пошаговые планы для задач разработки без запуска самого кода. Пригодится, когда нужно разбить фичу на этапы и передать исполнителю. Claude Code CX Codex Cursor +1 3 700установок ce-code-review EveryInc Скилл проверяет diff или pull request на баги, регрессии, тесты и соответствие стандартам. Подходит для проверки текущей ветки или заданного PR. Claude Code CX Codex Cursor +1 3 700установок ce-work EveryInc Выполняет план разработки или задачу по спецификации от старта до локальной проверки. Помогает внедрять фичи без лишних споров об архитектуре. Claude Code CX Codex Cursor +1 3 600установок ce-doc-review EveryInc Скилл проверяет требования, планы и спецификации с позиции нескольких рецензентов. Пригодится, когда нужно найти ошибки в уже написанном документе и исправить то, на что есть разрешение. Claude Code CX Codex Cursor +1 3 600установок ce-debug EveryInc Находит причину бага по цепочке от триггера к симптому и предлагает решение через тесты. Пригодится при сбоях в CI или падении тестов. Claude Code CX Codex Cursor +1 3 500установок lfg EveryInc Автономно ведёт задачу от запроса до результата: для изменений в коде создаёт и отправляет pull request. Нужен при явном запросе на работу без пошагового контроля. Claude Code CX Codex Cursor +1 3 500установок ce-commit EveryInc Автоматически создаёт гит-коммиты с осмысленными сообщениями, разбивая изменения по логическим блокам. Работает когда нужно зафиксировать staged или unstaged файлы без пуша. Claude Code CX Codex Cursor +1 3 400установок

Похожие

thinking-out-loud Shubham Saboo Скилл превращает длинный поток мыслей в проверяемый бриф до начала работы. Пригодится, когда идея приходит голосом, с повторами и сменой решений. Claude Code CX Codex Cursor +1 431установок autoresearch uditgoenka Скилл запускает циклы: меняет код, проверяет метрику и оставляет удачный результат. Пригодится для отладки, улучшений и проверки регрессий. Claude Code CX Codex Cursor +1 2 600установок uncodixfy cyxzdev Учит агента не генерировать типичный «кодексовый» интерфейс: без градиентов, плавающих панелей и декоративных заголовков. Пригодится, когда фронтенд от ИИ выглядит слишком шаблонно. Claude Code CX Codex Cursor +1 5 600установок k-schoollunch-menu NomaDamas Ищет меню школьных столовых по названию управления образования и школы. Пригодится для запросов о питании в школах Кореи. Claude Code CX Codex Cursor +1 6 700установок smb-router официальный anthropics Разбирает открытый запрос владельца бизнеса и направляет к подходящему скиллу или слэш-команде. Пригодится, когда непонятно, с чего начать или какой рабочий процесс запустить. Claude Code CX Codex Cursor +1 1 600установок smb-onboard официальный anthropics Проводит первую настройку для владельца малого бизнеса: подключает два инструмента, запускает рецепт на реальных данных, запоминает контекст компании и настраивает еженедельные проверки. Claude Code CX Codex Cursor +1 1 600установок setup-matt-pocock-skills Matt Pocock Скилл настраивает репозиторий для инженерных скиллов Matt Pocock: задаёт трекер задач, метки триажа и расположение доменной документации. Запустите его перед первым использованием остальных скиллов. Claude Code 1 052 851установок to-tickets Matt Pocock Разбивает план, спецификацию или переписку на небольшие сквозные задачи и отмечает, какие из них блокируют остальные. Пригодится, когда нужно согласовать порядок работы до публикации задач в трекере. Claude Code 711 230установок

Вопросы о ce-compound

Как установить ce-compound в Claude Code?

Выполните npx skills add EveryInc/compound-engineering-plugin --skill ce-compound -a claude-code дважды. После этого найдёте файл ~/.claude/skills/ce-compound/SKILL.md с полной справкой.

Зачем нужен ce-compound?

Он документирует решения, логика которых не видна в коде или тестах. Если вы решили задачу нетривиально и это рассуждение можно потерять, скилл превращает его в дурабельную запись проекта.

Что значит режим non-interactive и зачем он нужен?

Режим автоматический: скилл не задаёт вопросов, работает без участия. Нужен, когда вы запускаете его из другого агента или скрипта. Интерактивный режим — по умолчанию, позволяет согласовывать шаги.

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

SKILL.md · MIT
---
name: ce-compound
description: Document a solved problem as a durable repo learning. Use when verified work produced non-obvious reasoning absent from its final code, tests, or existing docs; avoid routine fixes whose artifacts already explain the lesson.
argument-hint: "[optional: brief context] [mode:non-interactive] [depth:lightweight|full]"
---

# /ce-compound

**Outcome:** one qualifying solved problem is written as a durable learning under `<root>/solutions/`, grounded against the current tree, discoverable by the next agent.

**Done:** a qualifying doc is written or updated, its frontmatter and claims validated, vocabulary capture recorded, and the mode's completion report emitted; when no learning qualifies, nothing is written and the report says why.

**One learning per run.** A session that produced several gets several sequential runs, never one batched run. Read `references/research.md`; it explains what batching breaks.


## Preconditions

Document only a problem that is solved and verified.

<!-- ce-durable-bar:start -->
A learning earns its place only when it holds durable project reasoning that is not readily recoverable from the final code, tests, types, comments, or existing documentation, and losing it would plausibly cause recurrence, material risk, or substantial rediscovery. Apply this counterfactual: if the learning document disappeared, would a future engineer reading the final implementation still be likely to repeat the mistake or redo substantial investigation? Completion, effort, and diff size do not establish eligibility.
<!-- ce-durable-bar:end -->

If the counterfactual fails, write nothing and report why. Judge this from the session rather than asking. An explicit invocation requests the judgment now but does not lower the bar.

An existing learning that became materially inaccurate or incomplete qualifies because leaving it would mislead. Update that learning instead of creating a duplicate.

`ce-compound` does not bootstrap `CONCEPTS.md`. It seeds the learning's own area as a side effect, never the whole repo. Send a standalone request to create or bootstrap that file to `ce-compound-refresh`, then exit.

## Mode Detection

```bash
/ce-compound [brief context]
/ce-compound mode:non-interactive depth:lightweight [context]
/ce-compound mode:non-interactive depth:full [context]
```

Enter non-interactive mode when **either** holds: the arguments you were invoked with contain the `mode:non-interactive` token or its deprecated alias `mode:headless`, **or** the invocation makes non-interactive intent unmistakable, such as a caller or standing instruction asking to run `ce-compound` "headless", "non-interactively", "unattended", or "without prompts/questions". Both tokens together is not a conflict. Bare "automatically" or "auto-run" is **not** on its own a non-interactive signal: it speaks to *invoking* the skill, not to suppressing its prompts. An ambiguous or absent signal defaults to interactive. Tokens starting with `mode:` or `depth:` are flags, not context: strip them before treating the remainder as the brief context hint. Once detected, non-interactive mode applies for the entire run.

Depth is chosen only by an explicit token, only in non-interactive mode, and at most one depth token is accepted. `depth:lightweight` routes directly to Lightweight Mode. `depth:full` or no depth token enters Full Mode, including its automatic session-history probe. A non-interactive call carrying no depth token therefore behaves as it always has. Non-interactive lightweight asks no blocking questions and launches no subagents. If the invocation carries an unknown `depth:` token, multiple `depth:` tokens, or a `depth:` token without non-interactive intent, do not guess: emit the non-interactive failure report with the reason and end with `Documentation skipped`.

**Non-interactive mode asks nothing.** It asks no blocking question of any kind, in any phase, because a caller reaching this path has no human to answer one. Every non-interactive exit, including one taken before any phase runs, ends on a terminal signal a caller parses: `Documentation complete`, or `Documentation skipped` with the reason when no doc was written. Interactive mode asks only where the step's own reference says to, which is the Discoverability Check consent and, when several stale docs are in play, which refresh to run.

## Artifact Root

Resolve `<root>` when you first compose a `<root>/solutions/` path, and pass a subagent the resolved path rather than the config.

<!-- ce-docs-root:start -->
**Resolve the CE artifact root `<root>` before composing any artifact path.**

- **Read** `docs_root` from `<repo-root>/.compound-engineering/config.yaml` only (`<repo-root>` = `git rev-parse --show-toplevel`). Do not read it from `config.local.yaml`. Unset -> `<root>` is `docs`, exactly as before.
- **Validate** a set value: a repo-relative directory whose real, symlink-resolved path stays inside the repo and is neither the repo root nor under `.git/`. Otherwise stop with an error naming `docs_root` and the value -- never fall back to `docs`.
- **Use** `<root>` as the sole artifact location: create it if absent, compose each path as `<root>/<subdir>` with this skill's own subdirectory, and never also read `docs`.
<!-- ce-docs-root:end -->

## Write boundary

**Only the orchestrator writes product files.** Phase 1 subagents write to per-run scratch only, and never touch `<root>/`, project instruction files, or any other tracked path.

The orchestrator writes the one learning under `<root>/solutions/`, plus two maintenance side effects that its own step describes: `CONCEPTS.md` during vocabulary capture, and — **only in interactive Full mode after consent** — a small discoverability line in a project instruction file. Two further writes exist **only in interactive Full mode when the user selects them at the assembly destination step**: a rule file inside a writable declared Compound Pack, and the `packs:` entry appended to `.compound-engineering/config.yaml`. Creating `CONCEPTS.md` when it is absent is expected rather than a violation. An instruction file is only ever edited, never created. Nothing else in the tree is written. Edits to *other* docs belong to `ce-compound-refresh`, which this skill recommends or invokes with a narrow scope but never stands in for.

## Choosing the path

**Read `references/modes.md` before step 1.** An interactive run picks its own depth rather than asking the user, and that reference says why neither the depth choice nor session history is a question. Default to **Full**. Choose **Lightweight** only when the session is near its context limit.

Lightweight mode skips session history entirely; non-interactive Full runs the same automatic probe, which asks nothing and so preserves the non-interactive contract.

## Full Mode

Run these in order. Each reference is a required read at the step that names it.

1. **Research** — read `references/research.md`.
2. **Session history** — read `references/session-history.md`, and start it *after* dispatching the Related Docs Finder so it overlaps your drafting rather than serializing. Session history is the final Phase 1 input, not a workflow stop. When it returns, including with "no relevant prior sessions", go straight to assembly without pausing or summarizing.
3. **Assembly and write** — wait for every Phase 1 input, then read `references/assembly.md`.
4. **Refresh check and discoverability** — read `references/refresh-and-discoverability.md`.
5. **Optional enhancement** — read `references/enhancement.md`. Interactive only.
6. **Report** — read `references/report.md` for the report shape your mode must emit and how the skill ends.

**Lightweight Mode** replaces steps 1-6 with a single pass; read `references/lightweight.md`, which defines its own completion output for both modes.

© EveryInc · MIT · EveryInc/compound-engineering-plugin

Смотрите также

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

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