Communitygithub.com

YepAPI/skills

行動優先的響應式設計、觸控目標及 PWA 模式。

skills 是什麼?

此技能專注於行動優先的網頁設計與漸進式網絡應用(PWA)開發。它提供了一套具體的規則,確保使用者在手機、平板和桌面設備上都能獲得一致且優化的體驗。技能強調使用最小寬度(min-width)斷點來實現響應式佈局,並要求所有按鈕和連結的觸控目標至少為 44x44 像素。此外,它善用視窗單位(如 dvh)和安全區域(safe-area-inset)來適應現代瀏覽器 UI 及有瀏海或動態島的裝置。此技能也涵蓋 PWA 必備要素,如 manifest.json、服務工作執行緒及主題色 meta 標籤,並建議行動版首次載入的 JavaScript 大小應低於 200KB。最後,它強調輸入類型(如 email、tel)的正確使用以觸發合適鍵盤,避免僅依賴懸浮(hover)的互動方式,並強烈建議在真實裝置上進行測試,以找出模擬器無法發現的效能問題與觸控異常。

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

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

行動優先設計

規則

  • 先為行動裝置設計,再為桌上型電腦增強 — 使用 min-width 斷點
  • 觸控目標:按鈕和連結的最小尺寸為 44x44 像素
  • 視窗單位:全螢幕佈局使用 dvh(考量行動瀏覽器 Chrome 介面)
  • 安全區域:在瀏海或動態島裝置上使用 env(safe-area-inset-*)
  • PWA 基礎:manifest.json、服務工作執行緒、<meta name="theme-color">
  • 效能預算:行動版首次載入的 JS 應小於 200KB
  • 輸入類型:使用 type="email"、type="tel"、type="number" 以觸發正確的鍵盤
  • 避免僅依賴懸浮(hover)的互動方式 — 所有互動都必須支援觸控點按
  • 在真實裝置上測試 — 模擬器會遺漏效能問題與觸控異常

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.

相關技能