bug-review
Skill120 starsChanged 6 days agoMITView on GitHub
Run a high-signal parallel bug review before finishing an app, feature, or PR: rely on automated checks first, then fan out vertical module and horizontal cross-cutting reviewers to eliminate bugs, leaks, state/rendering issues, inefficiencies, and code smells.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- iaintsaket/how-saket-claudestheir own version, first seen Nov 15, 2026
- BerkaySevinc/agent-toolkittheir own version, first seen Nov 1, 2026
- falcondev-oss/skillstheir own version, first seen Oct 26, 2026
- pproenca/dot-skillstheir own version, first seen Apr 12, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- pproenca/dot-skills★ 201same name
- falcondev-oss/skills★ 2same name
- iaintsaket/how-saket-claudes★ 2same name
- BerkaySevinc/agent-toolkit★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- alchemySkill
- architectSkill
- arenaSkill
- benchmark-checklistSkill
- designSkill
- principle-attack-the-premiseSkill
- principle-boundary-disciplineSkill
- principle-build-the-leverSkill
- principle-encode-lessons-in-structureSkill
- principle-exhaust-the-design-spaceSkill
- principle-experience-firstSkill
- principle-explain-the-numberSkill
- principle-fix-root-causesSkill
- principle-foundational-thinkingSkill
- principle-guard-the-context-windowSkill
- principle-laziness-protocolSkill
- principle-make-operations-idempotentSkill
- principle-migrate-callers-then-delete-legacy-apisSkill
- principle-minimize-reader-loadSkill
- principle-model-the-domainSkill
- principle-never-block-on-the-humanSkill
- principle-outcome-oriented-executionSkill
- principle-prove-it-worksSkill
- principle-redesign-from-first-principlesSkill
- principle-separate-before-serializing-shared-stateSkill
- principle-sequence-verifiable-unitsSkill
- principle-subtract-before-you-addSkill
- principle-test-behavior-not-implementationSkill
- principle-type-system-disciplineSkill
- proveSkill
- shellSkill
- syncSkill
- typescript-best-practicesSkill
- whySkill
- feedSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 6 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Run this review before declaring an application, feature, or non-trivial change done.
- Distinctive: line 9
Read AGENTS.md in full first, once per session.
- Distinctive: line 15
Never spend reviewer effort on anything tooling already catches.
- Distinctive: line 17
Run the project's automated suite first:
- Very specific: line 19
If pnpm check shows a ✗, follow the sync skill first.
- Very specific: line 56
no blank cold-route frames or broken hit-testing (elementsFromPoint) under overlays,
- Distinctive: line 60
Do not commit screenshot-comparison tests (AGENTS.md, "Tests").
- Distinctive: line 80
Keep shard notes in conversation or temporary scratch output.
- Very specific: line 89
When the same defect repeats across modules, encode the guard structurally in spec/, types, or lint config …
- Very specific: line 90
Re-run automated gates: Run pnpm check (following the sync skill if any spec changed), pnpm lint, and pnpm analyze (when defined).
- Very specific: line 91
Incremental re-review: Run a diff-scoped review over only the files modified since the Phase 0 baseline plus any contracts they touch.
- Very specific: line 92
Stop condition: Stop when automated gates are green and zero unresolved P0 or P1 findings (and zero regressions) remain.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Parallel bug review
Run this review before declaring an application, feature, or non-trivial change done. Read AGENTS.md in full first, once per session.
Formal proofs and static checks catch model, type, token, barrel, dead-code, cycle, and duplication failures. This workflow catches what sits past them: where the verified core meets React, DOM layering, VibeLang/Effect concurrency, storage, external boundaries, and runtime performance.
Phase 0: Pre-flight automated gate
Never spend reviewer effort on anything tooling already catches.
- Run the project's automated suite first:
pnpm verifywhen defined, otherwisepnpm check,pnpm lint, andpnpm analyze(when present).- If
pnpm checkshows a✗, follow the sync skill first.
- Fix every automated failure before launching reviewers.
- Record the baseline commit (
git rev-parse HEAD) so follow-up verification rounds only re-audit changed files and touched seams.
Phase 1: Choose scope and shard in parallel
Skip generated and build directories (gen/, generated/, dist/, .vibe/, .cache/, .spec-cache/, node_modules/).
- Full review (finishing an app, major milestone, or first audit): cover every active non-generated source, spec, test, and config file in the repository.
- Incremental review (default for PRs and post-fix verification rounds): collect changed files (
git diff --name-only <base>...HEADplus untracked files) together with their owningspec/modules, direct callers, and any shared runtime or UI contracts they touch.
When your harness supports parallel subagents or swarm workers, launch both axes in parallel in one turn; otherwise run the same passes in sequence without skipping either axis. Restate the user's goal in every reviewer brief, and cap each shard to ~10–40 files or ~2–5k LOC (principle-guard-the-context-window).
Axis A: Vertical module shards (disjoint partitions)
Partition active files by domain, app, or package so every file in scope is read line-by-line by exactly one vertical reviewer. Each reviewer audits these six defect classes:
- Spec ↔ shell fidelity. Unit or scale mismatches (
intseconds vs. milliseconds, debounce durations), unwired specs or events, no-op emitted effects (Effect.succeed(undefined)), swallowedRejectederrors, missing hydration from restored/synced snapshots, missing session/account reset cleanup, controls callingsend()without gating oncan(), and optimistic side-store writes that run beforeMachine.sendaccepts. - VibeLang / Effect concurrency and leaks.
Stream.callbackorFiberMapjobs missingaddFinalizer/acquireRelease(leaking listeners, watchers, or mutating state after superseding),Semaphoredeadlocks on failure or interruption, empty streams completing cleanly without notifying anInFlightmachine, missing timeouts orAbortSignalpropagation on network/bridge calls, module-level mutableMap/Set/letside-stores leaking across runtimes/tests/sessions, and TOCTOU races (issued + 1, mutable remote-sync flags). - React state, rendering, and UX. Render-time
runtime.runSync(...)or side effects, unstablekeyprops unmounting inputs mid-edit, async controlled inputs causing caret jumps or dropped keystrokes, components subscribing to many whole machines without selectors or sending at 60Hz,<Suspense fallback={null}>blank routes, unrecoverable error boundaries stuck atnull, stripped or clipped:focus-visiblerings, missingprefers-reduced-motion, borderless dark-mode floating surfaces, and interactive touch targets under 44px. - Boundaries, security, and persistence resilience. External data (HTTP, IPC, URLs, JSON, storage, env, CLI args) trusted without schema/
decodeEvent/decodeStatevalidation,localStoragequota or corrupt-JSON errors crashing viaorDieor silently resetting user data to empty, cross-originpostMessageor path-prefix (startsWithwithout separator + symlink) or plain-object prototype (obj[key]) bypasses, producer↔consumer encoding/schema mismatches (base64urlvs.base64vs. hex), and sensitive data leaking on hidden/locked views. - Runtime inefficiencies. Unconditional syncs or fetches on unrelated events, repeated
structuredClone/serialization/parser/formatter (Intl.*,RegExp) allocations in hot paths, unbounded caches or unrevokedblob:URLs, and eager imports defeating route code-splitting. - Verification honesty. Tests mocking internal application services instead of network/platform boundaries, fakes leaking real network traffic, vacuous or false-negative Bombadil properties, orphan modules tested instead of production code, or missing drivers/journeys for stateful shells.
Axis B: Horizontal cross-cutting reviewer
Launch one cross-cutting reviewer (two on very large monorepos) focused strictly on seams no single module shard can see:
- State, caching, and lifecycle architecture. How
Machinestate interacts with side-stores, persistence quotas, eviction bounds, and sign-out/reset/owner-switch isolation across the whole app. - Global UI layering, focus, and navigation. Unified
z-*stacking order across overlays, alerts, sheets, dialogs, and docks; portals vs. viewport/keyboard bounds;inert, Escape, and Back-navigation consistency. - Cross-package contracts and build/cache keys. Producer↔consumer schemas, route tables, manifests, shared runtime helpers, and Turbo/CI env or input keys that could poison caches.
Live UI verification (apps serving a web interface)
For any package with an index.html, do not rely on static reading alone (principle-prove-it-works). Confirm pnpm test:browser and pnpm check's explore stage pass, and inspect the running build across mobile/desktop viewports and light/dark themes for:
- zero uncaught page errors, console errors, or failed requests,
- no blank cold-route frames or broken hit-testing (
elementsFromPoint) under overlays, - visible, unclipped
:focus-visiblerings and legible contrast on floating surfaces, - real interactive controls responding and respecting disabled/loading states.
Do not commit screenshot-comparison tests (AGENTS.md, "Tests").
Phase 2: Evidence and severity bar
Report only verified, high-signal defects. Every finding must include:
- Severity:
P0— crash, data loss/corruption, deadlock, security/privacy bypass, broken core journey, or unusable critical UI.P1— race condition, resource/memory leak, spec↔shell mismatch, cross-session state leak, render/perf storm, or accessibility/layering break.P2— edge-case error gap, missing timeout/eviction bound, meaningful inefficiency, or concrete bug-inviting smell (silent error swallowing, duplicated business rules outsidespec/).
- Exact
file:linecitation verified by reading the code on disk. - Concrete failure path: trigger → line executed → observable user/system breakage.
- Root-cause fix (principle-fix-root-causes), never a symptom guard.
Never report:
- style preferences, bikeshedding, or requests for code comments (comments are banned by AGENTS.md, "Writing code"),
- issues already caught by
pnpm check,pnpm lint, orpnpm analyze, - hypothetical failures already ruled out by proved Quint/Dafny rules or TypeScript types.
Keep shard notes in conversation or temporary scratch output; never commit new Markdown audit documents to the repository (AGENTS.md, "Hard rules").
Phase 3: Deduplicate, fix in waves, and incrementally re-verify
- Deduplicate. Collapse overlapping vertical and horizontal findings into one canonical list, keeping the highest severity and all
file:linecitations. - Fix in non-overlapping waves.
- Wave 0 (when needed): land shared contracts, design tokens, or runtime primitives first.
- Wave 1: fix module defects in parallel on strictly disjoint file globs (principle-separate-before-serializing-shared-state).
- For each real shell bug fixed, extend the existing journey test that cites its story or rule (AGENTS.md, "Tests").
- When the same defect repeats across modules, encode the guard structurally in
spec/, types, or lint config (principle-encode-lessons-in-structure).
- Re-run automated gates. Run
pnpm check(following the sync skill if any spec changed),pnpm lint, andpnpm analyze(when defined). Turborepo and.spec-cache/skip untouched packages automatically. - Incremental re-review. Run a diff-scoped review over only the files modified since the Phase 0 baseline plus any contracts they touch. Confirm every fixed
P0/P1/P2is resolved at its root cause and introduced no regression. - Stop condition. Stop when automated gates are green and zero unresolved
P0orP1findings (and zero regressions) remain. Cap at three fix-and-reverify rounds; if an architectural tradeoff remains unresolved, stop and escalate it clearly to the user.
Report
Summarize concisely when done:
- Scope and automated gates: full vs. incremental, commands run and status.
- Findings resolved: grouped by
P0/P1/P2withfile:lineand root-cause fix. - Regression coverage: journey tests, spec rules, or structural checks added.
- Remaining or escalated items: any deferred
P2s or architectural decisions needing user input, or state explicitly that none remain.
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.

