用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mikailustuner/OmniRule --skill responsive-design命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Bun runtime: HTTP server, file I/O, SQLite, test runner, package manager, bundler — all-in-one JS toolchain.
Clerk: Drop-in auth UI, Organizations, User management, JWT templates, webhooks, Next.js middleware integration.
Gelişmiş masaüstü, tarayıcı ve işletim sistemi kontrol yeteneği. Görsel (koordinat tabanlı) fare/klavye otomasyonu, DOM manipülasyonu, pencere yönetimi, gelişmiş dosya, ağ ve süreç yönetimini kapsar.
基于 SOC 职业分类
正在显示 SKILL.md
| name | responsive-design |
| description | Breakpoint strategy, mobile-first, responsive images |
| triggers | {"extensions":[".css",".scss",".tsx"],"keywords":["responsive","breakpoint","mobile-first","media query","viewport","fluid","container query"]} |
| auto_load_when | Building responsive layouts |
| agent | style-architect |
| tools | ["Read","Write","Bash"] |
Focus: Breakpoints, mobile-first, responsive strategies
When to define breakpoints:
├── Design changes → yes
├── Content reflow needed → yes
├── Existing breakpoints → extend
└── Same layout → single
When to use common breakpoints:
├── Mobile portrait → 320-480px
├── Mobile landscape → 480-768px
├── Tablet → 768-1024px
├── Desktop → 1024-1440px
├── Large desktop → 1440px+
When to use content-based:
├── Text too wide → breakpoint
├── Images pixelated → breakpoint
├── Touch targets small → breakpoint
└── Design breaks → breakpoint
When to start mobile:
├── New project → yes
├── Unknown audience → yes
├── Mobile important → yes
└── Desktop-only → desktop-first
When to use min-width:
├── Mobile-first → base styles, then min-width
├── Additive changes → yes
├── Override at each breakpoint → yes
└── New component → mobile first
When to use max-width:
├── Desktop-first → base desktop, max-width
├── Legacy support → yes
├── Rare for new projects → min-width
└── Specific overrides → both
When to use srcset:
├── Multiple sizes → yes
├── Art direction → picture
├── Resolution switching → srcset
└── Bandwidth considerations → srcset
When to use picture element:
├── Different crops → yes
├── Format switching → yes
├── Browser support → different formats
└── Size-based loading → media queries
When to use Flexbox:
├── One dimension → yes
├── Space distribution → yes
├── Alignment → yes
└── 2D layout → Grid
When to use Grid:
├── 2D layout → yes
├── Complex alignment → yes
├── Page layout → yes
└── Component → Flexbox or Grid
When to use container queries:
├── Self-contained components → yes
├── Different contexts → yes
├── Isolated responsive → yes
└── Page breakpoints sufficient → no
Touch target minimum:
├── Minimum size → 44x44px (iOS), 48x48px (Android)
├── Padding included → yes
├── Links close together → group
└── Custom sizing → ensure visibility
When to add hover states:
├── Desktop only → hide on touch
├── Hybrid devices → consider hover
├── Clear state → indicate interactable
└── Avoid stuck state → mobile-first
When to use fluid type:
├── Many sizes → yes
├── Smooth resizing → yes
├── Simple project → static + breakpoints
└── Large text → clamp()
When to use viewport units:
├── Full-width headers → yes
├── Hero text → yes
├── Body text → avoid (scaling issues)
└── Container-relative → use container units
❌ Desktop-first breakpoints (everything starts wide)
✅ Mobile-first — min-width breakpoints only
❌ Fixed pixel widths on containers
✅ max-width with 100% fluid containers
❌ Touch targets smaller than 44×44px
✅ Minimum 44×44px clickable areas for mobile
❌ Viewport-locked font sizes (px only)
✅ Fluid typography with clamp() or rem units
❌ Testing only at 375px and 1440px
✅ Test the fluid range — resize slowly between breakpoints
| Concern | Solution | Example |
|---|---|---|
| Container width | max-width + padding | max-width: 1280px |
| Fluid columns | CSS Grid auto-fill | repeat(auto-fill, minmax(280px, 1fr)) |
| Fluid type | clamp() | clamp(1rem, 2.5vw, 1.5rem) |
| Breakpoints | 640 / 768 / 1024 / 1280 | Tailwind defaults |
| Images | max-width: 100% | Prevent overflow |
| Touch targets | min 44px | WCAG 2.5.5 |