No slash command · from crit
Authors and syncs crit inline comments programmatically across files, plans, and proposals. Covers crit comment, share, unpublish, pull, push, and review file format for multi-agent workflows.
Ships in crit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
If a plan was just written and the user said
/critorcrit, invoke the/critcommand — do not use this reference skill. This skill covers CLI operations likecrit comment,crit pull/push, andcrit share.
Comments have three scopes:
scope: "line") — tied to specific lines, stored in files.<path>.commentsscope: "file") — about a file overall, stored in files.<path>.comments with start_line: 0scope: "review") — general feedback, stored in the top-level review_comments arrayThe review file path is shown by crit status.
When crit completes a review round, read stdout and follow its instructions. Unresolved comments are often embedded in that prompt as JSON. Check stderr for approved: true or approved: false.
When you need to read comments separately:
crit comments # human-readable, unresolved only (default)
crit comments --json # flat JSON for agents
crit comments --all # include resolved comments
crit comments --plan <slug> # plan reviews
crit comments [path] # explicit review.json or .crit directory
Review-level comments are listed first — easy to miss in raw review.json. Uses the same review resolution as crit comment (--output, --plan, daemon session).
When more than one review session matches the current directory and branch, headless commands (crit comment, crit comments, crit share, crit push, crit pull) refuse to guess. Run crit status (or crit status --json) to list every active session, then target the intended review with --session <id>:
crit comment --session <id> --author <name> <path>:<line> <body>
crit comment --session <id> --json --file comments.json --author <name>
crit comments --session <id>
crit share --session <id> <file>
crit push --session <id>
crit pull --session <id>
The JSON status output exposes the candidates in sessions.
{
"review_comments": [
{
"id": "r_f1e2d3",
"body": "Overall the architecture looks good",
"scope": "review",
"author": "User Name",
"resolved": false,
"replies": [
{ "id": "rp_b4a5c6", "body": "Thanks, addressed the minor issues", "author": "Claude" }
]
}
],
"files": {
"path/to/file.go": {
"comments": [
{
"id": "c_a1b2c3",
"start_line": 5,
"end_line": 10,
"body": "Comment text",
"quote": "the specific words selected",
"anchor": "The sessions table needs a complete rewrite...",
"author": "User Name",
"resolved": false,
"replies": [
{ "id": "rp_c7d8e9", "body": "Fixed by extracting to helper", "author": "Claude" }
]
}
]
}
}
}
Field rules:
resolved: false or missing — both mean unresolved. Only true means resolved.quote (optional): the specific text the reviewer selected — narrows scope within the line range. Focus changes on the quoted text rather than the entire range.anchor (line comments): full text of the commented lines when placed. When edits shift line numbers, locate content by anchor rather than trusting start_line/end_line.drifted: true: original content was removed or heavily rewritten — line numbers are approximate at best.replies — read them before acting.
# Review-level (general feedback)
crit comment --author 'Claude Code' '<body>'
# File-level (whole file, no line numbers)
crit comment --author 'Claude Code' <path> '<body>'
# Line (single line or range)
crit comment --author 'Claude Code' <path>:<line> '<body>'
crit comment --author 'Claude Code' <path>:<start>-<end> '<body>'
# DOM pin (live review or HTML preview). File:line is rejected there.
crit comment --author 'Claude Code' --selector '<css>' '<body>'
crit comment --author 'Claude Code' --selector '<css>' --route <path> '<body>'
# Reply to an existing comment
crit comment --reply-to <id> --author 'Claude Code' '<body>'
Hard rules:
--author 'Claude Code' (or your agent name) so comments are attributed correctly.--resolve when the user explicitly asks. Never resolve proactively.<path>:<line>. Pin with --selector <css>. --route is the page path (default / for live, /preview-content for preview). In --json, use "selector" and "route".
Use --json for atomicity (single write, no partial state) and speed (one process). Two ways to feed the JSON:
# Short, single-line bodies — pipe via stdin:
echo '[
{"body": "overall feedback", "scope": "review"},
{"path": "session.go", "body": "restructure", "scope": "file"},
{"file": "src/auth.go", "line": 42, "body": "Missing null check"},
{"file": "src/auth.go", "line": "50-55", "body": "Extract to helper"},
{"reply_to": "c_a1b2c3", "body": "Fixed — added null check"},
{"reply_to": "r_f1e2d3", "body": "Done"}
]' | crit comment --json --author 'Claude Code'
Prefer --file <path> for any multi-paragraph body. Shell-quoted JSON breaks the moment a "body" string contains a raw newline — JSON forbids them, and the shell happily passes them through. Use the Write tool to author the JSON to a temp file, then point crit at it:
# After Write-ing /tmp/replies.json:
crit comment --json --file /tmp/replies.json --author 'Claude Code'
--file - reads stdin (same as omitting the flag).
Per-entry schema:
| Field | Type | Required | Notes |
|---|---|---|---|
file / path | string | line/file comments | Relative path. path alone (no line) → file-level. |
line | int/string | line comments | 42 or "45-47" |
end_line | int | optional | Defaults to line |
body | string | always | |
author | string | optional | Per-entry override; falls back to --author |
scope | string | optional | "review" / "file" — usually inferred |
reply_to | string | replies | Comment ID (c_… or r_…) |
resolve | bool | optional | Only when user explicitly asks |
quote | string | optional | Line comments only: the exact text the comment is about, when it is part of the lines |
quote_offset | int | optional | Where quote starts in the lines' text, whitespace collapsed (as the web UI records it); needs quote |
Scope inference (when scope omitted): has reply_to → reply; no file/path and no line → review-level; path but no line → file-level; file/path + line → line.
crit comment --reply-to c_a1b2c3 --path src/auth.go --author 'Claude Code' 'Fixed the null check'
In --json mode, set the file field on the entry. Review-level IDs (r_…) are globally unique and never need this.
crit comment --plan my-plan-2026-03-23 --reply-to c_a1b2c3 --author 'Claude Code' 'Updated the plan'
crit pull [number|url] # Fetch PR/MR review comments into the review file
crit push [--dry-run] [--event <type>] [-m <msg>] [n] # Post review comments to a PR/MR
crit push --viewed [n] # Also tick files marked viewed on the GitHub PR
crit pull --viewed [n] # Also fetch files ticked viewed on the GitHub PR
crit pull --forge gitlab 42 # Force GitLab when auto-detect is ambiguous
Requires gh (GitHub) or glab (GitLab) installed and authenticated. Change number is auto-detected from the current branch when possible. Set "forge" / "gitlab_url" in config for self-managed hosts, or pass --forge.
--event values: comment (default), approve, request-changes. -m adds a review-level body message.
crit share <file> [file...] # Upload and print URL
crit share --share-url <url> <file> # Target a specific Crit deployment
crit share --qr <file> # Also print QR code (terminal only)
crit share --org <slug> <file> # Share under an organization
crit share --org <slug> --visibility unlisted <file> # Org share with explicit visibility
crit unpublish [file...] # Remove shared review
crit unpublish --share-url <url> [file...] # Unpublish from a specific deployment
--qr is terminal-only — skip in mobile apps, web chat UIs, or anywhere Unicode block characters won't render correctly.--org <slug> shares under an organization. Visibility defaults to organization (members only). Override with --visibility (organization, unlisted, public).--share-url selects among configured share_targets (or overrides for one invocation). Required when multiple targets are configured and none is marked default. Empty CRIT_SHARE_URL= disables sharing for the process.--share-url.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
crit, code-review, inline-comments, multi-agent, review-sync
3 skills in this plugin
/critReview 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./crit-storyAuthor a crit story and continue the interactive review loop only when the user explicitly invokes /crit-story or directly asks you to generate a crit story. Do not infer this skill from generic review, PR, or diff-review requests.npx claudepluginhub tomasz-tomczyk/crit --plugin critOther plugins' skills for the same job