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

ce-simplify-code — скилл для Claude Code: установка

Упрощает код после реализации, сохраняя поведение, и убирает тесты или комментарии без пользы. Подходит для проверки изменений перед ревью.

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

Что делает ce-simplify-code

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

В режиме pipeline правки применяются без ожидания подтверждения; в самостоятельном запуске сначала формируется отчёт, если пользователь не попросил сразу исправить найденное. Путь proof-test:<path> сохраняет тест, которым подтверждается текущая работа, поэтому это повод проверить аргумент перед запуском. Для поиска проблем с поведением предусмотрен отдельный скилл ce-debug.

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

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

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

  • Упрости текущие изменения ветки и подготовь код к ревью.
  • Проверь `src/` на лишние тесты и комментарии, сохрани поведение.
  • Упрости изменения с `mode:pipeline` и защити тест `proof-test:tests/smoke.test.ts`.

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

1Через Skills CLI (Vercel)

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

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

~/.claude/skills/ce-simplify-code/SKILL.md

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

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

Весь набор →
ce-brainstorm EveryInc Превращает размытые идеи в структурированный план требований через диалог. Отделяет продуктовые решения от кода. Claude Code CX Codex Cursor +1 3 900установок ce-compound EveryInc Скилл фиксирует решённые задачи как долгоживущие знания репо. Пригодится, когда в коде уже есть ответ, но логика, по которой вы туда пришли, потеряется для следующего разработчика. Claude Code CX Codex Cursor +1 3 700установок 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установок

Похожие

evaluation-methodology Seth Hobson Справочник по методологии PluginEval. Помогает понять расчёт баллов качества плагинов, формулы метрик и причины штрафов за антипаттерны. Claude Code CX Codex Cursor 7 200установок context-mode-ops mksglu Скилл координирует задачи GitHub и релизы через 10-20 динамических субагентов. Пригодится для триажа issues, ревью PR и синхронизации веток. Claude Code CX Codex Cursor +1 1 700установок redesign-existing-projects nexu-io Аудитирует существующий интерфейс и точечно перерабатывает сайт или приложение, сохраняя рабочую логику. Нужен, когда UI выглядит шаблонно или теряет визуальную иерархию. Claude Code CX Codex Cursor +1 1 800установок pr-feedback-quality-gate nexu-io Скилл для отслеживания feedback в pull request, разрешения конфликтов слияния и проверки исправлений. Перед коммитом запускает read-only кросс-ревью, чтобы не допустить ошибок в follow-up изменениях. Claude Code CX Codex Cursor +1 1 800установок case-review zhaoxuya520 Проверяет готовность пакета обратной разработки к передаче: отслеживает связи между доказательствами, находками и путями атаки, верифицирует хеши артефактов и генерирует отчёт без изменения кейса. Claude Code CX Codex Cursor +1 926установок improve-codebase-architecture Matt Pocock Скилл ищет архитектурные узкие места в кодовой базе и показывает варианты углубления модулей в HTML-отчёте. Подойдёт для ревью перед рефакторингом. Claude Code 1 163 035установок tdd Matt Pocock Скилл управляет циклом красный-зелёный в TDD: проверяет, что тесты пишутся до кода, держит их на уровне публичных интерфейсов и не завязывает на внутреннюю структуру. Claude Code 1 141 062установок triage Matt Pocock Скилл проводит issue и внешние PR через роли триажа, проверку и подготовку брифа для агента. Подойдёт мейнтейнеру, который разбирает очередь задач. Claude Code 990 453установок

Вопросы о ce-simplify-code

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

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

Что делает ce-simplify-code?

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

Как работает аргумент `proof-test:<path>`?

Он передаёт путь к тесту, который нужно сохранить как доказательство текущей работы. Этот путь служит контекстом для проверки, а не областью упрощения.

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

SKILL.md · MIT
---
name: ce-simplify-code
description: "Simplify code for clarity, reuse, quality, and efficiency while preserving behavior, and prune tests and comments that carry no value. Use after implementation and before review, or to audit tests or comments in any part of a repo; use ce-debug for bugs."
argument-hint: "[blank for current branch changes, or describe what to simplify or audit] [mode:pipeline] [proof-test:<path>]"
---

Simplify code for clarity, reuse, quality, and efficiency, and prune tests and comments that carry no value, while preserving exact behavior. Prioritize readable, explicit code over compact code — fewer lines is not the goal.

## Mode

Strip a `mode:pipeline` token and every `proof-test:<path>` token from the input before reading the rest as the scope. The proof-test path is context for Step 3, never scope; a caller may pass several.

- **Pipeline** when `mode:pipeline` is present, or when no one asked for this run in their own current message: a step of another skill, or a run the agent starts itself, such as at a completion boundary. Work only on the current work, apply fixes without asking or waiting, and return the Step 5 summary to the caller. That summary is for the caller's record; never paste it into a commit, PR body, or other artifact.
- **Standalone** when the user's own current message asked for this run. Their request sets the scope and focus. Report findings before editing anything, unless the request says to just fix them. Read `references/standalone-report.md` now, and again before applying any reported finding.

## Step 1: Identify scope

Resolve the scope in this order:

1. **User-named scope** is authoritative; do not widen it. In standalone mode it may be the whole repo, an area, or a path.
2. **Otherwise, in git**, use the current branch versus its base. Without a usable base, use staged and unstaged changes (`git diff HEAD`).
3. **Outside git or without a diff**, use files the user named or that were edited earlier in the conversation.

In pipeline mode the scope is what the caller passed, else the branch diff. Within it, prune only tests and comments the current work added or changed.

If none of the above produces a non-empty scope, pipeline mode reports "nothing to simplify" and returns. Standalone mode asks the user what to simplify, as `references/standalone-report.md` describes.

**Preflight.** If the scope has no substantive human-authored code — only documentation, generated or vendored files, dependencies or lockfiles, or mechanical churn — report that there is nothing to simplify and stop without reviewers. For mixed scopes, retain only the code and its tests. This check is about the kind of change, never its size: explicit small scopes still run, and any size or cost threshold is the caller's to set.

When the platform's task-tracking capability is available, show the review, apply, and verification outcomes without creating one task per reviewer. Otherwise continue without simulating a task list in chat.

## Step 2: Launch review agents in parallel

Dispatch generic subagents via the platform's subagent primitive (`Agent`/`Task` in Claude Code, `spawn_agent` in Codex) where available; otherwise run the reviews inline or serially. For each reviewer, read its prompt asset from this skill's directory and pass the **full file content** as the subagent's prompt, together with the resolved scope (the full diff or file set), the mode, any proof test, the user's constraints, and the project standards governing the scope (or their file paths):

- `references/personas/code-reuse-reviewer.md`
- `references/personas/code-quality-reviewer.md`
- `references/personas/efficiency-reviewer.md`
- `references/personas/test-value-reviewer.md`, when the scope holds tests
- `references/personas/comment-reviewer.md`, when the scope holds comments

A standalone request about only tests or only comments runs only that reviewer.

Do not paraphrase these rubrics from memory. Read each file and pass it verbatim, or the reviewer loses the rules that keep the pass behavior-preserving.

Read `references/reviewer-dispatch.md` before dispatching; it covers a full harness, releasing review agents, and the permission mode.

**Model selection.** Use the platform's balanced mid-tier model for these reviewers when the current harness exposes a known override. In Claude Code this is the Sonnet class. In Codex, apply this tier only when the active dispatch primitive exposes an explicit model or custom-agent selector; task wording alone does not select a different model. Otherwise omit the override and inherit the parent model -- a working pass on the parent model beats a broken dispatch.

If the user's or project's active instructions or the live prompt name a model for this subagent, use that model instead of the default tier above. They can name it by the subagent's tier, by its prompt-asset name, or for the subagents being dispatched. Without such an instruction, a model configured for this subagent's role takes precedence over the default tier.

## Step 3: Fix issues

Proceed only after every review outcome is complete, whether returned by subagents or produced inline. In standalone mode, unless the request says to just fix them, report and stop here. Otherwise apply worthwhile findings directly; record false positives and low-value findings as skipped without asking the user.

Inspect beyond the resolved scope when needed to evaluate a finding, but edit only that scope and the import/export lines it needs. For a user-named file or directory scope, those import/export lines must also be inside it; skip any fix that would edit outside the mutation boundary.

Each fix must preserve outputs, errors, side effects, and ordering. If that cannot be established, skip it.

**Never simplify away a safety check.** Preserve trust-boundary validation, data-loss protection, security checks, and accessibility affordances. Skip any finding that would thin or remove one.

**Protect the proof tests.** In pipeline mode, each test the current work relied on to show its change works stays exactly as it is: every `proof-test:` path, else the tests the session's evidence names. Skip any finding from any reviewer that would delete, weaken, rename, move, merge, or rewrite one, or remove or rename the test-only code it calls. Behavior-preserving changes to the production code it exercises still apply. When you cannot tell which tests those are, delete or rewrite none of the tests the current work added or changed.

**Honor caller-passed structure pins.** A plan path passed with the structure-pin constraint is context, not scope. Preserve its `session-settled:` Key Technical Decisions, including deliberate duplication or separation.

## Step 4: Verify behavior is preserved

Run project-wide typecheck and lint. Run tests matched to blast radius: scoped tests for local changes, broader tests for shared or wide-reach changes, and the full suite when the runner cannot scope tests.

Report failures with the check name and relevant output. Fix simplification-caused failures or revert the responsible change. Never weaken or remove a test to make a check pass. A test is removed only as a test-value finding, and any remaining tests that finding named must still pass afterwards.

If no test suite, lint, or typecheck is configured, state that explicitly in the summary; do not silently skip verification.

## Step 5: Summarize

Summarize what was already sound and what improved. Report applied counts by reuse, quality, efficiency, tests, and comments; skipped count; check outcomes; and any comment kept because its constraint could not be encoded. If nothing changed, say so. Do not use net lines removed as the success metric. In pipeline mode this summary ends the skill, not the turn: the caller's next step follows it.

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

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

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

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