SKILL·16054E

crit

tomasz-tomczyk
更新于 4 days ago
1,203
97
1,203
在 GitHub 上查看
开发general

关于

The Crit skill provides structured code reviews with inline comments for changes, plans, or live pages, but only activates when explicitly invoked via `/crit` or direct request. It automatically detects review targets like files, directories, URLs, or PRs without requiring mode selection. Developers use it for interactive browser-based review cycles that deliver human-like feedback on their code.

快速安装

Claude Code

推荐
主要方式
npx skills add tomasz-tomczyk/crit -a claude-code
插件命令备选方式
/plugin add https://github.com/tomasz-tomczyk/crit
Git 克隆备选方式
git clone https://github.com/tomasz-tomczyk/crit.git ~/.claude/skills/crit

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

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.

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:

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:

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:

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:

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.

GitHub 仓库

tomasz-tomczyk/crit
路径: integrations/omo/skills/crit
0
agentic-codingai-agentsai-toolsclicode-reviewdeveloper-tools
FAQ

常见问题

什么是 crit Skill?

crit 是一个 Claude Skill,作者为 tomasz-tomczyk。Skill 将 Claude 按需加载的说明和资源打包,让 Claude 无需额外提示即可执行与 crit 相关的任务。

如何安装 crit?

使用本页的安装命令:将 crit 作为插件添加到 Claude Code,或将其仓库克隆到 skills 目录,然后重启 Claude 以加载该 Skill。

crit 属于哪个分类?

crit 属于开发分类。

crit 可以免费使用吗?

可以。crit 已收录在 AIMCP,可免费安装。

相关推荐技能

qmd
开发

这是一个本地搜索和索引的CLI工具,支持BM25、向量搜索和重排序功能。开发者可以用它快速索引本地文件(如Markdown文档)并进行混合搜索,特别适合代码库或文档的本地检索。它还提供MCP模式,能轻松集成到Claude开发环境中使用。

查看技能
subagent-driven-development
开发

该Skill用于在当前会话中执行包含独立任务的实施计划,它会为每个任务分派一个全新的子代理并在任务间进行代码审查。这种"全新子代理+任务间审查"的模式既能保障代码质量,又能实现快速迭代。适合需要在当前会话中连续执行独立任务,并希望在每个任务后都有质量把关的开发场景。

查看技能
mcporter
开发

mcporter Skill 让开发者能在Claude中直接管理和调用MCP服务器。它支持列出可用服务器、调用工具、处理OAuth认证以及管理服务器守护进程。开发者可以通过命令行式交互快速执行`mcporter list`查看服务器,或使用`mcporter call`直接调用工具,简化了MCP工作流程。

查看技能
adk-deployment-specialist
开发

这是一个用于部署和编排Google Vertex AI ADK智能体的Claude Skill,专为构建生产级多智能体系统而设计。它支持通过A2A协议进行智能体通信,提供代码执行沙箱和记忆库功能,并能处理智能体发现与任务提交。当开发者需要部署ADK智能体或编排多智能体协作时,可使用此Skill来简化Vertex AI Agent Engine的部署流程。

查看技能