crit
À propos
La compétence `crit` fournit des revues de code structurées avec des commentaires en ligne pour les modifications de code, les plans, les pages web en direct ou les fichiers HTML locaux. Elle détecte automatiquement les modes de révision à partir d'arguments tels que des fichiers, des répertoires, des URL ou des PR GitHub. Utilisez-la lorsque vous avez besoin de retours similaires à ceux d'un humain sur des diffs de code, des applications en cours d'exécution ou du travail de développement.
Installation rapide
Claude Code
Recommandé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/critCopiez et collez cette commande dans Claude Code pour installer cette compétence
Documentation
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)
If the user wants to open the review from another device — e.g. a phone over Tailscale:
Keep crit on loopback and reverse-proxy in. Same Step 1 args still apply (file, bare crit, etc.):
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.
Step 2: Launch crit and block until review completes
CRITICAL — you MUST run this step. Do NOT skip it. Do NOT proceed without it.
Run crit in the foreground and block 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 foreground command to finish — that is how you know the human is done reviewing.
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 'Qwen' '<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.
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 'Qwen'
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 crit 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>
Dépôt GitHub
Questions fréquentes
Qu’est-ce que le Skill crit ?
crit est un Skill Claude créé par tomasz-tomczyk. Un Skill regroupe des instructions et des ressources que Claude charge à la demande pour effectuer des tâches liées à crit sans consigne supplémentaire.
Comment installer crit ?
Utilisez les commandes d’installation de cette page : ajoutez crit à Claude Code comme plugin ou clonez son dépôt dans votre dossier skills, puis redémarrez Claude pour charger le Skill.
À quelle catégorie appartient crit ?
crit appartient à la catégorie Développement.
crit est-il gratuit ?
Oui. crit est référencé sur AIMCP et son installation est gratuite.
Compétences associées
qmd est un outil CLI de recherche et d'indexation locale qui permet aux développeurs d'indexer et de rechercher dans des fichiers locaux en utilisant une recherche hybride combinant BM25, des embeddings vectoriels et du reranking. Il prend en charge à la fois une utilisation en ligne de commande et un mode MCP (Model Context Protocol) pour l'intégration avec Claude. L'outil utilise Ollama pour les embeddings et stocke les index localement, ce qui le rend idéal pour rechercher dans de la documentation ou des bases de code directement depuis le terminal.
Cette compétence exécute des plans de mise en œuvre en déployant un nouveau sous-agent pour chaque tâche indépendante, avec une revue de code entre les tâches. Elle permet une itération rapide tout en maintenant des contrôles de qualité grâce à ce processus de revue. Utilisez-la lorsque vous travaillez sur des tâches principalement indépendantes au sein d'une même session pour assurer une progression continue avec des vérifications de qualité intégrées.
La compétence mcporter permet aux développeurs de gérer et d'appeler des serveurs Model Context Protocol (MCP) directement depuis Claude. Elle fournit des commandes pour lister les serveurs disponibles, appeler leurs outils avec des arguments, et gérer l'authentification ainsi que le cycle de vie du démon. Utilisez cette compétence pour intégrer et tester les fonctionnalités des serveurs MCP dans votre flux de travail de développement.
Cette compétence déploie et orchestre des agents Vertex AI ADK en utilisant le protocole A2A, gérant la découverte d'AgentCard, la soumission de tâches, et prenant en charge des outils tels que le bac à sable d'exécution de code et la banque de mémoire. Elle permet de construire des systèmes multi-agents avec des modèles d'orchestration séquentiels, parallèles ou en boucle en Python, Java ou Go. Utilisez-la lorsqu'on vous demande de déployer des agents ADK ou d'orchestrer des flux de travail d'agents sur Google Cloud.
