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

crit-story · tomasz-tomczyk — скилл для Claude Code: что делает и как установить

Скилл создаёт историю для Crit по изменениям в проекте и ведёт интерактивный цикл ревью. Запускайте его прямым запросом на создание истории или командой /skill:crit-story.

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

Что делает crit-story

Скилл читает руководство Crit и подготовленный diff, затем группирует изменения по темам и записывает историю в /tmp/crit-story.json. Crit проверяет покрытие diff: если назначения фрагментов отсутствуют или дублируются, скилл исправляет файл и отправляет его повторно. Если diff успел измениться, нужно заново получить подготовленные данные и собрать историю ещё раз.

После загрузки истории скилл запускает crit асинхронно и ждёт завершения ревью. Затем он отвечает на нерешённые замечания в исходных файлах и повторяет цикл до одобрения. Команда crit story без аргументов не запускается, если пользователь отдельно не запросил путь agent_cmd; обычной просьбы проверить PR или diff недостаточно для активации скилла.

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

  • сгруппировать фрагменты diff по темам в историю Crit
  • найти и исправить пропущенные или повторяющиеся назначения фрагментов
  • ответить на замечания ревью в исходных файлах
  • повторять ревью до получения одобрения

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

  • Создай историю Crit для текущего diff.
  • Запусти /skill:crit-story и подготовь историю изменений для ревью.
  • Продолжи цикл Crit и обработай нерешённые замечания.

Как установить crit-story

1Через Skills CLI (Vercel)

npx skills add tomasz-tomczyk/crit --skill crit-story -a claude-code

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

~/.claude/skills/crit-story/SKILL.md

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

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

Вопросы о crit-story

Как установить crit-story в Claude Code?

Выполните npx skills add tomasz-tomczyk/crit --skill crit-story -a claude-code. Файл скилла находится по пути ~/.claude/skills/crit-story/SKILL.md.

Что делает crit-story?

Он создаёт историю Crit на основе diff, загружает её и ведёт интерактивное ревью до одобрения. Замечания обрабатываются в исходных файлах.

Запустится ли crit-story на обычную просьбу проверить diff?

Нет. Скилл запускается при команде /skill:crit-story или прямой просьбе создать историю Crit; общая просьба о ревью не активирует его.

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

SKILL.md · MIT
---
name: crit-story
description: "Author a crit story and continue the interactive review loop only when the user explicitly invokes /skill:crit-story or directly asks to generate a crit story. Do not infer this skill from generic review, PR, or diff-review requests."
---

# Author a Crit story

Author the story in-session, then continue the interactive Crit review loop.
Do not run bare `crit story` unless the user asks for the `agent_cmd` path.

## 1. Read the guide and diff

```bash
crit story --guide
crit story --prep /tmp/crit-story-prep.txt
```

The guide prints the user's resolved authoring instructions followed by `---`
and the JSON schema. Follow it rather than assuming this skill contains the
current guide. Read the prep file for the full diff and its
`(file_path, old_start)` hunk identifiers.

## 2. Author and ingest

Use the `write` tool to write `/tmp/crit-story.json`. Cluster hunks by theme,
not by file, following the guide. Emit only `prologue`, `chapters`, and
`support`; Crit fills in metadata and coverage.

```bash
crit story --story-file /tmp/crit-story.json
```

Inspect the JSON coverage report on every attempt. Exit 1 means rejection:
fix duplicate or missing hunk assignments and re-ingest. A drift error means
the diff changed; fetch fresh prep and re-author. Exit 0 with
`auto_repaired: true` means omissions were back-filled into `support`.

## 3. Reconnect and await Finish Review

Ingest opens the browser and exits; it does not wait for the human.
Run bare `crit` through omp's `bash` tool as an asynchronous job:

```json
{"command":"crit","async":true,"timeout":0}
```

Save the returned job ID. `timeout: 0` disables the default five-minute
command deadline; `async: true` alone does not. If asynchronous jobs are
unavailable, use foreground `bash` with `timeout: 0`.
Do not use a named service for this finite review-round command.

Relay the review URL verbatim; if omitted from startup output, read
`proc://<job-id>` once. Use `wait` when no independent work remains.
Completion also auto-delivers. A running snapshot or unrelated message
is not completion: keep waiting until this job exits.
Do not poll process output or the review file, hold an eval cell open,
read feedback early, or ask the user to type a reply to signal Finish Review.

## 4. Address feedback and repeat

Read the command output and follow the finish prompt; check for
`approved: true` or `approved: false`. omp merges stdout and stderr.
Retrieve omitted output through `proc://<job-id>` or its `artifact://` link.
A command failure is not approval; report the error rather than proceeding.
If approved, stop. Otherwise read every unresolved comment and its replies,
including review-level comments. Use `quote` and `anchor` rather than stale
line numbers when edits have moved the content.

Address comments against the actual source files. Do not regenerate or edit
the saved story JSON unless the user explicitly asks.

```bash
crit comment --reply-to <id> --author 'omp' '<what changed>'
crit comment --json --file /tmp/crit-story-replies.json --author 'omp'
```

Write bulk reply JSON with the `write` tool; each entry has `reply_to`
and `body`. Do not use `--resolve` unless explicitly requested.
For mid-round re-entry, use `crit comments --json`.

Run the next-round command printed on stdout with the same asynchronous
`bash` pattern and `timeout: 0`. Tell the user only that you replied in Crit
and the changes are ready for review. Do not repeat your replies or list the
comments in chat. Await command completion, and repeat this step until
approved.
Do not call `crit push` or `crit share` unless the user asks.

© tomasz-tomczyk · MIT · tomasz-tomczyk/crit

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

Все скиллы по теме «Код-ревью и рефакторинг» →

Сначала — crit-story от других авторов.

crit-story tomasz-tomczyk Формирует интерактивную историю ревью в Crit из диффа изменений и ведёт цикл правок до одобрения. Помогает структурировать разбор кода по темам, а не файлам. CX Codex +1 ★ 1 250звёзд репо improve-codebase-architecture Matt Pocock Скилл ищет архитектурные узкие места в кодовой базе и показывает варианты углубления модулей в HTML-отчёте. Подойдёт для ревью перед рефакторингом. 1 163 035установок tdd Matt Pocock Скилл управляет циклом красный-зелёный в TDD: проверяет, что тесты пишутся до кода, держит их на уровне публичных интерфейсов и не завязывает на внутреннюю структуру. 1 141 062установок triage Matt Pocock Скилл проводит issue и внешние PR через роли триажа, проверку и подготовку брифа для агента. Подойдёт мейнтейнеру, который разбирает очередь задач. 990 453установок codebase-design Matt Pocock Скилл помогает проектировать модули с небольшим интерфейсом и скрытой внутри сложностью. Подходит для рефакторинга, тестируемости и поиска чистого seam. 850 344установок code-review Matt Pocock Проверяет изменения от выбранной точки по стандартам репозитория и требованиям задачи. Нужен для ревью ветки, PR или незавершённой работы. 789 521установок implement Matt Pocock Выполняет задачу по спецификации или тикетам, ведёт работу через тесты и завершает её ревью с коммитом. Подходит для задач, где нужен дисциплинированный цикл разработки. 774 700установок

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

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

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