[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CS8HQVJRE1XA7RRN00HHDE":3,"skill-same:01M7CS8HQVJRE1XA7RRN00HHDE":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7CS8HQVJRE1XA7RRN00HHDE","mobile-ui-ux",null,"Use when designing or building any mobile screen or component a user sees (Flutter, SwiftUI or Compose) - platform conventions, hierarchy, type that scales, colour roles and dark mode, safe areas and insets, forms and keyboard, states, feedback, and the generic-mobile anti-patterns.","makifbaysal\u002Ftasktrooper","makifbaysal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F25031940?v=4","01M7CRG3ZCSYZSSEVDMW3DEYC8","Mehmet Akif Baysal","01M7CRG401FJ8YAXH5ER730XYV",122,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fmobile-developer\u002Fskills\u002Fmobile-ui-ux\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: mobile-ui-ux\ncategory: mobile\ndescription: Use when designing or building any mobile screen or component a user sees (Flutter, SwiftUI or Compose) - platform conventions, hierarchy, type that scales, colour roles and dark mode, safe areas and insets, forms and keyboard, states, feedback, and the generic-mobile anti-patterns.\nsource: ehmo\u002Fplatform-design-skills (MIT), twostraws\u002FSwiftUI-Agent-Skill (MIT), android\u002Fskills (Apache-2.0), anthropics\u002Fskills frontend-design (Apache-2.0), adapted\n---\n# Mobile UI\u002FUX\n\n## Overview\n\nA screen that compiles and passes its widget test has not been designed. The two most common mobile failures are a web-style layout wearing a mobile skin (centred everything, modal-on-modal, a custom tab bar that doesn't match the platform) and a happy-path-only build with no loading\u002Fempty\u002Ferror state.\n\n**Core principle:** follow the platform's own conventions first, build from theme tokens and the atomic component library, and design every state — not just the one the task's screenshot shows.\n\n## Platform conventions\n\n| Concern | iOS | Android |\n|---|---|---|\n| Touch target | 44×44pt | 48×48dp |\n| Top-level navigation | tab bar, 3–5 items | nav bar, 3–5 items → nav rail ≥600dp |\n| Back | edge swipe, never overridden | system\u002Fpredictive back; `BackHandler`\u002F`PopScope`, never `onBackPressed` |\n| Text | Dynamic Type text styles | Material type roles, in `sp` |\n| Alerts | critical only | critical only |\n| Non-critical feedback | — | snackbar |\n\nDestructive actions carry a destructive role plus a confirmation or an undo window — never a silent delete either platform.\n\n## Hierarchy\n\n- One primary action per screen, placed in the thumb zone (bottom half on a phone held one-handed).\n- Emphasise with size → weight → colour, in that order; de-emphasise secondary content rather than shouting the primary one louder.\n\n## Spacing\n\n- A 4\u002F8 token scale (`xs 4, sm 8, md 16, lg 24, xl 32` or the repo's own theme extension) — never a magic numeric literal in a widget\u002Fview.\n- Tighter spacing inside a group than between groups.\n\n## Typography\n\n- Theme text styles only (`Theme.textTheme`, Material type roles, `Font` semantic styles) — never a fixed\u002Fhardcoded size.\n- Body text ≥16px (Flutter\u002FAndroid) \u002F ≥17pt (iOS); nothing below 11pt\u002F12sp anywhere in the UI.\n- Never a fixed height on a container that holds text — a fixed height clips text at larger font scales.\n\n## Colour\n\n- Roles, not hex: `ColorScheme`\u002F`Theme.of(context).colorScheme`, Material colour roles, asset-catalog semantic colours — never `Color(0x…)`\u002F`Colors.*` outside the theme files.\n- Contrast ≥4.5:1 body, ≥3:1 large text; status is never colour-only (pair with an icon or text).\n- Dark mode comes from the theme, never a per-widget override. Material 3 dark surfaces are never pure black — use the theme's elevated-surface colour.\n\n## Safe areas and insets\n\n- Flutter: `SafeArea`, `MediaQuery.viewPaddingOf(context)`.\n- Compose: `Scaffold`'s `innerPadding` + `consumeWindowInsets` — don't double-apply padding on top of it.\n- SwiftUI: `.ignoresSafeArea()` only on a background layer, never on interactive content.\n- A `NavigationSuiteScaffold`\u002Fcustom bottom bar doesn't automatically propagate inset padding to its content — verify by looking, don't assume.\n\n## Forms and keyboard\n\n- Correct keyboard type (`TextInputType.emailAddress`, `.keyboardType(.emailAddress)`, `KeyboardOptions(keyboardType = ...)`) and autofill hints.\n- An explicit IME action chain: `next` moves to the following field, the last field is `done`\u002Fsubmits.\n- The focused field scrolls into view above the keyboard; the submit control stays reachable while the keyboard is open.\n- Inline error next to the field, not a toast; on submit, focus the first invalid field.\n- Never block paste into a field.\n\n## States — non-negotiable for every data screen\n\n- Loading: a skeleton that mirrors the final layout, not a full-screen blocking spinner.\n- Empty: explain why, give one next action.\n- Error: say what happened and offer retry.\n- Success: visible feedback (snackbar\u002Ftoast, inline confirmation, or a state swap).\n- Pressed and disabled states styled on every control you touch.\n\n## Feedback and motion\n\n- Haptics on confirmations only, never decoratively on every tap.\n- Respect the reduce-motion setting (see `mobile-accessibility`); prefer no animation over a gratuitous one.\n\n## Imagery\n\n- One icon set per app (SF Symbols or Material Symbols, not both) — consistent size and weight.\n- Never an emoji standing in for an icon in shipped UI.\n\n## Copy\n\n- UI copy in the app locale (see `app-locale-ui-copy`); no leftover placeholder text.\n\n## Anti-generic-mobile list — refuse these unless the brief explicitly asks for them\n\n- A hamburger menu on iOS (use a tab bar or a clear in-context action).\n- Centred-everything layout as the page structure.\n- A web-style modal stacked on another modal.\n- A FAB used for a secondary action — reserve it for the one primary action on the screen.\n- A card nested inside a card.\n- Gradient text; grey text on a coloured surface.\n- A custom-painted imitation of the platform's own tab bar \u002F nav bar instead of using the platform component.\n- A full-screen spinner where a skeleton belongs.\n\n## Worked Example\n\n```dart\n\u002F\u002F ❌ fixed Row, hardcoded style, no layout adaptation —\n\u002F\u002F passes at text scale 1.0, overflows 82px on the right at 360 wide \u002F text scale 2.0\nRow(\n  children: [\n    Expanded(child: Text(task.title, style: const TextStyle(fontSize: 16))),\n    Text(task.price),\n    IconButton(icon: const Icon(Icons.add), onPressed: onAdd),\n  ],\n)\n\n\u002F\u002F ✅ decides by available width and text scale, themed, labeled\nLayoutBuilder(\n  builder: (context, constraints) {\n    final narrow = constraints.maxWidth \u003C 280 * MediaQuery.textScalerOf(context).scale(1);\n    final price = Text(task.price, style: context.textTheme.bodyMedium);\n    final addButton = IconButton(\n      icon: const Icon(Icons.add),\n      tooltip: 'Add to cart',\n      onPressed: onAdd,\n    );\n    final title = Text(task.title, style: context.textTheme.titleMedium);\n    return narrow\n        ? Column(crossAxisAlignment: CrossAxisAlignment.start, children: [\n            title,\n            Row(children: [Expanded(child: price), addButton]),\n          ])\n        : Row(children: [Expanded(child: title), price, addButton]);\n  },\n)\n```\n\nThe rewrite decides layout from the available width instead of assuming it, uses theme text styles so it scales with the system font size, and labels the icon-only button. See `mobile-visual-self-review` for the verified matrix test that caught the overflow.\n\n## Common Mistakes\n\n- Shipping a screen's happy path only — no loading skeleton, no empty state, no error recovery.\n- `Color(0x…)`\u002F`Colors.*`\u002Fhardcoded `fontSize`\u002Fmagic `EdgeInsets` instead of theme tokens.\n- An icon-only control with no accessibility label.\n- Deciding layout by device type or orientation instead of available width.\n- Locking screen orientation — ignored on Android 16+ for screens ≥600dp.\n\n## Red Flags\n\n- A screen with only one state rendered in the diff.\n- A hardcoded colour or font size anywhere outside the theme files.\n- Two screens showing visually different buttons built independently instead of from the same atom.\n- A fixed-height container wrapping a `Text`\u002Flabel.\n","# Mobile UI\u002FUX\n\n## Overview\n\nA screen that compiles and passes its widget test has not been designed. The two most common mobile failures are a web-style layout wearing a mobile skin (centred everything, modal-on-modal, a custom tab bar that doesn't match the platform) and a happy-path-only build with no loading\u002Fempty\u002Ferror state.\n\n**Core principle:** follow the platform's own conventions first, build from theme tokens and the atomic component library, and design every state — not just the one the task's screenshot shows.\n\n## Platform conventions\n\n| Concern | iOS | Android |\n|---|---|---|\n| Touch target | 44×44pt | 48×48dp |\n| Top-level navigation | tab bar, 3–5 items | nav bar, 3–5 items → nav rail ≥600dp |\n| Back | edge swipe, never overridden | system\u002Fpredictive back; `BackHandler`\u002F`PopScope`, never `onBackPressed` |\n| Text | Dynamic Type text styles | Material type roles, in `sp` |\n| Alerts | critical only | critical only |\n| Non-critical feedback | — | snackbar |\n\nDestructive actions carry a destructive role plus a confirmation or an undo window — never a silent delete either platform.\n\n## Hierarchy\n\n- One primary action per screen, placed in the thumb zone (bottom half on a phone held one-handed).\n- Emphasise with size → weight → colour, in that order; de-emphasise secondary content rather than shouting the primary one louder.\n\n## Spacing\n\n- A 4\u002F8 token scale (`xs 4, sm 8, md 16, lg 24, xl 32` or the repo's own theme extension) — never a magic numeric literal in a widget\u002Fview.\n- Tighter spacing inside a group than between groups.\n\n## Typography\n\n- Theme text styles only (`Theme.textTheme`, Material type roles, `Font` semantic styles) — never a fixed\u002Fhardcoded size.\n- Body text ≥16px (Flutter\u002FAndroid) \u002F ≥17pt (iOS); nothing below 11pt\u002F12sp anywhere in the UI.\n- Never a fixed height on a container that holds text — a fixed height clips text at larger font scales.\n\n## Colour\n\n- Roles, not hex: `ColorScheme`\u002F`Theme.of(context).colorScheme`, Material colour roles, asset-catalog semantic colours — never `Color(0x…)`\u002F`Colors.*` outside the theme files.\n- Contrast ≥4.5:1 body, ≥3:1 large text; status is never colour-only (pair with an icon or text).\n- Dark mode comes from the theme, never a per-widget override. Material 3 dark surfaces are never pure black — use the theme's elevated-surface colour.\n\n## Safe areas and insets\n\n- Flutter: `SafeArea`, `MediaQuery.viewPaddingOf(context)`.\n- Compose: `Scaffold`'s `innerPadding` + `consumeWindowInsets` — don't double-apply padding on top of it.\n- SwiftUI: `.ignoresSafeArea()` only on a background layer, never on interactive content.\n- A `NavigationSuiteScaffold`\u002Fcustom bottom bar doesn't automatically propagate inset padding to its content — verify by looking, don't assume.\n\n## Forms and keyboard\n\n- Correct keyboard type (`TextInputType.emailAddress`, `.keyboardType(.emailAddress)`, `KeyboardOptions(keyboardType = ...)`) and autofill hints.\n- An explicit IME action chain: `next` moves to the following field, the last field is `done`\u002Fsubmits.\n- The focused field scrolls into view above the keyboard; the submit control stays reachable while the keyboard is open.\n- Inline error next to the field, not a toast; on submit, focus the first invalid field.\n- Never block paste into a field.\n\n## States — non-negotiable for every data screen\n\n- Loading: a skeleton that mirrors the final layout, not a full-screen blocking spinner.\n- Empty: explain why, give one next action.\n- Error: say what happened and offer retry.\n- Success: visible feedback (snackbar\u002Ftoast, inline confirmation, or a state swap).\n- Pressed and disabled states styled on every control you touch.\n\n## Feedback and motion\n\n- Haptics on confirmations only, never decoratively on every tap.\n- Respect the reduce-motion setting (see `mobile-accessibility`); prefer no animation over a gratuitous one.\n\n## Imagery\n\n- One icon set per app (SF Symbols or Material Symbols, not both) — consistent size and weight.\n- Never an emoji standing in for an icon in shipped UI.\n\n## Copy\n\n- UI copy in the app locale (see `app-locale-ui-copy`); no leftover placeholder text.\n\n## Anti-generic-mobile list — refuse these unless the brief explicitly asks for them\n\n- A hamburger menu on iOS (use a tab bar or a clear in-context action).\n- Centred-everything layout as the page structure.\n- A web-style modal stacked on another modal.\n- A FAB used for a secondary action — reserve it for the one primary action on the screen.\n- A card nested inside a card.\n- Gradient text; grey text on a coloured surface.\n- A custom-painted imitation of the platform's own tab bar \u002F nav bar instead of using the platform component.\n- A full-screen spinner where a skeleton belongs.\n\n## Worked Example\n\n```dart\n\u002F\u002F ❌ fixed Row, hardcoded style, no layout adaptation —\n\u002F\u002F passes at text scale 1.0, overflows 82px on the right at 360 wide \u002F text scale 2.0\nRow(\n  children: [\n    Expanded(child: Text(task.title, style: const TextStyle(fontSize: 16))),\n    Text(task.price),\n    IconButton(icon: const Icon(Icons.add), onPressed: onAdd),\n  ],\n)\n\n\u002F\u002F ✅ decides by available width and text scale, themed, labeled\nLayoutBuilder(\n  builder: (context, constraints) {\n    final narrow = constraints.maxWidth \u003C 280 * MediaQuery.textScalerOf(context).scale(1);\n    final price = Text(task.price, style: context.textTheme.bodyMedium);\n    final addButton = IconButton(\n      icon: const Icon(Icons.add),\n      tooltip: 'Add to cart',\n      onPressed: onAdd,\n    );\n    final title = Text(task.title, style: context.textTheme.titleMedium);\n    return narrow\n        ? Column(crossAxisAlignment: CrossAxisAlignment.start, children: [\n            title,\n            Row(children: [Expanded(child: price), addButton]),\n          ])\n        : Row(children: [Expanded(child: title), price, addButton]);\n  },\n)\n```\n\nThe rewrite decides layout from the available width instead of assuming it, uses theme text styles so it scales with the system font size, and labels the icon-only button. See `mobile-visual-self-review` for the verified matrix test that caught the overflow.\n\n## Common Mistakes\n\n- Shipping a screen's happy path only — no loading skeleton, no empty state, no error recovery.\n- `Color(0x…)`\u002F`Colors.*`\u002Fhardcoded `fontSize`\u002Fmagic `EdgeInsets` instead of theme tokens.\n- An icon-only control with no accessibility label.\n- Deciding layout by device type or orientation instead of available width.\n- Locking screen orientation — ignored on Android 16+ for screens ≥600dp.\n\n## Red Flags\n\n- A screen with only one state rendered in the diff.\n- A hardcoded colour or font size anywhere outside the theme files.\n- Two screens showing visually different buttons built independently instead of from the same atom.\n- A fixed-height container wrapping a `Text`\u002Flabel.\n",{"name":5,"source":24,"category":25,"description":7},"ehmo\u002Fplatform-design-skills (MIT), twostraws\u002FSwiftUI-Agent-Skill (MIT), android\u002Fskills (Apache-2.0), anthropics\u002Fskills frontend-design (Apache-2.0), adapted","mobile","main","910394a0b6db9fc8c9a8f36328ec421d3ebd8b38","catalog\u002Fagents\u002Fmobile-developer\u002Fskills\u002Fmobile-ui-ux",18,"https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper","https:\u002F\u002Ftasktrooper.ai","https:\u002F\u002Fgithub.com\u002Fmakifbaysal","Senior Software Developer","2026-11-15 04:50:29",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add makifbaysal\u002Ftasktrooper --skill mobile-ui-ux",{"tool":41,"command":42},"bunx","bunx skills add makifbaysal\u002Ftasktrooper --skill mobile-ui-ux",{"tool":44,"command":45},"pnpm","pnpm dlx skills add makifbaysal\u002Ftasktrooper --skill mobile-ui-ux","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fmobile-developer\u002Fskills\u002Fmobile-ui-ux\u002FSKILL.md",true,[],[50,56,63,70,77,84],{"skillNo":51,"name":52,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M7CSVEPQW6J6TD6CS2T5FPNZ","visual-craft","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fvisual-craft\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7CSVAQG91ETHQ0HBNZDG5FR","ux-copy","Use when you write any words a user reads in a mockup or a hand-off - content language and voice, buttons, labels, errors, empty states, confirmations, numbers and dates, and the longest-string check","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fux-copy\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7CSV6H0J38659NDXHJQ8396","screen-mockup-html","Use when you draw screens as the design task's HTML mockup - ONE canvas document holding every screen and every variant side by side, the sanitizer-safe recipe, phone and wide frames, the states grid, static control states, and the loopback self-check with screenshots at 375, 768 and 1440 attached to the task","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fscreen-mockup-html\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7CSV3JFRF3BM3XK52M7YEYR","performance-awareness","How the performance score moves for your role. Use when the score context shows a declining trend, or before handing off work you have not self-checked against every criterion.","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fperformance-awareness\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7CSTZDH00YRF5SCT7BRT9QD","design-variants","Use when a screen design needs variants - how many, variants as side-by-side rows on the one canvas, what makes two variants genuinely different, recommending one, how the human's choice is read, and narrowing to the chosen one in revision","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-variants\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7CSTV6P3SM3PAE28DB0RF77","design-system-authoring","Use when you derive, change or extend a design system - where tokens live per stack, the DTCG token tree, role-based names for both themes, base vs layer vs drift, the DESIGN.md section order, the inventory format, the contrast check and the lint every proposal returns","https:\u002F\u002Fgithub.com\u002Fmakifbaysal\u002Ftasktrooper\u002Fblob\u002Fmain\u002Fcatalog\u002Fagents\u002Fui-designer\u002Fskills\u002Fdesign-system-authoring\u002FSKILL.md",[],[]]