crit-story · tomasz-tomczyk — скилл для Claude Code: что делает и как установить
Формирует интерактивную историю ревью в Crit из диффа изменений и ведёт цикл правок до одобрения. Помогает структурировать разбор кода по темам, а не файлам.
npx skills add tomasz-tomczyk/crit --skill crit-story -a claude-codeЧто делает crit-story
Скилл берёт дифф через crit story --prep, группирует изменения по смысловым главам и сохраняет JSON-файл в /tmp/crit-story.json. Затем команда crit story --story-file загружает историю в Crit и открывает интерфейс в браузере. Если в диффе найдены пропуски или дубликаты, утилита вернёт код 1 с отчётом о покрытии, заставляя исправить привязку правок.
После загрузки истории скилл запускает фоновое отслеживание через crit и ждёт сигнал завершения проверки. Стандартный лимит ожидания — пять минут. Поэтому persistent-мониторинг нужен обязательно, чтобы сессия не прервалась раньше времени. Когда рецензент оставляет замечания, агент считывает их, правит файлы проекта и отправляет ответы через crit comment. Цикл повторяется до получения approved. Без установленной CLI-утилиты crit этот рабочий процесс не запустится.
Какие задачи решает
- Сгруппировать разрозненные куски диффа в связные тематические главы
- Организовать пошаговое интерактивное код-ревью в браузере через Crit
- Автоматически внести правки по комментариям рецензента и отправить ответы
- Контролировать полное покрытие всех изменённых строк при подготовке ревью
Примеры запросов агенту
- /skill:crit-story
- Сгенерируй crit story по текущим изменениям в ветке
- $crit-story
Как установить crit-story
1Через Skills CLI (Vercel)
npx skills add tomasz-tomczyk/crit --skill crit-story -a claude-code2Вручную: положить файлы
~/.claude/skills/crit-story/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/crit-story/
1Через Skills CLI (Vercel)
npx skills add tomasz-tomczyk/crit --skill crit-story -a codex2Вручную: положить файлы
.agents/skills/crit-story/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add tomasz-tomczyk/crit --skill crit-story -a cursor2Вручную: положить файлы
.cursor/skills/crit-story/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install tomasz-tomczyk/crit crit-story2Вручную: положить файлы
.github/skills/crit-story/SKILL.md1Через Skills CLI (Vercel)
npx skills add tomasz-tomczyk/crit --skill crit-story -a gemini-cli2Командой платформы
gemini skills install https://github.com/tomasz-tomczyk/crit --path integrations/omo/skills/crit-storyВручную: положить файлы
.devin/skills/crit-story/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add tomasz-tomczyk/crit --skill crit-story -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в 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, группируя диффы по смысловым темам, а не по файлам. После этого скилл ожидает окончания проверки ревьюером и автоматически отвечает на комментарии в коде.
Что требуется для работы crit-story?
В системе должна быть установлена CLI-утилита crit. Скилл вызывает её для генерации диффа, загрузки файла истории /tmp/crit-story.json, отслеживания статуса и отправки ответов на комментарии.
Исходный текст
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, $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 file-edit 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 OMO's asynchronous monitor:
```js
display(await tool.monitor({
description: "Crit story review feedback",
command: "crit",
filter: "https?://|approved:",
persistent: true
}));
```
Call `monitor` directly if `eval` is unavailable. Save the returned `bash_id`.
The persistent watch avoids the default five-minute review deadline.
Relay the review URL verbatim. End the turn while waiting if no independent
work remains; command completion wakes the session.
Do not poll, hold an eval cell open, read feedback before the command exits,
or ask the user to type a reply to signal Finish Review.
## 4. Address feedback and repeat
Read stdout and follow the finish prompt; check stderr for approval.
Retrieve omitted output with `bash_output` using the saved `bash_id`.
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 'OMO' '<what changed>'
crit comment --json --file /tmp/crit-story-replies.json --author 'OMO'
```
Write bulk reply JSON with the file-edit 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 monitor pattern.
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 от других авторов.