GitHub

/rules

All rules

87 rules across 8 skills. Each one says what to look for in code and where it can be verified.

RuleWhat it checksLook forVerify onSeverity
DN-01No hand cursor on in-app controlscursor: pointer, cursor-pointer on buttons, rows, tabscodeHigh
DN-02No I-beam over labels and chrome textno global cursor: default on the app shellcodeLow
DN-03Chrome is not selectabledrag-select across sidebar/toolbar highlights it; no user-select: none on chromecodeMedium
DN-04Content stays selectableblanket user-select: none with no opt-in for errors, IDs, logs, table cellscodeHigh
DN-05No drag ghost on images and icons<img> / <svg> without draggable="false" or -webkit-user-drag: nonecodeLow
DN-06No browser context menu in productionno contextmenu handler; a handler that blocks inputs too; a guard gated on import.meta.env.PROD instead of the shell (breaks a browser build, or takes the menu away in development)codeeach OSHigh
DN-07Page zoom is off or deliberatezoomHotkeysEnabled: true without zoom UIcodeLow
DN-08No browser reload/print/find keys in productionno keydown guard for ⌘R/F5/⌘P; Windows browserAcceleratorKeys unset; Electron Reload/DevTools menu roles in packaged builds; a guard gated on import.meta.env.PROD instead of the shell's release flagWindowsmacOSMedium
DN-09The window never rubber-bands as a wholepage-level scroll; no overscroll-behavior on the rootmacOSHigh
DN-10Content panels may bounce, chrome may notinner scrollers with overscroll-behavior: none everywheremacOSMedium
DN-11One scroll owner per regionnested overflow: auto on root + page; 100vh inside a scrollercodeMedium
DN-12Focus ring only for keyboard focus:focus { outline } instead of :focus-visible; outline: none with no replacementcodeMedium
DN-13No white flash on launchwindow visible default true; no backgroundColor matching the themeeach OSHigh
DN-14External links open in the system browser<a href="http…"> with no navigation guardcodeeach OSHigh
DN-15No spellcheck/autocorrect in code-like fieldsinputs for paths, commands, IDs without spellcheck={false}codeLow
DN-16No browser autofill on app fieldsinputs without autoComplete="off"; Windows without generalAutofillEnabled: falseWindowsLow
DN-17Native controls follow the themeno color-scheme on html / dark classcodeMedium
DN-18Inactive window looks inactiveno focus listener; selection/accent unchanged when unfocusedeach OSLow
DN-19In-app navigation doesn't look like web linksunderlined <a> for in-app routes; link hover underline in chromecodeLow
DN-20No link previews on force-clickmacOS window without allowLinkPreview: falsemacOSMedium
DN-21Fluent scrollbars on Windows 11no scrollBarStyle: "fluentOverlay"; heavy ::-webkit-scrollbar restyling insteadWindows 11Low
DN-22No browser dialogsalert(, confirm(, prompt(codeMedium
DN-23Dropping a file never navigates the windowno document-level dragover/drop guard; Electron without will-navigate; Tauri with dragDropEnabled: falseeach OSHigh
WC-01Title bar strategy is chosen per OSdecorations: false applied to every platformcodeLow
WC-02A frameless window can be draggeddecorations: false / Overlay with no data-tauri-drag-region or startDragging; missing core:window:allow-start-draggingeach OSHigh
WC-03Controls inside a drag region still workbuttons/inputs nested in a drag region element without opting outeach OSLow
WC-04Traffic lights align with the toolbarOverlay with no trafficLightPosition and no left padding for the buttonsmacOSMedium
WC-05No empty traffic-light gutter in fullscreenfixed left padding regardless of fullscreen statemacOSLow
WC-06Custom Windows caption buttons keep Snap Layouts or the loss is deliberateHTML min/max/close buttons on Windows, no snap-layout pluginWindows 11High
WC-07Overlay windows can't be dragged while unfocused — known Tauri limitationtitleBarStyle: "Overlay"macOSLow
WC-08Materials come from the OS, not CSSlarge backdrop-filter: blur() on window background / sidebareach OSMedium
WC-09Transparent windows are actually transparenttransparent: true with opaque html or body; macOS without macOSPrivateApimacOSWindowsLow
WC-10Window has a minimum size that fits the layoutno minWidth / minHeightcodeMedium
WC-11Window size and position are rememberedno window-state plugin or equivalenteach OSLow
WC-12Native title bar follows the app themein-app theme toggle without setTheme on the windoweach OSMedium
WC-13First click on an inactive window is a decisionacceptFirstMouse unset on a tool-palette style windowmacOSLow
WC-14Double-click on a custom title bar maximizes/zoomscustom title bar without double-click handlingeach OSLow
WC-15Frameless Windows windows keep shadow and cornersdecorations: false with shadow: falseWindowsLow
DD-01Controls are desktop heighth-9, h-10, py-2 buttons and inputs everywherecodeMedium
DD-02System font unless branding requires otherwiseweb font as the only font-familycodeLow
DD-03Body text at desktop sizetext-base / 16px body, text-sm as the smallest UI textcodeLow
DD-04Lists show selection, not just hoverrows with hover: background and no selected statecodeLow
DD-05Changing numbers don't jittercounters, timers, tables without tabular-numscodeLow
DD-06Mobile rules don't leak into desktop16px input rule, 44px touch targets, touch-action on desktop-only UIcodeLow
DD-07Panels and separators over floating cardspage built from rounded-xl shadow cardscodeLow
DK-01Use the platform modifier, not bothmetaKey || ctrlKey for the same shortcutcodeMedium
DK-02Shortcut labels match the platformhard-coded Ctrl+ or ⌘ in UI stringscodeLow
DK-03Escape closes, Enter confirms the defaultdialogs/popovers without Escape; forms without a default buttoncodeLow
DK-04Standard shortcuts existno ⌘, / ⌘W / ⌘N / ⌘Q (macOS) or Ctrl equivalentscodeLow
DK-05Lists are keyboard navigablecustom lists without arrow keys, Home/End, roving tabindexcodeLow
DK-06Shortcuts don't fire while typingglobal keydown without an editable-target checkcodeMedium
DK-07Global shortcuts don't collideglobal-shortcut registrations overlapping menu accelerators or OS shortcutseach OSLow
NM-01A custom app menu keeps the Edit menucustom menu without Cut/Copy/Paste/Select All predefined itemsmacOSHigh
NM-02The app menu has About, Settings, Hide, QuitmacOS app menu missing standard itemsmacOSLow
NM-03Native vs web context menu is a deliberate choicemixed: native in some places, web in others, for the same kind of targeteach OSLow
NM-04Destructive menu items come last, separatedDelete/Remove in the middle of a menucodeLow
NM-05Accelerators shown in menus match the handlersaccelerator in menu and a separate keydown handler with a different keycodeLow
NM-06macOS tray icon is a template imagecolored tray icon on macOSmacOSLow
DI-01Second launch focuses the running windowno single-instance plugineach OSHigh
DI-02Deep links and opened files reach the running instancedeep-link without the single-instance deep-link feature; fileAssociations with no argument handlingWindowsLinuxMedium
DI-03Unsaved changes survive close and quitdirty state with no onCloseRequested; predefined Quit item in an app with unsaved stateeach OSHigh
DI-04Pending items on the dock/taskbar badgeunread/pending counts only rendered in the UIeach OSLow
DI-05Long work shows on the taskbar/docklong exports/syncs with no setProgressBarWindowsmacOSLow
DI-06Files can be dragged outfile lists with HTML draggable only, no native drageach OSLow
DI-07Native notifications in the background onlyrequestPermission at startup; sendNotification without a focus checkeach OSMedium
DI-08Document windows show the documentdocument app with a static window titleeach OSLow
DI-09Launch at login is opt-inautostart enable() outside a settings toggleeach OSMedium
DI-10Updates wait for the userinstall() / relaunch() without user action; modal update prompteach OSMedium
PC-01Dialog button order follows the OSone hard-coded order for all platformscodeLow
PC-02Settings live where the OS puts themno ⌘, on macOS; "Preferences" naming on current macOScodeLow
PC-03Closing the last window follows the OSapp quits on macOS window close for a multi-document app, or keeps running on Windowseach OSLow
PC-04Font stack covers each OSstack without system-ui / Segoe UI Variable / Linux fallbackscodeLow
PC-05Modifier symbols per OS⌘⌥⇧ shown on Windows/Linux, or Ctrl+Alt on macOScodeLow
PC-06Window controls sit on the OS sidecustom caption buttons on the left on Windows, or right on macOScodeLow
WQ-01Tested in every engine, not just Chromeno test plan for WKWebView / WebKitGTKeach OSLow
WQ-02Blur and filters are cheap on Linuxfilter: blur, backdrop-filter, filter animationsLinuxLow
WQ-03Linux rendering issues have a documented workaroundblank window or crash on Linux with DMABUFLinuxLow
WQ-04HTML5 drag and drop works on WindowsHTML5 DnD in UI with dragDropEnabled left onWindowsLow
WQ-05Background work survives hidden windowstimers/animations that must run while hidden; reliance on backgroundThrottling (macOS only)each OSLow
WQ-06Newer web APIs are feature-detectedAPIs Safari ships late, used without @supports / in checksmacOSLow
WQ-07No browser globals at module scopewindow, document, @tauri-apps/api imported/used at module top level in SSG frameworkscodeLow
WQ-08No server features in a static bundleSSR, API routes, next/image optimization, ISRcodeLow
WQ-09The URL the shell loads in development is fixedthe server behind Tauri devUrl or Electron loadURL without strictPort; a dev server the shell never loads doesn't countcodeLow
WQ-10Dev watcher ignores the Rust buildVite/Astro watcher not ignoring src-tauri/targetcodeLow
WQ-11Window state comes from the shell, not web guessesdocument.hasFocus(), screen.*, devicePixelRatio used for window decisionscodeLow
WQ-12Custom browser arguments keep WebView2's defaultsadditionalBrowserArgs without msWebOOUI,msPdfOOUI,msSmartScreenProtectioncodeMedium
WQ-13Dark mode works on Linuxtheme only from prefers-color-scheme; no in-app theme settingLinuxMedium