| name | critique |
| description | Git diff viewer. Renders diffs as web pages, images, and PDFs with syntax highlighting. Use this skill when working with critique for showing diffs, generating diff URLs, or selective hunk staging.
|
critique
Git diff viewer that renders diffs as web pages, images, and PDFs with syntax highlighting.
Agents running in headless environments (kimaki on Discord, openclaw on Slack/Telegram) have no terminal to show diffs. critique uploads diffs to critique.work and returns a shareable URL you can paste into chat. Users click the link and see a syntax-highlighted split-view diff with mobile support and dark/light mode — no install needed.
Always run critique --help first to see the latest flags and commands. The help output is the source of truth.
Web — shareable diff URLs
Always pass a title to describe what the diff contains.
critique --web "Add retry logic to database connections"
critique --staged --web "Refactor auth middleware"
critique main...HEAD --web "Feature branch changes"
critique main...feature-branch --web "Compare branches"
critique HEAD~3 --web "Recent changes"
critique --commit HEAD --web "Latest commit"
critique --commit abc1234 --web "Fix race condition"
critique --web "API changes" --filter "src/api.ts" --filter "src/utils.ts"
critique --web "Deploy changes" --json
Share the returned URL with the user so they can see the diff.
PDF
critique --pdf
critique --staged --pdf
critique main...HEAD --pdf
critique --commit HEAD --pdf
critique --pdf output.pdf
critique --pdf --pdf-page-size a4-portrait
critique main...HEAD --pdf --open
Image
critique --image
critique main...HEAD --image
Selective hunk staging
When multiple agents work on the same repo, each agent should only commit its own changes. critique hunks lets you stage individual hunks instead of whole files — like a scriptable git add -p.
critique hunks list
critique hunks list --filter "src/**/*.ts"
critique hunks add 'src/main.ts:@-10,6+10,7'
critique hunks add 'src/main.ts:@-10,6+10,7' 'src/utils.ts:@-5,3+5,4'
Hunk ID format: file:@-oldStart,oldLines+newStart,newLines — derived from the @@ diff header, stable across runs.
Typical workflow:
critique hunks list
critique hunks add 'file:@-10,6+10,7'
git commit -m "your changes"
Raw patch access
Every --web upload also stores the raw unified diff. Append .patch to any critique URL to get it:
curl https://critique.work/v/<id>.patch
curl -s https://critique.work/v/<id>.patch | git apply
curl -s https://critique.work/v/<id>.patch | git apply --reverse
Useful when an agent shares a critique URL and you want to programmatically apply or revert those changes.
Notes
- Requires Bun — use
bunx critique or global critique
- Lock files and diffs >6000 lines are auto-hidden
--web URLs expire after 7 days (content-hashed, same diff = same URL)