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

ce-compound-refresh — скилл для Claude Code: суть и запуск

Сверяет накопленную базу знаний в solutions/ с реальным кодом репозитория. Помогает вовремя убрать устаревшие и противоречивые заметки.

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

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

Скилл анализирует файлы .md в каталоге <root>/solutions/ на соответствие текущей кодовой базе. Корень <root> он определяет по параметру docs_root в файле .compound-engineering/config.yaml или по умолчанию использует папку docs. Каждому документу присваивается статус: Keep, Update, Consolidate, Replace или Delete. Каталог _archived/ не используется, поскольку история изменений сохраняется в git.

Проверка оценивает фактическую точность заметок, выявляет дубли и прямые противоречия. По отдельному запросу запускается аудит полезности: скилл удаляет или сокращает те записи, суть которых уже объяснена в тестах или комментариях к коду. Новые термины автоматически синхронизируются с CONCEPTS.md.

Скилл принципиально не правит продуктовый код репозитория и внешние инструкции. Найденные несоответствия с кодом оформляются в итоговом markdown-отчёте как возможные регрессии реализации.

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

  • найти устаревшие заметки в каталоге solutions/
  • выявить противоречия между базой знаний и актуальным кодом
  • удалить дублирующие описания решений
  • синхронизировать проектные термины в CONCEPTS.md

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

  • Запусти ce-compound-refresh для проверки заметок по модулю auth/ в неинтерактивном режиме mode:non-interactive
  • Проверь через ce-compound-refresh файлы в каталоге solutions/ на расхождения с текущим кодом
  • Выполни ce-compound-refresh с очисткой устаревших решений и обнови CONCEPTS.md

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

1Через Skills CLI (Vercel)

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

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

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

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

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

Вопросы о ce-compound-refresh

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

Выполните команду npx skills add EveryInc/compound-engineering-plugin --skill ce-compound-refresh -a claude-code. Файл навыка сохранится по пути ~/.claude/skills/ce-compound-refresh/SKILL.md.

Что делает скилл ce-compound-refresh?

Он сверяет документы с описанием решений в папке <root>/solutions/ с актуальной структурой кода. Скилл классифицирует устаревшие статьи для правки или удаления и формирует markdown-отчёт.

Меняет ли скилл исходный код проекта?

Нет, инструмент работает только с документацией и не трогает рабочий код. Если зафиксированное правило расходится с реализацией, скилл пометит это в отчёте как возможную регрессию.

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

SKILL.md · MIT
---
name: ce-compound-refresh
description: Refresh the repo's captured learnings against the current codebase. Use when auditing stale, overlapping, superseded, or drifted learnings; avoid general refactor, debugging, or code review unless the learnings store is explicit.
argument-hint: "[optional: scope hint — directory, filename, module, or keyword] [mode:non-interactive] "
---

# Compound Refresh

Audit the learnings under `<root>/solutions/` against the current codebase, apply the maintenance actions the evidence supports, and deliver a complete per-doc report plus committed changes. The report and the corrected document set are the deliverables. The store only compounds value if every doc can be trusted.


## Mode

**Read `references/modes.md` now.** It reads the mode off the arguments and defines what each mode may apply unattended, the stale-marking fallback, the question tools, and the `CONCEPTS.md` bootstrap.

Two rules hold in both modes. A failed write is recorded as **recommended**, and the run continues. And a question is asked through the host's blocking tool, or through the numbered-options fallback that reference defines. It is never silently skipped.

## Worth lens

The ordinary refresh judges accuracy: is each doc still true and still distinct. It never deletes an accurate doc for holding knowledge the repo states elsewhere. That second judgment, worth, runs only when the user asked for it and confirmed it. It reads the whole scope against the codebase and can delete accurate docs.

Read the invocation arguments for that intent: the user wants the store cleaned up, culled, pruned, trimmed, upgraded, or brought to the capture bar, in any wording, rather than checked for drift. When the intent is present, state the reading back and confirm before any investigation:

```text
You asked to clean up the learnings. Which do you want?
1. Delete or shorten docs the codebase already explains. A doc goes when a test, a code comment, or the instructions file states the same reasoning, and every cut quotes that file. Drift is fixed too. Scope: <scope>.
2. Fix drift only. Stale paths and links, duplicate docs, and guidance the code no longer supports. Nothing accurate is deleted.
```

On option 1, **read `references/worth-audit.md`** before Investigate; it adds the bar, the evidence rule, and the routing. On option 2, or when the intent is absent, do not read that reference and do not apply its test; the accuracy refresh is the whole run. Non-interactive mode cannot confirm, so `references/modes.md` states what an inferred intent does there.

## Artifact Root

Resolve `<root>` when you first compose a `<root>/solutions/` path. Pass the resolved `<root>/solutions/` path to any subagent, not the config. Every subagent spawn omits the `mode` parameter, so the user's permission settings apply.

<!-- 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 -->

## Scope

Candidates are the `.md` files under `<root>/solutions/`, excluding `README.md` and anything under `_archived/`. A hint that matches nothing never widens the scope. **Read `references/scope.md`** for the narrowing strategy, what each mode does on a miss, the empty-store message, triage order, and the README-row cleanup each action carries.

## Investigate

**Read `references/investigate.md`** for the staleness dimensions, auto-memory rules, subagent roles, and category-shape notes.

Check each learning against the current codebase, then check the set for overlap, supersession, and contradiction. A contradiction misleads actively, so it outranks individual staleness.

A knowledge-track learning sometimes points at a guidance file it names or links, such as a skill's `SKILL.md`, a runbook, or an instruction file. Compare only guidance the learning names. Never search the guidance layer for one.

Every investigation subagent's prompt carries that reference's three **Subagent prompt** clauses verbatim. Two are search tools and auto-memory. The third is this:

> If the learning is knowledge-track and names or links a guidance file (a skill's `SKILL.md`, a runbook, a root instruction file), read that file and, when it states a different order or a contradictory rule for the same procedure, return both conflicting quotes plus which side current code follows — or that code witnesses neither. Read only guidance the learning names; do not search for one, and do not edit it.

## Classify

Every doc gets exactly one outcome: **Keep**, **Update**, **Consolidate**, **Replace**, or **Delete**. A doc is never archived in place: there is no `_archived/`, since version history is the archive.

**Read `references/classify.md` before assigning any of them.** It defines each outcome's meaning, the Update/Replace boundary, the auto-delete rule and its pre-checks, the relocation and split rules, the retrieval-value test, unverifiable-is-not-false, pattern docs, and what interactive mode asks.

Two boundaries hold whatever the evidence says. This skill never changes product code. A claim about current mechanics follows current code, but independently supported guidance does not become false merely because implementation stopped satisfying it: classify the doc from the guidance evidence and report the implementation conflict as a potential product regression. And when a learning contradicts guidance, the refresh reports that; it must never edit a skill, runbook, or instruction file.

## Execute

Read `references/per-action-flows.md` and follow the section matching each doc's classification, one flow per doc. It defines the criteria, the relocation and split procedures, the replacement subagent contract, and citation cleanup.

## Vocabulary Capture

After the per-doc actions, reconcile the domain terms flagged during investigation with `CONCEPTS.md`. **Read `references/concepts-vocabulary.md` unconditionally.** Its qualifying criteria are non-obvious, so a "nothing qualifies" judgment reached without reading it is a shortcut, not a result.

Edits apply silently in every mode. The report's `CONCEPTS.md` line records what the scan found, including "scanned, no qualifying terms".

## Report

**Print the full report as markdown.** It is the deliverable, not an internal summary, and in non-interactive mode it is the only one. Keep it self-contained and never abbreviated, split into **Applied** and **Recommended**. **Read `references/report.md`** for the summary block, per-file detail, and what belongs under Recommended.

## Commit

Skip if nothing changed. Otherwise stage **only** the files this refresh modified, and commit in the repo's convention. **Read `references/commit.md`** for the per-mode branch decision and the git-failure fallback.

## Discoverability Check

After the report, check that the project's instructions would lead an agent to `<root>/solutions/` before working in a documented area. Do this every time: the store only compounds value when agents can find it. **Read `references/discoverability.md`** for what the reader must learn, the smallest-addition rule and its tone, the `CONCEPTS.md` variant, consent versus a report line per mode, and folding a late edit into the commit.

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

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

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

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

lfg Автономно ведёт задачу от запроса до результата: для изменений в коде создаёт и отправляет pull request. Нужен при явном запросе на работу без пошагового контроля. CX Codex +1 3 500установок ce-commit Автоматически создаёт гит-коммиты с осмысленными сообщениями, разбивая изменения по логическим блокам. Работает когда нужно зафиксировать staged или unstaged файлы без пуша. CX Codex +1 3 400установок ce-ideate Генерирует и отсеивает идеи для кодовой базы до начала проектирования. Пригодится, когда нужно найти свежие направления улучшений или разобрать тему с неожиданных сторон. CX Codex +1 3 400установок ce-simplify-code Упрощает код после реализации, сохраняя поведение, и убирает тесты или комментарии без пользы. Подходит для проверки изменений перед ревью. CX Codex +1 3 400установок ce-commit-push-pr Скилл ведёт изменения от коммита до pull request: проверяет состояние ветки, отправляет изменения и собирает описание PR. Нужен для публикации готовой работы. CX Codex +1 3 300установок ce-setup Проверяет окружение Compound Engineering, валидирует конфиг репозитория и создаёт новые Pack'и. Нужен, если вы уже используете Compound Engineering или хотите начать. CX Codex +1 3 400установок ce-resolve-pr-feedback Скилл разбирает комментарии ревьюеров в пул-реквесте, вносит правки и закрывает обсуждения. Пригодится, когда на PR уже накопились замечания. CX Codex +1 3 200установок ce-worktree Скилл заводит отдельное рабочее дерево git, чтобы правки не трогали основной чекаут. Пригодится, когда нужно поработать в стороне от текущей ветки. CX Codex +1 3 100установок

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

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