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

crit — скилл для Claude Code: ревью кода в браузере

Открывает изменения, план или страницу в браузере и собирает построчные комментарии ревьюера, пока агент ждёт.

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

Что делает crit

crit запускает интерактивный цикл ревью: агент выполняет команду, открывается браузер, и ревьюер оставляет комментарии прямо в интерфейсе. Когда он нажимает Finish Review, команда завершается и агент читает обратную связь.

Цель выбирается автоматически из аргументов: файлы, каталоги, живой URL, локальный HTML. Есть и явные режимы — crit --pr <number-or-url>, crit --mr <number-or-url>, crit --range <base>..<head>. Без аргументов берётся план из текущего разговора, а если плана нет — диф ветки. Запуск идёт через tool.monitor с persistent: true, поэтому пятиминутный лимит монитора не мешает человеку спокойно читать.

Скилл срабатывает только на явный вызов /skill:crit или $crit либо на прямую просьбу использовать Crit. Обычное «посмотри код» его не запустит — это осознанное ограничение, а не недоработка. Ответы на комментарии уходят через crit comment --reply-to <id>, а флаг --resolve без явной просьбы передавать не стоит: закрывать обсуждение — дело ревьюера.

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

  • собрать построчные замечания к дифу ветки
  • проверить план до начала работы над ним
  • отревьюить живую страницу на запущенном dev-сервере
  • оставить комментарии к локальному HTML-файлу
  • ответить на замечания ревьюера из терминала

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

  • Запусти crit по текущему дифу ветки
  • Открой crit --pr 128 и дождись, пока я закончу ревью
  • Покажи мои комментарии через crit comments --json

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

1Через Skills CLI (Vercel)

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

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

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

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

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

Вопросы о crit

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

Выполните npx skills add tomasz-tomczyk/crit --skill crit -a claude-code. Скилл окажется в ~/.claude/skills/crit/SKILL.md.

Что делает crit?

Открывает браузер с изменениями, планом или страницей и даёт ревьюеру оставить построчные комментарии. Агент получает их после нажатия Finish Review и правит код или план.

Когда crit запускается сам?

Только при явном вызове /skill:crit или $crit либо когда пользователь прямо просит использовать Crit. Обычная просьба отревьюить код его не активирует.

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

SKILL.md · MIT
---
name: crit
description: "Review code changes, a plan, a live page (running dev server), or a local HTML file with Crit inline comments and structured human feedback. Use only when the user explicitly invokes /crit or directly asks to use Crit; a generic review request does not count."
---

# Review with Crit

Run this interactive browser review cycle only when the user invokes
`/skill:crit` or `$crit`, or directly asks to use Crit. A generic request to
review code, a plan, a diff, a PR, or a page does not count.

## 1. Choose the target

Pass the user's arguments through. Crit auto-detects files, directories,
live URLs, and local HTML previews; do not ask which mode to use.

```bash
crit <arguments>
crit --pr <number-or-url>
crit --mr <number-or-url>
crit --range <base>..<head>
crit
```

Without arguments, review the plan file written earlier in this conversation,
if there is one; otherwise run bare `crit` for the branch diff.

## 2. Start the review and await completion

Crit opens the browser and stays running until the human clicks Finish Review.
Use OMO's monitor from a short `eval` cell to launch the command and subscribe
to its output and exit. Substitute the command chosen in Step 1:

```js
display(await tool.monitor({
  description: "Crit review feedback",
  command: "crit",
  filter: "https?://|approved:",
  persistent: true
}));
```

Call `monitor` directly if `eval` is unavailable. Keep the returned `bash_id`.
`persistent: true` lets the human review without the default five-minute
monitor deadline. The command's exit delivers a completion notification.

Relay the printed review URL verbatim: "Crit is open at <URL>. Leave inline
comments, then click Finish Review."

End the turn while waiting if no independent work remains. Do not hold an
eval cell open, poll `bash_output`, read comments early, launch a second
Crit command, or ask the user to type a reply to signal completion.
An existing daemon is reused automatically.

## 3. Read feedback

After the command exits, read its stdout and follow the finish prompt.
Check stderr for `approved: true` or `approved: false`. Use `bash_output`
with the saved `bash_id` to retrieve output not included in the notification.
If approved, stop the review loop.

For mid-round re-entry or headless workflows, use `crit comments --json`
(or `crit comments --plan <slug>` for plan reviews).

Review-level comments matter as well as file comments. Read existing replies.
Treat missing `resolved` as unresolved. Use `quote` to narrow the requested
change, `anchor` to locate content after edits, and `drifted: true` as a sign
that line numbers are approximate.

## 4. Address comments

Revise the referenced plan or source files and apply suggestion blocks when
present. Reply with what changed:

```bash
crit comment --reply-to <id> --author 'OMO' '<what changed>'
crit comment --plan <slug> --reply-to <id> --author 'OMO' '<what changed>'
```

Do not pass `--resolve` unless the user explicitly asks; resolution belongs
to the reviewer. For multiple replies, write JSON with the file-edit tool:

```bash
crit comment --json --file /tmp/crit-replies.json --author 'OMO'
```

Each entry has `reply_to` and `body`. Use the `crit-cli` skill for the full
schema and session disambiguation. Plan edits reload live in the browser.

## 5. Start the next round

Run the next-round command printed by Crit using the same monitor pattern.
It signals round-complete and then waits for the next Finish Review.

Tell the user only: "Replied in Crit. Review the changes in your browser and
click Finish Review when ready." Do not repeat your replies or list the
comments in chat. The reviewer reads them in Crit. Await command completion, then return to Step 3.
Continue until the reviewer approves.

## Sharing

Only share or unpublish when the user asks:

```bash
crit share <file> [file...]
crit unpublish [file...]
```

Relay the full printed URL. Use `--qr` only in real monospace terminals.
For another device, keep Crit on loopback and use an SSH tunnel or reverse
proxy. `--public-url` requires `--allow-unauthenticated-network` and changes
the printed URL, not the listener.

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

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

Все скиллы по теме «Код-ревью и рефакторинг» →
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установок

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

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