crit
О программе
Навык `crit` предоставляет встроенный обзор кода для изменений, планов, работающих веб-страниц или локальных HTML-файлов, предоставляя структурированную обратную связь. Он автоматически определяет режим проверки на основе аргументов, таких как файлы, каталоги, URL-адреса или GitHub PR, без необходимости ручного выбора режима. Используйте его, когда вам нужен похожий на человеческий обзор кода для различий (diff), работающих приложений или разработки.
Быстрая установка
Claude Code
Рекомендуетсяnpx skills add tomasz-tomczyk/crit -a claude-code/plugin add https://github.com/tomasz-tomczyk/critgit clone https://github.com/tomasz-tomczyk/crit.git ~/.claude/skills/critСкопируйте и вставьте эту команду в Claude Code для установки этого навыка
Документация
Review with Crit
Review and revise code changes, plans, live pages (running dev servers, staging URLs), or local HTML files using crit for inline comment review.
Step 1: Pass arguments to crit
The CLI auto-detects the review mode from its arguments. Do not ask the user which mode to use. Pass arguments through:
crit <arguments> # file, dir, URL, .html — CLI auto-detects mode
crit --pr <num|url> # GitHub PR (range mode)
crit --range <base>..<head> # commit range (range mode)
crit # no args → branch diff
If no arguments, check conversation context:
- A plan file was written earlier in this conversation →
crit <plan-file> - Otherwise → bare
crit(branch diff)
crit --public-url "https://<machine>.ts.net" --allow-unauthenticated-network --no-open [args…]
# then: tailscale serve --bg --https=443 http://127.0.0.1:<port>
--public-urlonly changes the URL crit prints — it does not expose the server.--allow-unauthenticated-networkis required with--public-url(even on loopback) and with any non-loopback--host. Crit has no auth: anyone who can reach the URL can read the repo and post comments that may trigger agents. Confirm the user wants that blast radius.- Do not bind
--hostto a Tailscale/LAN IP — proxy withtailscale serve(or an SSH tunnel). Get<port>from crit's startup output, or fix it with-p. Relay the URL crit prints (the public one), not localhost. </important>
Step 2: Launch crit and wait for review completion
CRITICAL — you MUST run this step. Do NOT skip it. Do NOT proceed without it.
Run crit and wait until it exits:
crit <plan-file> # specific file
crit # git mode
If a crit server is already running from earlier in this conversation, crit automatically connects to it. Starting from scratch, it spawns the daemon, opens the browser, and blocks until the user clicks "Finish Review".
crit prints the review URL on startup (e.g. Started crit daemon at http://localhost:<port>). Relay it verbatim:
"Crit is open at http://localhost:<port>. Leave inline comments, then click Finish Review."
Do NOT proceed until crit completes. Do NOT ask the user to type anything. Do NOT read the review file early. Wait for the command to finish — that is how you know the human is done reviewing.
While crit is still running, do not send user-facing progress updates. Treat the wait loop as internal state.
Step 3: Read the review output
When crit completes, read stdout and follow its instructions. Check stderr for approved: true or approved: false.
When a comment has quote, anchor, or drifted:
quote: the specific text the reviewer selected — focus your changes on the quoted text rather than the entire line rangeanchor: use it to locate the current position of the content; line numbers may be stale after editsdrifted: true: original content was removed or heavily rewritten — line numbers are approximate at best
Fallback (mid-round re-entry, plan hooks, or headless workflows): crit comments / crit comments --json. Use crit comments --plan <slug> for plan-mode reviews.
Step 4: Address each review comment
For each unresolved comment:
- Understand what the comment asks for
- If it contains a suggestion block, apply that specific change
- Revise the referenced file (plan or code file from the diff)
- Reply with what you did:
crit comment --reply-to <id> --author 'Codex' '<what you did>'(reply bodies support markdown) - Do not pass
--resolve. Resolving is the reviewer's call. Only add--resolveif the user explicitly asks.
Editing the plan file triggers Crit's live reload — the user sees changes in the browser immediately.
<important if="you are revising in plan mode"> Re-emit the revised plan inside `<proposed_plan>...</proposed_plan>` so Crit can review the new version. </important>When replying to multiple comments
Use --json for a single bulk call instead of one invocation per comment:
echo '[
{"reply_to": "c_a1b2c3", "body": "Fixed"},
{"reply_to": "c_d4e5f6", "body": "Refactored as suggested"}
]' | crit comment --json --author 'Codex'
Step 5: Signal completion and start next round
CRITICAL — you MUST run this step. Do NOT skip it. Do NOT proceed without it.
The finish prompt on stdout includes the command to run again — use it to start a new round.
On subsequent calls, crit automatically signals round-complete first, then blocks until the next "Finish Review" click.
Tell the user: "Changes applied. Review the diff in your browser and click Finish Review when ready."
Do NOT proceed until the background crit task completes. When it does, return to Step 3. If the user finishes with zero comments, the review is approved — stop the loop and proceed.
Sharing
If the user asks for a URL, a shareable link, or to share the review:
crit share <file>
Always relay the full output to the user — copy the URL directly into your response. Don't make them dig through tool output.
To remove a shared review:
crit unpublish [file...]
QR codes
Only use --qr in real terminal environments with monospace rendering. Skip it in mobile apps or web chat UIs — Unicode block characters won't render.
crit share --qr <file>
GitHub репозиторий
Часто задаваемые вопросы
Что такое Skill crit?
crit — это Claude Skill от tomasz-tomczyk. Skills объединяют инструкции и ресурсы, которые Claude загружает по мере необходимости, чтобы выполнять задачи, связанные с crit, без дополнительных запросов.
Как установить crit?
Используйте команды установки на этой странице: добавьте crit в Claude Code как плагин или клонируйте репозиторий в каталог skills, затем перезапустите Claude, чтобы загрузить Skill.
К какой категории относится crit?
crit относится к категории Разработка.
Можно ли использовать crit бесплатно?
Да. crit размещён на AIMCP и доступен для бесплатной установки.
Похожие навыки
qmd — это локальный инструмент командной строки для поиска и индексирования, который позволяет разработчикам индексировать и осуществлять поиск по локальным файлам с использованием гибридного поиска, сочетающего BM25, векторные эмбеддинги и реранкинг. Он поддерживает как использование через командную строку, так и режим MCP (Model Context Protocol) для интеграции с Claude. Инструмент использует Ollama для создания эмбеддингов и хранит индексы локально, что делает его идеальным для поиска по документации или кодовой базе прямо из терминала.
Этот навык выполняет планы реализации, создавая нового суб-агента для каждой независимой задачи, проводя проверку кода между задачами. Он позволяет быстро итерировать, сохраняя контроль качества через этот процесс ревью. Используйте его при работе в основном с независимыми задачами в рамках одной сессии, чтобы обеспечить непрерывный прогресс со встроенными проверками качества.
Навык mcporter позволяет разработчикам управлять и вызывать серверы Model Context Protocol (MCP) напрямую из Claude. Он предоставляет команды для вывода списка доступных серверов, вызова их инструментов с аргументами, а также для обработки аутентификации и управления жизненным циклом демона. Используйте этот навык для интеграции и тестирования функциональности серверов MCP в вашем рабочем процессе разработки.
Этот навык развертывает и оркестрирует агентов Vertex AI ADK с использованием протокола A2A, управляя обнаружением AgentCard, отправкой задач и поддерживая инструменты, такие как песочница для выполнения кода и Memory Bank. Он позволяет создавать мультиагентные системы с последовательными, параллельными или циклическими схемами оркестрации на Python, Java или Go. Используйте его, когда требуется развернуть агентов ADK или оркестрировать рабочие процессы агентов в Google Cloud.
