frontend-responsive
使用流畅的布局、相对单位、断点和优化的资源构建响应式、移动优先的用户界面,可以优雅地适应所有屏幕尺寸。在创建或修改 UI 布局、响应式组件、CSS 媒体查询或任何需要适应不同视口大小的代码时,请使用此技能。在实现移动优先设计、添加响应断点(移动/平板电脑/桌面)、使用相对单位(rem/em)、确保触摸友好的点击目标、优化不同屏幕尺寸的图像、跨多个设备进行测试或使版式在所有屏幕上可读时使用此功能。在处理布局组件、网格系统或任何应响应屏幕尺寸更改的 UI 代码时使用此功能。
📖 中文导读:使用流畅的布局、相对单位、断点和优化的资源构建响应式、移动优先的用户界面,可以优雅地适应所有屏幕尺寸。在创建或修改 UI 布局、响应式组件、CSS 媒体查询或任何需要适应不同视口大小的代码时,请使用此技能。在实现移动优先设计、添加响应断点(移动/平板电脑/桌面)、使用相对单位(rem/em)、确保触摸友好的点击目标、优化不同屏幕尺寸的图像、跨多个设备进行测试或使版式在所有屏幕上可读时使用此功能。在处理布局组件、网格系统或任何应响应屏幕尺寸更改的 UI 代码时使用此功能。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: Frontend Responsive description: Build responsive, mobile-first user interfaces that adapt gracefully across all screen sizes using fluid layouts, relative units, breakpoints, and optimized assets. Use this skill when creating or modifying UI layouts, responsive components, CSS media queries, or any code that needs to adapt to different viewport sizes. Use this when implementing mobile-first designs, adding responsive breakpoints (mobile/tablet/desktop), using relative units (rem/em), ensuring touch-friendly tap targets, optimizing images for different screen sizes, testing across multiple devices, or making typography readable on all screens. Use this when working on layout components, grid systems, or any UI code that should respond to screen size changes.
Frontend Responsive
This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle frontend responsive.
When to use this skill:
- When creating or editing UI components that need to adapt to different screen sizes
- When implementing mobile-first design approaches starting with mobile layouts
- When adding CSS media queries and responsive breakpoints (mobile, tablet, desktop)
- When using fluid layouts with percentage-based widths and flexible containers
- When choosing relative units (rem, em) over fixed pixels for better scalability
- When ensuring touch-friendly design with appropriately sized tap targets (minimum 44x44px)
- When optimizing images and assets for mobile network conditions and smaller screens
- When testing UI changes across multiple screen sizes and devices
- When making typography readable across all breakpoints without requiring zoom
- When implementing responsive grid systems or layout components
- When prioritizing content for smaller screens through thoughtful layout decisions
Instructions
For details, refer to the information provided in this file: frontend responsive