开发编程
#design
flutter-design-system
Enforce Design Language System adherence in Flutter. Use when implementing design tokens, preventing hardcoded colors/spacing, or building a DLS.
DeepseekModel
官方收录技能
质量 优秀 · 90
v1.0.0
获取
https://deepseekmodel.com/api/download.php?id=hoangnguyen0403-agent-skills-standard-skills-flutter-flutter-design-system-skill-md&format=skill
下载 .skill
标准格式,含 system_prompt 与 model_config,导入任意 Agent 框架即可使用
.skill 文件中 system_prompt 字段的实际内容。
name flutter-design-system description Enforce Design Language System adherence in Flutter. Use when implementing design tokens, preventing hardcoded colors/spacing, or building a DLS. metadata {"triggers":{"files":["**/theme/**","**/*_theme.dart","**/*_colors.dart","**/*_dls/**","**/foundation/**","**/presentation/**","**/ui/**","**/widgets/**"],"keywords":["ThemeData","ColorScheme","AppColors","VColors","VSpacing","AppTheme","design token"]}} Flutter Design System Enforcement Priority: P0 (CRITICAL) Zero tolerance for hardcoded design values. Phase 0: Context Discovery (MANDATORY) Before UI refactoring, identify project's Theme Archetype: Check main.dart : Look for MaterialApp theme configuration. Determine Pattern : Theme-Driven (Adaptive) : VThemeData(...).toThemeData() or extensive ThemeData overrides → use Theme.of(context).textTheme / theme.textTheme . Token-Driven (Static) : Use static tokens ( VTypography.* ) only when no global theme bridge exists, or when defining theme itself. Guidelines Colors : Use tokens ( VColors.* , AppColors.* ), never Color(0xFF...) or Colors.red . Spacing : Use tokens ( VSpacing.* ), never magic numbers like 16 or 24 . Typography : Prioritize theme.textTheme.* for adaptive UI. Use VTypography.* tokens only for theme definitions or non-contextual logic. Never use inline TextStyle . Borders : Use tokens ( VBorders.* ), never raw BorderRadius. Components : Use DLS widgets ( VButton ) over raw Material widgets ( ElevatedButton ) if available. Detailed Examples Anti-Patterns No Hex Colors : Color(0xFF...) strictly forbidden. No Color Enums : Colors.blue forbidden in UI code. No Magic Spacing : SizedBox(height: 10) forbidden. No Inline Styles : TextStyle(fontSize: 14) forbidden. No Raw Widgets : Don't use ElevatedButton when VButton exists. Related Topics mobile-ux-core | flutter/widgets | idiomatic-flutter Canonical response anchors When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant: ElevatedButton SizedBox VColors magic number Additional task-grounded exact anchors: TextStyle
Agent 识别该技能的关键词,点击任意一个即可复制。
该技能未提供触发词。
下载的 .skill 包内含以下字段。
| 字段 | 说明 |
|---|---|
| format | 格式标识(skill/v1) |
| skill_id | 技能唯一 ID |
| name | 技能名称 |
| version | 版本号 |
| description | 技能描述 |
| category | 所属分类(数组) |
| trigger_words | 触发词列表 |
| tags | 标签列表 |
| source | 来源标识 |
| source_url | 来源链接(本页地址) |
| exported_at | 导出时间(每次下载生成) |
| system_prompt | 系统提示词正文 |
| model_config | 模型参数:provider / model / temperature / max_tokens / top_p |
| examples | 示例 |
| install_guide | 各平台导入说明(Coze / Dify / Claude / 自定义框架) |