Loading...
Loading...
Compare original and translation side by side
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | CLI & Project Setup | CRITICAL | |
| 2 | Component Architecture | CRITICAL | |
| 3 | Accessibility Preservation | CRITICAL | |
| 4 | Styling & Theming | HIGH | |
| 5 | Form Patterns | HIGH | |
| 6 | Data Display | MEDIUM-HIGH | |
| 7 | Layout & Navigation | MEDIUM | |
| 8 | Component Composition | MEDIUM | |
| 9 | Performance Optimization | MEDIUM | |
| 10 | State Management | LOW-MEDIUM | |
| 优先级 | 类别 | 影响程度 | 前缀 |
|---|---|---|---|
| 1 | CLI 与项目配置 | 关键 | |
| 2 | 组件架构 | 关键 | |
| 3 | 可访问性保障 | 关键 | |
| 4 | 样式与主题 | 高 | |
| 5 | 表单模式 | 高 | |
| 6 | 数据展示 | 中高 | |
| 7 | 布局与导航 | 中 | |
| 8 | 组件组合 | 中 | |
| 9 | 性能优化 | 中 | |
| 10 | 状态管理 | 中低 | |
setup-components-jsonsetup-path-aliasessetup-cn-utilitysetup-use-cli-not-copysetup-css-variables-themesetup-rsc-configurationsetup-components-jsonsetup-path-aliasessetup-cn-utilitysetup-use-cli-not-copysetup-css-variables-themesetup-rsc-configurationarch-use-asChild-for-custom-triggersarch-preserve-radix-primitive-structurearch-extend-variants-with-cvaarch-use-cn-for-class-mergingarch-forward-refs-for-composable-componentsarch-isolate-component-variantsarch-use-asChild-for-custom-triggersarch-preserve-radix-primitive-structurearch-extend-variants-with-cvaarch-use-cn-for-class-mergingarch-forward-refs-for-composable-componentsarch-isolate-component-variantsally-preserve-aria-attributesally-provide-sr-only-labelsally-maintain-focus-managementally-preserve-keyboard-navigationally-ensure-color-contrastally-dialog-title-requiredally-form-field-labelsally-aria-invalid-errorsally-checkbox-label-associationally-focus-visible-stylesally-preserve-aria-attributesally-provide-sr-only-labelsally-maintain-focus-managementally-preserve-keyboard-navigationally-ensure-color-contrastally-dialog-title-requiredally-form-field-labelsally-aria-invalid-errorsally-checkbox-label-associationally-focus-visible-stylesstyle-use-css-variables-for-themingstyle-avoid-important-overridesstyle-use-tailwind-theme-extendstyle-consistent-spacing-scalestyle-responsive-design-patternsstyle-dark-mode-supportstyle-use-css-variables-for-themingstyle-avoid-important-overridesstyle-use-tailwind-theme-extendstyle-consistent-spacing-scalestyle-responsive-design-patternsstyle-dark-mode-supportform-use-react-hook-form-integrationform-use-zod-for-schema-validationform-show-validation-errors-correctlyform-handle-async-validationform-reset-form-state-correctlyform-use-react-hook-form-integrationform-use-zod-for-schema-validationform-show-validation-errors-correctlyform-handle-async-validationform-reset-form-state-correctlydata-use-tanstack-table-for-complex-tablesdata-virtualize-large-listsdata-use-skeleton-loading-statesdata-paginate-server-sidedata-empty-states-with-guidancedata-use-tanstack-table-for-complex-tablesdata-virtualize-large-listsdata-use-skeleton-loading-statesdata-paginate-server-sidedata-empty-states-with-guidancelayout-sidebar-providerlayout-sidebar-collapsiblelayout-sidebar-groupslayout-sheet-mobile-navlayout-breadcrumb-navigationlayout-sidebar-providerlayout-sidebar-collapsiblelayout-sidebar-groupslayout-sheet-mobile-navlayout-breadcrumb-navigationcomp-compose-with-compound-componentscomp-use-drawer-for-mobile-modalscomp-combine-command-with-popovercomp-nest-dialogs-correctlycomp-create-reusable-form-fieldscomp-use-slot-pattern-for-flexibilitycomp-compose-with-compound-componentscomp-use-drawer-for-mobile-modalscomp-combine-command-with-popovercomp-nest-dialogs-correctlycomp-create-reusable-form-fieldscomp-use-slot-pattern-for-flexibilityperf-lazy-load-heavy-componentsperf-memoize-expensive-rendersperf-optimize-icon-importsperf-avoid-unnecessary-rerenders-in-formsperf-debounce-search-inputsperf-lazy-load-heavy-componentsperf-memoize-expensive-rendersperf-optimize-icon-importsperf-avoid-unnecessary-rerenders-in-formsperf-debounce-search-inputsstate-prefer-uncontrolled-for-simple-inputsstate-lift-state-to-appropriate-levelstate-use-controlled-dialog-statestate-colocate-state-with-componentsstate-prefer-uncontrolled-for-simple-inputsstate-lift-state-to-appropriate-levelstate-use-controlled-dialog-statestate-colocate-state-with-components| File | Description |
|---|---|
| AGENTS.md | Complete compiled guide with all rules |
| references/_sections.md | Category definitions and ordering |
| assets/templates/_template.md | Template for new rules |
| metadata.json | Version and reference information |
| 文件 | 描述 |
|---|---|
| AGENTS.md | 包含所有规则的完整编译指南 |
| references/_sections.md | 类别定义与排序说明 |
| assets/templates/_template.md | 新规则模板 |
| metadata.json | 版本与参考信息 |