Mobile Design System logo

Mobile Design System

Community
Ludi-Herry
mobile-design-system

移动端(iOS HIG与Android Material 3)工业级设计系统与组件规范执行Skill。将全面屏安全区避让、44/48dp触控热区、软键盘防遮挡、底部抽屉三分屏、滚动穿透阻断、信息流列表与踩坑红线转化为可执行的AI生成与审查约束。用于移动端页面设计、组件搭建与高保真原型还原。

Overview

PublisherLudi-Herry
Repositorymobile-design-system-skill
Skill namemobile-design-system
Stars
10
Forks
1
Bundled files
13
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 13 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Ludi-Herry on GitHub. Read the source before you install it.

Installation

Install the Mobile Design System AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Ludi-Herry/mobile-design-system-skill/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Ludi-Herry/mobile-design-system-skill.git \
  .claude/skills/mobile-design-system
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Mobile Design System in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Mobile Design System on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Mobile Design System is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

移动端设计系统与跨平台组件规范 AI 执行引擎 (Ludi Mobile Design System Skill)

本 Skill 是面向 AI 编程助手(Agent、Claude Code、Cursor、Windsurf、Codex 等)的可执行移动端设计系统指令层。它彻底终结“AI 写移动端代码直接套用桌面表格、安全区 Home Bar 被遮挡、软键盘弹起遮挡输入框、浮层上下滑动导致底层乱晃”的行业通病,将资深设计师与移动工程架构师的物理约束转化为确定性的生成规则。


核心执行工作流 (Standard Workflow)

每当接收到任何移动端(iOS / Android / 小程序 / 响应式 H5)界面生成、修改或审查需求时,按以下六步顺序执行:

[步骤 1: 物理视口] ──► 确定逻辑画布 (375pt / 390pt / 402pt),声明 viewport-fit=cover
        │
[步骤 2: 安全区避让] ──► 顶部状态栏避让 + 底部 Home Indicator 避让 (env(safe-area-inset-*))
        │
[步骤 3: 架构骨架] ──► 从五大移动端页面骨架精准选型 (Feed / 详情 / 紧凑表单 / 个人中心)
        │
[步骤 4: 触控与键盘] ──► 锁定 44/48dp 最小热区,精准配置 inputmode 映射与聚焦居中
        │
[步骤 5: 浮层与手势] ──► 采用底部半屏抽屉 (Bottom Sheet) 三分屏,锁死底层 body 滚动穿透
        │
[步骤 6: 闭环走查] ──► 运行 16 项移动端交付硬门禁与踩坑自查 (references/07)

必须遵守的三大底层硬红线 (Non-Negotiable Redlines)

  1. 全面屏安全区物理避让:

    • 底部固定定位按钮(fixed bottom-0)必须显式声明 padding-bottom: max(16px, env(safe-area-inset-bottom)),严禁按钮紧贴物理边缘被系统 Home Bar 遮挡。
    • 顶部导航栏必须避让状态栏与灵动岛(env(safe-area-inset-top))。
  2. 触控热区与按键面积底线:

    • iOS 最小可交互触控热区必须 $\ge 44 \times 44\text{pt}$,Android 必须 $\ge 48 \times 48\text{dp}$。小图标必须通过容器或伪元素向外扩张触控面。
    • 相邻可点击项留白 $\ge 8\text{pt}$,严禁紧贴导致连带误触。
  3. 软键盘防遮挡与浮层防穿透:

    • 手机号必须配置 inputmode="tel",纯数字配置 inputmode="numeric",验证码配置 autocomplete="one-time-code"。
    • 输入框聚焦时必须执行平滑居中滚动(scrollIntoView),滚动容器底部保留充足垫高缓冲。
    • 弹出的半屏抽屉必须锁死底层 Body 滚动,且严禁点击背景遮罩静默关闭表单。

深度参考规范库导航 (References Index)

遇到具体移动端设计决策时,精准查阅 references/ 目录下的专门手册:


开箱即用实战模板 (Templates)

生成真实代码时,可直接参考或复用 templates/ 目录中的标准工程代码:

  • templates/mobile-feed-list-template.tsx:安全区避让 + 搜索吸顶 + 16:9 图片裁切 + 下拉刷新与触底加载流。
  • templates/mobile-bottom-sheet-template.tsx:顶部拖拽条 + 三分屏高度 + 底层滚动彻底锁死 + 确定取消动作。
  • templates/mobile-compact-form-template.tsx:聚焦居中防遮挡 + inputmode 精准映射 + 底部全宽主按钮。
  • templates/mobile-tabbar-app-shell.tsx:标准 4 槽位 TabBar + 消息未读数与红点 + 毛玻璃材质外壳。

自动化校验脚本 (Lint Script)

代码生成完成后,可随时执行 Python 走查脚本自检:

bash
python scripts/audit-mobile-design.py path/to/your/code

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Mobile Design System AI skill do?

移动端(iOS HIG与Android Material 3)工业级设计系统与组件规范执行Skill。将全面屏安全区避让、44/48dp触控热区、软键盘防遮挡、底部抽屉三分屏、滚动穿透阻断、信息流列表与踩坑红线转化为可执行的AI生成与审查约束。用于移动端页面设计、组件搭建与高保真原型还原。

Why use Mobile Design System on TypingMind?

Because you install it once and use it with any model. Mobile Design System is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Mobile Design System in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Ludi-Herry/mobile-design-system-skill/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Mobile Design System?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Mobile Design System?

As many as you like. As long as a model supports skills, you can use Mobile Design System with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Mobile Design System AI skill free?

Yes. It is published on GitHub by Ludi-Herry under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇