crit / rules
Cursor rule1.2k starsChanged 2 months agoMITView on GitHub
crit — frontend js
Trending
Less talk lately.about the whole repository
Who's talking about tomasz-tomczyk/crit
- A Hacker News story“Show HN: Crit – Review AI agent work like you review PRs”Hacker News · Mar 10, 2026 · 4 points
- @greatlittlebot.bsky.social“tomasz-tomczyk / crit: Your feedback loop with the agent ★498 https://github.com/tomasz-tomczyk/crit”Bluesky · Jun 17, 2026 · 2 likes
- shuymn/dotfiles“Update dependency github:tomasz-tomczyk/crit to v0.20.1”GitHub · Sep 9, 2026 · 1 reactions
- shuymn/dotfiles“Update dependency github:tomasz-tomczyk/crit to v0.20.0”GitHub · Sep 5, 2026 · 1 reactions
- shuymn/dotfiles“Update dependency github:tomasz-tomczyk/crit to v0.19.1”GitHub · Aug 29, 2026 · 1 reactions
The biggest 5 of 50 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 50
Talked about on GitHub, Bluesky and Hacker News (50 times).
On GitHub · 46
- Sep 9, 2026Update dependency github:tomasz-tomczyk/crit to v0.20.1 — shuymn/dotfiles1 reaction · 1 comment
- Sep 5, 2026Update dependency github:tomasz-tomczyk/crit to v0.20.0 — shuymn/dotfiles1 reaction
- Aug 29, 2026Update dependency github:tomasz-tomczyk/crit to v0.19.1 — shuymn/dotfiles1 reaction
- Aug 19, 2026Update dependency github:tomasz-tomczyk/crit to v0.19.0 — shuymn/dotfiles1 reaction
- Aug 6, 2026Update dependency github:tomasz-tomczyk/crit to v0.18.4 — shuymn/dotfiles1 reaction
41 more on GitHub
- Aug 5, 2026Update dependency github:tomasz-tomczyk/crit to v0.18.3 — shuymn/dotfiles1 reaction
- Jul 31, 2026Update dependency github:tomasz-tomczyk/crit to v0.18.2 — shuymn/dotfiles1 reaction
- Jul 25, 2026chore(deps): update dependency github:tomasz-tomczyk/crit to v0.18.1 — shuymn/dotfiles1 reaction
- Mar 28, 2026Add crit - human-in-the-loop review tool for AI agent workflows — jamesmurdza/awesome-ai-devtools1 reaction
- Oct 4, 2026Add Crit to Code Review & Collaboration — eltociear/awesome-AI-driven-development0 reactions
- Oct 4, 2026agent-skills.github.tomasz-tomczyk.crit: 0.20.2 → 0.21.1 — sudosubin/agents.nix0 reactions
- Oct 3, 2026Update dependency github:tomasz-tomczyk/crit to v0.21.1 — shuymn/dotfiles0 reactions · 1 comment
- Oct 3, 2026agent-skills.github.tomasz-tomczyk.crit: init at 0.20.2 — sudosubin/agents.nix0 reactions
- Oct 2, 2026crit 0.21.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Sep 29, 2026Update dependency github:tomasz-tomczyk/crit to v0.21.0 — shuymn/dotfiles0 reactions · 1 comment
- Sep 29, 2026chore(deps): bump the flake-inputs group across 1 directory with 8 updates — yktsnet/dotfiles-public0 reactions
- Sep 28, 2026fix: port release audit parity fixes from crit — tomasz-tomczyk/crit-web0 reactions · 1 comment
- Sep 28, 2026fix: handle highlight worker startup rejection — tomasz-tomczyk/crit-web0 reactions · 1 comment
- Sep 24, 2026crit 0.20.3 — Homebrew/homebrew-core0 reactions · 1 comment
- Sep 8, 2026crit 0.20.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Sep 7, 2026chore(deps): update crit to v0.21.1 — ryo246912/dotfiles0 reactions
- Sep 5, 2026ux: left-anchor content when the file tree collapses — bewa1t/crit0 reactions
- Sep 4, 2026crit 0.20.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 28, 2026crit 0.19.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 18, 2026crit 0.19.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 17, 2026fix: render markdown tables with native layout — tomasz-tomczyk/crit-web0 reactions · 1 comment
- Aug 15, 2026fix: render Markdown YAML frontmatter as a highlighted block — tomasz-tomczyk/crit-web0 reactions · 1 comment
- Aug 9, 2026chore: rename module path to github.com/sho-hata/crit — sho-hata/crit0 reactions
- Aug 5, 2026crit 0.18.4 — Homebrew/homebrew-core0 reactions · 1 comment
- Aug 4, 2026crit 0.18.3 — Homebrew/homebrew-core0 reactions · 1 comment
- Jul 31, 2026fix: skip hidden resolved comments during navigation — tomasz-tomczyk/crit-web0 reactions · 1 comment
- Jul 29, 2026crit 0.18.2 — Homebrew/homebrew-core0 reactions · 1 comment
- Jul 23, 2026fix: use correct go install path with /cmd/crit — tomasz-tomczyk/crit-web0 reactions · 1 comment
- Jul 17, 2026crit 0.18.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Jul 10, 2026crit 0.18.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Jul 3, 2026crit 0.17.1 — Homebrew/homebrew-core0 reactions · 1 comment
- Jul 1, 2026crit 0.17.0 — Homebrew/homebrew-core0 reactions · 1 comment
- Jun 22, 2026crit 0.16.5 — Homebrew/homebrew-core0 reactions · 1 comment
- Jun 22, 2026crit 0.16.4 — Homebrew/homebrew-core0 reactions · 1 comment
- Jun 17, 2026crit 0.16.3 — Homebrew/homebrew-core0 reactions · 1 comment
- Jun 12, 2026suggestion: Add crit to the review tools — ai-for-developers/awesome-ai-coding-tools0 reactions
- Jun 9, 2026crit 0.16.2 — Homebrew/homebrew-core0 reactions · 1 comment
- Jun 9, 2026Submission: Crit — travisvn/awesome-claude-skills0 reactions
- Jun 4, 2026crit 0.16.1 — Homebrew/homebrew-core0 reactions · 1 comment
- May 7, 2026[Resource]: Crit — hesreallyhim/awesome-claude-code0 reactions · 1 comment
- Apr 8, 2026I vibe-planned a ui for chunk yesterday - maybe crit is further along? — chrismo/mta0 reactions · 1 comment
On Bluesky · 3
- Jun 17, 2026tomasz-tomczyk / crit: Your feedback loop with the agent ★498 https://github.com/tomasz-tomczyk/crit — @greatlittlebot.bsky.social2 likes and reposts
- Jul 28, 2026AIエージェントの成果物やコード変更に対してPR感覚でインラインコメントを残せるツールっぽい 開発のフィードバックループを回すのにすごく便利そう yug1224 starred tomasz-tomczyk/crit… — @yug1224.com1 likes and repost
- Jun 5, 2026It's at crit.md and repo + full docs at github.com/tomasz-tomcz... — @tomasztomczyk.bsky.social1 likes and repost
On Hacker News · 1
- Mar 10, 2026Show HN: Crit – Review AI agent work like you review PRs4 points · 1 comment
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- scripts/CLAUDE.mdCLAUDE.md
- .cursor/rules/frontend-architecture.mdcCursor rule
- .cursor/rules/frontend-css.mdcCursor rule
- .cursor/rules/go.mdcCursor rule
- .cursor/rules/proxy-auth-transport.mdcCursor rule
The file
We split this frontend-js.mdc into the rules it gives an agent
9 rules. About 0 are common, 2 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use addEventListener, not inline onclick handlers in new code.
- Very specific: line 14
When async operations can be triggered from multiple sources, add dedup guards (e.g., reloadInFlight promise pattern).
- Distinctive: line 16
When implementing UI state logic that counts comments, account for ALL comment types (file-scoped AND review-level).
- Very specific: line 19
Use cookies for any setting that should persist across crit invocations.
- Very specific: line 25
Always check response.ok after fetch() calls.
- Distinctive: line 26
Every async operation must have error recovery that restores interactivity (re-attach listeners, undo optimistic UI).
- Very specific: line 27
Never call .remove() directly on elements with CSS exit animations.
- Very specific: line 30
Never call .blur() on interactive elements — it breaks keyboard navigation.
- Very specific: line 33
When an SSE event signals a specific data change (e.g., comments-changed), only re-fetch that data — not everything.
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
--- description: crit — frontend js globs: web/app.js,web/*.js alwaysApply: false --- # Frontend JS Rules (semantic — ESLint handles syntax/style) ## DOM & Events - Use `addEventListener`, not inline `onclick` handlers in new code. - Cache repeated DOM queries into const variables. ## State Management - When async operations can be triggered from multiple sources, add dedup guards (e.g., `reloadInFlight` promise pattern). - Reset ALL navigation/UI state when context changes (scope change, session reload, comment delete). - When implementing UI state logic that counts comments, account for ALL comment types (file-scoped AND review-level). ## Persisted Settings (cookies, not localStorage) - Use cookies for any setting that should persist across `crit` invocations. Crit defaults to a random port (`port=0`), and localStorage is scoped per origin (scheme + host + **port**), so localStorage settings reset every run. Cookies are host-scoped and survive port changes. - Persisted settings live in a single `crit-settings` JSON cookie via `getSetting(key, fallback)` / `setSetting(key, value)`. The exception is `crit-templates`, which stays in its own cookie because it's user-defined and can be longer. - localStorage is fine for transient per-session data (e.g., `crit-draft-*` autosave keys that are review-specific anyway). - Before adding persistence to a setting, ask whether it should be sticky. Transient view state (active filter, sort order on a list) usually shouldn't be — users coming back to a new review with "resolved-only" active would miss new open comments. Persist preferences (theme, width, hide-resolved), not transient views. ## Error Handling - Always check `response.ok` after `fetch()` calls. Throw on unexpected statuses. - Every async operation must have error recovery that restores interactivity (re-attach listeners, undo optimistic UI). - Never call `.remove()` directly on elements with CSS exit animations. Use class toggle + animationend listener. ## Accessibility (axe-core in E2E catches missing aria-labels, dialog roles, tab roles) - Never call `.blur()` on interactive elements — it breaks keyboard navigation. axe-core catches the effect (no focus indicator) but not the cause. ## SSE Events - When an SSE event signals a specific data change (e.g., `comments-changed`), only re-fetch that data — not everything.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

