----|----------|--------|----------|
| 1 | Animation Principles | CRITICAL | timing-, physics-, staging- |
| 2 | Timing Functions | HIGH | spring-, easing-, duration-, none- |
| 3 | Exit Animations | HIGH | exit-, presence-, mode-, nested- |
| 4 | CSS Pseudo Elements | MEDIUM | pseudo-, transition-, native- |
| 5 | Audio Feedback | MEDIUM | a11y-, appropriate-, impl-, weight- |
| 6 | Sound Synthesis | MEDIUM | context-, envelope-, design-, param- |
| 7 | Morphing Icons | LOW | morphing- |
| 8 | Container Animation | MEDIUM | container- |
| 9 | Laws of UX | HIGH | ux- |
| 10 | Predictive Prefetching | MEDIUM | prefetch- |
| 11 | Typography | MEDIUM | type- |
| 12 | Visual Design | HIGH | visual- |
Quick Reference
1. Animation Principles (CRITICAL)
timing-under-300ms - User animations must complete within 300ms
timing-consistent - Similar elements use identical timing values
timing-no-entrance-context-menu - Context menus: no entrance animation, exit only
easing-natural-decay - Use exponential ramps for natural decay, not linear
easing-no-linear-motion - Linear easing only for progress indicators
physics-active-state - Interactive elements need :active scale transform
physics-subtle-deformation - Squash/stretch in 0.95-1.05 range
physics-spring-for-overshoot - Springs for overshoot-and-settle, not easing
physics-no-excessive-stagger - Stagger delays under 50ms per item
staging-one-focal-point - One prominent animation at a time
staging-dim-background - Dim modal/dialog backgrounds
staging-z-index-hierarchy - Animated elements respect z-index layers
2. Timing Functions (HIGH)
spring-for-gestures - Gesture-driven motion (drag, flick) must use springs
spring-for-interruptible - Interruptible motion must use springs
spring-preserves-velocity - Springs preserve input energy on release
spring-params-balanced - Avoid excessive oscillation in spring params
easing-for-state-change - System state changes use easing curves
easing-entrance-ease-out - Entrances use ease-out
easing-exit-ease-in - Exits use ease-in
easing-transition-ease-in-out - View transitions use ease-in-out
easing-linear-only-progress - Linear only for progress/time representation
duration-press-hover - Press/hover: 120-180ms
duration-small-state - Small state changes: 180-260ms
duration-max-300ms - User-initiated max 300ms
duration-shorten-before-curve - Fix slow feel with shorter duration, not curve
none-high-frequency - No animation for high-frequency interactions
none-keyboard-navigation - Keyboard navigation instant, no animation
none-context-menu-entrance - Context menus: no entrance, exit only
3. Exit Animations (HIGH)
exit-requires-wrapper - Conditional motion elements need AnimatePresence wrapper
exit-prop-required - Elements in AnimatePresence need exit prop
exit-key-required - Dynamic lists need unique keys, not index
exit-matches-initial - Exit mirrors initial for symmetry
presence-hook-in-child - useIsPresent in child, not parent
presence-safe-to-remove - Call safeToRemove after async cleanup
presence-disable-interactions - Disable interactions on exiting elements
mode-wait-doubles-duration - Mode "wait" doubles duration; halve timing
mode-sync-layout-conflict - Mode "sync" causes layout conflicts
mode-pop-layout-for-lists - Use popLayout for list reordering
nested-propagate-required - Nested AnimatePresence needs propagate prop
nested-consistent-timing - Coordinate parent-child exit durations
4. CSS Pseudo Elements (MEDIUM)
pseudo-content-required - ::before/::after need content property
pseudo-over-dom-node - Pseudo-elements over extra DOM nodes for decoration
pseudo-position-relative-parent - Parent needs position: relative
pseudo-z-index-layering - Z-index for correct pseudo-element layering
pseudo-hit-target-expansion - Negative inset for larger hit targets
pseudo-marker-styling - Use ::marker for custom list bullet styles
pseudo-first-line-styling - Use ::first-line for typographic treatments
transition-name-required - View transitions need view-transition-name
transition-name-unique - Each transition name unique during transition
transition-name-cleanup - Remove transition name after completion
transition-over-js-library - Prefer View Transitions API over JS libraries
transition-style-pseudo-elements - Style ::view-transition-group for custom animations
native-backdrop-styling - Use ::backdrop for dialog backgrounds
native-placeholder-styling - Use ::placeholder for input styling
native-selection-styling - Use ::selection for text selection styling
5. Audio Feedback (MEDIUM)
a11y-visual-equivalent - Every sound must have a visual equivalent
a11y-toggle-setting - Provide toggle to disable sounds
a11y-reduced-motion-check - Respect prefers-reduced-motion for sound
a11y-volume-control - Allow independent volume adjustment
appropriate-no-high-frequency - No sound on typing or keyboard nav
appropriate-confirmations-only - Sound for payments, uploads, submissions
appropriate-errors-warnings - Sound for errors that can't be overlooked
appropriate-no-decorative - No sound on hover or decorative moments
appropriate-no-punishing - Inform, don't punish with harsh sounds
impl-preload-audio - Preload audio files to avoid delay
impl-default-subtle - Default volume subtle (0.3), not loud
impl-reset-current-time - Reset currentTime before replay
weight-match-action - Sound weight matches action importance
weight-duration-matches-action - Sound duration matches action duration
6. Sound Synthesis (MEDIUM)
context-reuse-single - Reuse single AudioContext, don't create per sound
context-resume-suspended - Resume suspended AudioContext before playing
context-cleanup-nodes - Disconnect audio nodes after playback
envelope-exponential-decay - Exponential ramps for natural decay
envelope-no-zero-target - Exponential ramps target 0.001, not 0
envelope-set-initial-value - Set initial value before ramping
design-noise-for-percussion - Filtered noise for clicks/taps
design-oscillator-for-tonal - Oscillators with pitch sweep for tonal sounds
design-filter-for-character - Bandpass filter to shape percussive sounds
param-click-duration - Click sounds: 5-15ms duration
param-filter-frequency-range - Click filter: 3000-6000Hz
param-reasonable-gain - Gain under 1.0 to prevent clipping
param-q-value-range - Filter Q: 2-5 for focused but natural
7. Morphing Icons (LOW)
morphing-three-lines - Every icon uses exactly 3 SVG lines
morphing-use-collapsed - Unused lines use collapsed constant
morphing-consistent-viewbox - All icons share same viewBox (14x14)
morphing-group-variants - Rotational variants share group and base lines
morphing-spring-rotation - Spring physics for grouped icon rotation
morphing-reduced-motion - Respect prefers-reduced-motion
morphing-jump-non-grouped - Instant rotation jump between non-grouped icons
morphing-strokelinecap-round - Round stroke line caps
morphing-aria-hidden - Icon SVGs are aria-hidden
8. Container Animation (MEDIUM)
container-two-div-pattern - Outer animated div, inner measured div; never same element
container-guard-initial-zero - Guard bounds === 0 on initial render, fall back to "auto"
container-use-resize-observer - Use ResizeObserver for measurement, not getBoundingClientRect
container-overflow-hidden - Set overflow: hidden on animated container during transitions
container-no-excessive-use - Use sparingly: buttons, accordions, interactive elements
container-callback-ref - Use callback ref (not useRef) for measurement hooks
container-transition-delay - Add small delay for natural catching-up feel
9. Laws of UX (HIGH)
ux-fitts-target-size - Size interactive targets for easy clicking (min 32px)
ux-fitts-hit-area - Expand hit areas with invisible padding or pseudo-elements
ux-hicks-minimize-choices - Minimize choices to reduce decision time
ux-millers-chunking - Chunk data into groups of 5-9 for scannability
ux-doherty-under-400ms - Respond within 400ms to feel instant
ux-doherty-perceived-speed - Fake speed with skeletons, optimistic UI, progress indicators
ux-postels-accept-messy-input - Accept messy input, output clean data
ux-progressive-disclosure - Show what matters now, reveal complexity later
ux-jakobs-familiar-patterns - Use familiar UI patterns users know from other sites
ux-aesthetic-usability - Visual polish increases perceived usability
ux-proximity-grouping - Group related elements spatially with tighter spacing
ux-similarity-consistency - Similar elements should look alike
ux-common-region-boundaries - Use boundaries to group related content
ux-von-restorff-emphasis - Make important elements visually distinct
ux-serial-position - Place key items first or last in sequences
ux-peak-end-finish-strong - End experiences with clear success states
ux-teslers-complexity - Move complexity to the system, not the user
ux-goal-gradient-progress - Show progress toward completion
ux-zeigarnik-show-incomplete - Show incomplete state to drive completion
ux-pragnanz-simplify - Simplify complex visuals into clear forms
ux-pareto-prioritize-features - Prioritize the critical 20% of features
ux-cognitive-load-reduce - Minimize extraneous cognitive load
ux-uniform-connectedness - Visually connect related elements with lines or frames
10. Predictive Prefetching (MEDIUM)
prefetch-trajectory-over-hover - Trajectory prediction over hover; reclaims 100-200ms
prefetch-not-everything - Prefetch by intent, not viewport; avoid wasted bandwidth
prefetch-hit-slop - Use hitSlop to trigger predictions earlier
prefetch-touch-fallback - Fall back gracefully on touch devices (no cursor)
prefetch-keyboard-tab - Prefetch on keyboard navigation when focus approaches
prefetch-use-selectively - Use predictive prefetching where latency is noticeable
11. Typography (MEDIUM)
type-tabular-nums-for-data - Tabular numbers for columns, dashboards, pricing
type-oldstyle-nums-for-prose - Oldstyle numbers blend into body text
type-slashed-zero - Slashed zero in code-adjacent UIs
type-opentype-contextual-alternates - Keep calt enabled for contextual glyph adjustment
type-disambiguation-stylistic-set - Enable ss02 to distinguish I/l/1 and 0/O
type-optical-sizing-auto - Leave font-optical-sizing auto for size-adaptive glyphs
type-antialiased-on-retina - Antialiased font smoothing on retina displays
type-text-wrap-balance-headings - text-wrap: balance on headings for even lines
type-underline-offset - Offset underlines below descenders
type-no-font-synthesis - Disable font-synthesis to prevent faux bold/italic
type-font-display-swap - Use font-display: swap to avoid invisible text during load
type-variable-weight-continuous - Use continuous weight values (100-900) with variable fonts
type-text-wrap-pretty - text-wrap: pretty for body text to reduce orphans
type-justify-with-hyphens - Pair text-align: justify with hyphens: auto
type-letter-spacing-uppercase - Add letter-spacing to uppercase and small-caps text
type-proper-fractions - Use diagonal-fractions for proper typographic fractions
12. Visual Design (HIGH)
visual-concentric-radius - Inner radius = outer radius minus padding for nested elements
visual-layered-shadows - Layer multiple shadows for realistic depth
visual-shadow-direction - All shadows share same offset direction (single light source)
visual-no-pure-black-shadow - Use neutral colors, not pure black, for shadows
visual-shadow-matches-elevation - Shadow size indicates elevation in consistent scale
visual-animate-shadow-pseudo - Animate shadow via pseudo-element opacity for performance
visual-consistent-spacing-scale - Use a consistent spacing scale, not arbitrary values
visual-border-alpha-colors - Semi-transparent borders adapt to any background
visual-button-shadow-anatomy - Six-layer shadow anatomy for polished buttons
How to Use
Read individual rule files for detailed explanations and code examples:
rules/timing-under-300ms.md
rules/spring-for-gestures.md
rules/ux-doherty-under-400ms.md
rules/type-tabular-nums-for-data.md
Each rule file contains:
- Brief explanation of why it matters
- Incorrect code example with explanation
- Correct code example with explanation
Full Compiled Document
For the complete guide with all rules expanded: AGENTS.md
1---2name: userinterface-wiki3description: UI/UX best practices for web interfaces. Use when reviewing animations, CSS, audio, typography, UX patterns, prefetching, or icon implementations. Covers 11 categories from animation principles to typography. Outputs file:line findings.4license: MIT5---6----|----------|--------|----------|7| 1 | Animation Principles | CRITICAL | `timing-`, `physics-`, `staging-` |8| 2 | Timing Functions | HIGH | `spring-`, `easing-`, `duration-`, `none-` |9| 3 | Exit Animations | HIGH | `exit-`, `presence-`, `mode-`, `nested-` |10| 4 | CSS Pseudo Elements | MEDIUM | `pseudo-`, `transition-`, `native-` |11| 5 | Audio Feedback | MEDIUM | `a11y-`, `appropriate-`, `impl-`, `weight-` |12| 6 | Sound Synthesis | MEDIUM | `context-`, `envelope-`, `design-`, `param-` |13| 7 | Morphing Icons | LOW | `morphing-` |14| 8 | Container Animation | MEDIUM | `container-` |15| 9 | Laws of UX | HIGH | `ux-` |16| 10 | Predictive Prefetching | MEDIUM | `prefetch-` |17| 11 | Typography | MEDIUM | `type-` |18| 12 | Visual Design | HIGH | `visual-` |1920## Quick Reference2122### 1. Animation Principles (CRITICAL)2324- `timing-under-300ms` - User animations must complete within 300ms25- `timing-consistent` - Similar elements use identical timing values26- `timing-no-entrance-context-menu` - Context menus: no entrance animation, exit only27- `easing-natural-decay` - Use exponential ramps for natural decay, not linear28- `easing-no-linear-motion` - Linear easing only for progress indicators29- `physics-active-state` - Interactive elements need :active scale transform30- `physics-subtle-deformation` - Squash/stretch in 0.95-1.05 range31- `physics-spring-for-overshoot` - Springs for overshoot-and-settle, not easing32- `physics-no-excessive-stagger` - Stagger delays under 50ms per item33- `staging-one-focal-point` - One prominent animation at a time34- `staging-dim-background` - Dim modal/dialog backgrounds35- `staging-z-index-hierarchy` - Animated elements respect z-index layers3637### 2. Timing Functions (HIGH)3839- `spring-for-gestures` - Gesture-driven motion (drag, flick) must use springs40- `spring-for-interruptible` - Interruptible motion must use springs41- `spring-preserves-velocity` - Springs preserve input energy on release42- `spring-params-balanced` - Avoid excessive oscillation in spring params43- `easing-for-state-change` - System state changes use easing curves44- `easing-entrance-ease-out` - Entrances use ease-out45- `easing-exit-ease-in` - Exits use ease-in46- `easing-transition-ease-in-out` - View transitions use ease-in-out47- `easing-linear-only-progress` - Linear only for progress/time representation48- `duration-press-hover` - Press/hover: 120-180ms49- `duration-small-state` - Small state changes: 180-260ms50- `duration-max-300ms` - User-initiated max 300ms51- `duration-shorten-before-curve` - Fix slow feel with shorter duration, not curve52- `none-high-frequency` - No animation for high-frequency interactions53- `none-keyboard-navigation` - Keyboard navigation instant, no animation54- `none-context-menu-entrance` - Context menus: no entrance, exit only5556### 3. Exit Animations (HIGH)5758- `exit-requires-wrapper` - Conditional motion elements need AnimatePresence wrapper59- `exit-prop-required` - Elements in AnimatePresence need exit prop60- `exit-key-required` - Dynamic lists need unique keys, not index61- `exit-matches-initial` - Exit mirrors initial for symmetry62- `presence-hook-in-child` - useIsPresent in child, not parent63- `presence-safe-to-remove` - Call safeToRemove after async cleanup64- `presence-disable-interactions` - Disable interactions on exiting elements65- `mode-wait-doubles-duration` - Mode "wait" doubles duration; halve timing66- `mode-sync-layout-conflict` - Mode "sync" causes layout conflicts67- `mode-pop-layout-for-lists` - Use popLayout for list reordering68- `nested-propagate-required` - Nested AnimatePresence needs propagate prop69- `nested-consistent-timing` - Coordinate parent-child exit durations7071### 4. CSS Pseudo Elements (MEDIUM)7273- `pseudo-content-required` - ::before/::after need content property74- `pseudo-over-dom-node` - Pseudo-elements over extra DOM nodes for decoration75- `pseudo-position-relative-parent` - Parent needs position: relative76- `pseudo-z-index-layering` - Z-index for correct pseudo-element layering77- `pseudo-hit-target-expansion` - Negative inset for larger hit targets78- `pseudo-marker-styling` - Use ::marker for custom list bullet styles79- `pseudo-first-line-styling` - Use ::first-line for typographic treatments80- `transition-name-required` - View transitions need view-transition-name81- `transition-name-unique` - Each transition name unique during transition82- `transition-name-cleanup` - Remove transition name after completion83- `transition-over-js-library` - Prefer View Transitions API over JS libraries84- `transition-style-pseudo-elements` - Style ::view-transition-group for custom animations85- `native-backdrop-styling` - Use ::backdrop for dialog backgrounds86- `native-placeholder-styling` - Use ::placeholder for input styling87- `native-selection-styling` - Use ::selection for text selection styling8889### 5. Audio Feedback (MEDIUM)9091- `a11y-visual-equivalent` - Every sound must have a visual equivalent92- `a11y-toggle-setting` - Provide toggle to disable sounds93- `a11y-reduced-motion-check` - Respect prefers-reduced-motion for sound94- `a11y-volume-control` - Allow independent volume adjustment95- `appropriate-no-high-frequency` - No sound on typing or keyboard nav96- `appropriate-confirmations-only` - Sound for payments, uploads, submissions97- `appropriate-errors-warnings` - Sound for errors that can't be overlooked98- `appropriate-no-decorative` - No sound on hover or decorative moments99- `appropriate-no-punishing` - Inform, don't punish with harsh sounds100- `impl-preload-audio` - Preload audio files to avoid delay101- `impl-default-subtle` - Default volume subtle (0.3), not loud102- `impl-reset-current-time` - Reset currentTime before replay103- `weight-match-action` - Sound weight matches action importance104- `weight-duration-matches-action` - Sound duration matches action duration105106### 6. Sound Synthesis (MEDIUM)107108- `context-reuse-single` - Reuse single AudioContext, don't create per sound109- `context-resume-suspended` - Resume suspended AudioContext before playing110- `context-cleanup-nodes` - Disconnect audio nodes after playback111- `envelope-exponential-decay` - Exponential ramps for natural decay112- `envelope-no-zero-target` - Exponential ramps target 0.001, not 0113- `envelope-set-initial-value` - Set initial value before ramping114- `design-noise-for-percussion` - Filtered noise for clicks/taps115- `design-oscillator-for-tonal` - Oscillators with pitch sweep for tonal sounds116- `design-filter-for-character` - Bandpass filter to shape percussive sounds117- `param-click-duration` - Click sounds: 5-15ms duration118- `param-filter-frequency-range` - Click filter: 3000-6000Hz119- `param-reasonable-gain` - Gain under 1.0 to prevent clipping120- `param-q-value-range` - Filter Q: 2-5 for focused but natural121122### 7. Morphing Icons (LOW)123124- `morphing-three-lines` - Every icon uses exactly 3 SVG lines125- `morphing-use-collapsed` - Unused lines use collapsed constant126- `morphing-consistent-viewbox` - All icons share same viewBox (14x14)127- `morphing-group-variants` - Rotational variants share group and base lines128- `morphing-spring-rotation` - Spring physics for grouped icon rotation129- `morphing-reduced-motion` - Respect prefers-reduced-motion130- `morphing-jump-non-grouped` - Instant rotation jump between non-grouped icons131- `morphing-strokelinecap-round` - Round stroke line caps132- `morphing-aria-hidden` - Icon SVGs are aria-hidden133134### 8. Container Animation (MEDIUM)135136- `container-two-div-pattern` - Outer animated div, inner measured div; never same element137- `container-guard-initial-zero` - Guard bounds === 0 on initial render, fall back to "auto"138- `container-use-resize-observer` - Use ResizeObserver for measurement, not getBoundingClientRect139- `container-overflow-hidden` - Set overflow: hidden on animated container during transitions140- `container-no-excessive-use` - Use sparingly: buttons, accordions, interactive elements141- `container-callback-ref` - Use callback ref (not useRef) for measurement hooks142- `container-transition-delay` - Add small delay for natural catching-up feel143144### 9. Laws of UX (HIGH)145146- `ux-fitts-target-size` - Size interactive targets for easy clicking (min 32px)147- `ux-fitts-hit-area` - Expand hit areas with invisible padding or pseudo-elements148- `ux-hicks-minimize-choices` - Minimize choices to reduce decision time149- `ux-millers-chunking` - Chunk data into groups of 5-9 for scannability150- `ux-doherty-under-400ms` - Respond within 400ms to feel instant151- `ux-doherty-perceived-speed` - Fake speed with skeletons, optimistic UI, progress indicators152- `ux-postels-accept-messy-input` - Accept messy input, output clean data153- `ux-progressive-disclosure` - Show what matters now, reveal complexity later154- `ux-jakobs-familiar-patterns` - Use familiar UI patterns users know from other sites155- `ux-aesthetic-usability` - Visual polish increases perceived usability156- `ux-proximity-grouping` - Group related elements spatially with tighter spacing157- `ux-similarity-consistency` - Similar elements should look alike158- `ux-common-region-boundaries` - Use boundaries to group related content159- `ux-von-restorff-emphasis` - Make important elements visually distinct160- `ux-serial-position` - Place key items first or last in sequences161- `ux-peak-end-finish-strong` - End experiences with clear success states162- `ux-teslers-complexity` - Move complexity to the system, not the user163- `ux-goal-gradient-progress` - Show progress toward completion164- `ux-zeigarnik-show-incomplete` - Show incomplete state to drive completion165- `ux-pragnanz-simplify` - Simplify complex visuals into clear forms166- `ux-pareto-prioritize-features` - Prioritize the critical 20% of features167- `ux-cognitive-load-reduce` - Minimize extraneous cognitive load168- `ux-uniform-connectedness` - Visually connect related elements with lines or frames169170### 10. Predictive Prefetching (MEDIUM)171172- `prefetch-trajectory-over-hover` - Trajectory prediction over hover; reclaims 100-200ms173- `prefetch-not-everything` - Prefetch by intent, not viewport; avoid wasted bandwidth174- `prefetch-hit-slop` - Use hitSlop to trigger predictions earlier175- `prefetch-touch-fallback` - Fall back gracefully on touch devices (no cursor)176- `prefetch-keyboard-tab` - Prefetch on keyboard navigation when focus approaches177- `prefetch-use-selectively` - Use predictive prefetching where latency is noticeable178179### 11. Typography (MEDIUM)180181- `type-tabular-nums-for-data` - Tabular numbers for columns, dashboards, pricing182- `type-oldstyle-nums-for-prose` - Oldstyle numbers blend into body text183- `type-slashed-zero` - Slashed zero in code-adjacent UIs184- `type-opentype-contextual-alternates` - Keep calt enabled for contextual glyph adjustment185- `type-disambiguation-stylistic-set` - Enable ss02 to distinguish I/l/1 and 0/O186- `type-optical-sizing-auto` - Leave font-optical-sizing auto for size-adaptive glyphs187- `type-antialiased-on-retina` - Antialiased font smoothing on retina displays188- `type-text-wrap-balance-headings` - text-wrap: balance on headings for even lines189- `type-underline-offset` - Offset underlines below descenders190- `type-no-font-synthesis` - Disable font-synthesis to prevent faux bold/italic191- `type-font-display-swap` - Use font-display: swap to avoid invisible text during load192- `type-variable-weight-continuous` - Use continuous weight values (100-900) with variable fonts193- `type-text-wrap-pretty` - text-wrap: pretty for body text to reduce orphans194- `type-justify-with-hyphens` - Pair text-align: justify with hyphens: auto195- `type-letter-spacing-uppercase` - Add letter-spacing to uppercase and small-caps text196- `type-proper-fractions` - Use diagonal-fractions for proper typographic fractions197198### 12. Visual Design (HIGH)199200- `visual-concentric-radius` - Inner radius = outer radius minus padding for nested elements201- `visual-layered-shadows` - Layer multiple shadows for realistic depth202- `visual-shadow-direction` - All shadows share same offset direction (single light source)203- `visual-no-pure-black-shadow` - Use neutral colors, not pure black, for shadows204- `visual-shadow-matches-elevation` - Shadow size indicates elevation in consistent scale205- `visual-animate-shadow-pseudo` - Animate shadow via pseudo-element opacity for performance206- `visual-consistent-spacing-scale` - Use a consistent spacing scale, not arbitrary values207- `visual-border-alpha-colors` - Semi-transparent borders adapt to any background208- `visual-button-shadow-anatomy` - Six-layer shadow anatomy for polished buttons209210## How to Use211212Read individual rule files for detailed explanations and code examples:213214```215rules/timing-under-300ms.md216rules/spring-for-gestures.md217rules/ux-doherty-under-400ms.md218rules/type-tabular-nums-for-data.md219```220221Each rule file contains:222- Brief explanation of why it matters223- Incorrect code example with explanation224- Correct code example with explanation225226## Full Compiled Document227228For the complete guide with all rules expanded: `AGENTS.md`