一键导入
agents-canonical-rules-presentation
Canonical rules — UI, theme, l10n, Mix, type-safe BLoC access, list/build performance. Part of agents-canonical-rules split.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Canonical rules — UI, theme, l10n, Mix, type-safe BLoC access, list/build performance. Part of agents-canonical-rules split.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | agents-canonical-rules-presentation |
| description | Canonical rules — UI, theme, l10n, Mix, type-safe BLoC access, list/build performance. Part of agents-canonical-rules split. |
Slice of agents-canonical-rules. Canon: DESIGN.md, docs/design_system.md (§ Reusable widgets for preview/test/iteration), skill type-safe-bloc-access, docs/CODE_QUALITY.md.
Open when touching UI/theme/l10n/Mix/lists — full rules in design canon + CODE_QUALITY, not here.
presentation/widgets/.context.read / get_it.@Preview + component widget test for non-trivial UI (same fixtures).AppStyles, UI, theme); ValueKey on tappable controls.LayoutBuilder — branch/size from parent constraints.MediaQuery — keyboard, text scale, safe area, screen width when parent is narrow.context.responsive* / shared widgets before custom breakpoints.design_system.md § Responsive layout.dart:io / unguarded Platform.is* in presentation.design_system.md § Cross-platform form factors; skill flutter-cross-platform-modern.Canonical rules — feature layers, domain purity, cubit vs widget roles, DI entrypoints, Freezed. Part of agents-canonical-rules split.
Scaffold or add a feature Cubit with Freezed state, tests, and repo-standard placement under presentation/cubit/.
Figma design-to-code for this repo (figma-sync assets, Flutter adaptation, MCP).
Dependency direction and feature composition. Use for shared package/app-shell changes, cross-feature deps, auth/theme contracts.
External references and key file paths for this repo. Use when locating theme, DI, lifecycle, sync, HTTP, or Supabase code.
Flutter BLoC app stack snapshot and lib/ layout. Use at task start or when adding features, routes, or shared code.