Communitygithub.com

YepAPI/skills

移动优先的响应式设计、触控目标与渐进式 Web 应用(PWA)模式。

skills 是什么?

该技能专注于移动优先的响应式设计实践,指导开发者如何为移动设备优先构建界面,再逐步增强桌面体验。它强调使用 `min-width` 断点,确保所有按钮和链接的触控目标至少为 44x44px,以提升触控可用性。技能还涵盖了 viewport 单位(如 `dvh`)和 safe area 适配,应对移动浏览器工具栏与刘海屏设备。此外,它提供了 PWA 基础配置(manifest.json、service worker、theme-color)和性能预算(首屏 JS <200KB),并建议使用正确的 input 类型来触发合适的键盘。最后,它强调避免仅依赖 hover 交互,并建议在真实设备上进行测试,以捕捉模拟器无法发现的性能与触控问题。该技能适用于任何移动端 Web 开发项目,支持主流框架和平台。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/mobile-first

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

移动优先设计

规则

  • 优先为移动设备设计,再增强桌面体验——使用 min-width 断点
  • 触控目标:按钮和链接最小为 44x44px
  • 视口单位:全屏布局使用 dvh(考虑移动浏览器工具栏)
  • 安全区域:为有刘海/岛状设备的屏幕使用 env(safe-area-inset-*)
  • PWA 基础:manifest.json、service worker、<meta name="theme-color">
  • 性能预算:移动端首屏 JS 不超过 200KB
  • 输入类型:使用 type="email"、type="tel"、type="number"——触发正确的键盘
  • 无仅悬停交互——所有操作必须支持点击
  • 在真实设备上测试——模拟器无法发现性能问题和触控缺陷

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

Experiment setup, variant splitting, statistical significance, and feature flag integration.

YepAPI/skills

CRUD generators, data tables, user management, role-based access, and bulk operations.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

Layout grids, KPI cards, data tables with sorting/filtering, sidebar navigation, and responsive breakpoints.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

相关技能