Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计通过

responsive-design响应式设计

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

2,056

周安装

84

GitHub Stars

11

下载量

659
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:responsive-design(响应式设计)
来源仓库:https://github.com/akillness/oh-my-skills
仓库路径:skills/responsive-design
安装命令:
npx skills add https://github.com/akillness/oh-my-skills --skill responsive-design
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/akillness/oh-my-skills --skill responsive-design

简介

用于诊断和修复界面在不同设备上的显示问题,优化响应式表现。

  • 适合分析文本溢出、布局错位、媒体查询失效等常见问题,并提供最小修复方案。
  • 使用时需区分容器与视口关系,优先处理关键断点,避免引入冗余样式。
  • 安装命令:npx skills add https://github.com/akillness/oh-my-skills --skill responsive-design
  • 建议结合浏览器开发者工具验证改动效果,确保跨端一致性。

SKILL.md

Responsive Design

Use this skill when the job is to name the failing responsive surface, choose the smallest viable adaptation packet, and leave behind a short strategy + verification brief.

The job is not to dump generic CSS recipes, paste framework snippets, or absorb every neighboring frontend concern.

This skill should:

  1. classify the responsive failure first,
  2. choose one primary responsive packet,
  3. keep viewport vs container ownership explicit,
  4. separate dense-data and media cases from generic layout advice,
  5. keep reflow/verification visible,
  6. route neighboring frontend work honestly.

Read these support docs first:

When to use this skill

  • A team says “this page breaks on mobile” and the real responsive surface is still unclear.
  • A dashboard, nav, form, card grid, pricing page, table, or embed needs a responsive strategy before more breakpoints are added.
  • You need to decide whether the fix belongs in viewport layout rules, container queries, intrinsic layout, responsive media handling, or verification/reflow follow-up.
  • A launch-readiness pass uncovered overflow, wrapping, density, or zoom/reflow failures and someone needs one bounded packet instead of a CSS lecture.
  • The request mixes page-level adaptation, component reuse, and dense-data pressure and needs routing before implementation.

When not to use this skill

  • The main task is reusable primitive / slot / variant API design or component-family ownershipui-component-patterns
  • The main task is keyboard/focus behavior, semantics, labels, contrast, reduced motion, or accessibility-heavy remediationweb-accessibility
  • The main task is breakpoint governance, token policy, or cross-product responsive standardsdesign-system
  • The main task is broad UI critique, polish, heuristic review, or launch-readiness audit across many dimensionsweb-design-guidelines
  • The main task is React hydration, rerender churn, or client-boundary performance behaviorreact-best-practices
  • The responsive strategy is already clear and the job is just implementation; in that case implement directly instead of re-running the router

Instructions

Step 1: Frame the responsive job before naming CSS

Capture the minimum intake packet first.

responsive_intake:
  surface: page-shell | nav | form | table | dashboard | card-grid | media-embed | component-slot | mixed | unknown
  workflow_type: bug-fix | refactor-plan | launch-readiness | review-follow-up | design-handoff | unknown
  primary_packet: page-layout | component-slot | dense-data | media-behavior | verification-reflow | mixed | unknown
  pressure_source: viewport-width | parent-container | content-density | localization-copy | zoom-reflow | mixed | unknown
  signal_source: bug-report | screenshot | browser-resize | qa-review | design-review | a11y-review | mixed | unknown
  confidence: high | medium | low

Rule: do not start with “add another breakpoint.” First label the failing responsive surface.

Step 2: Choose exactly one primary responsive packet

Use the router in references/intake-packets-and-route-outs.md.

Primary packets:

  1. page-layout
  2. component-slot
  3. dense-data
  4. media-behavior
  5. verification-reflow

Pick the highest-leverage packet for the current decision. List anything else as follow-up, not as equal co-owners.

Step 3: Keep the invariants visible

These rules survive every answer:

  • mobile-first defaults are still the safest baseline for feature delivery
  • intrinsic layout beats breakpoint sprawl when it solves the problem cleanly
  • viewport rules own page-shell changes; container rules own reusable slot adaptation
  • breakpoints should reflect content pressure, not device brand names
  • dense tables/toolbars are special cases and often need explicit fallback choices
  • responsive media needs intentional srcset / sizes / aspect-ratio thinking, not just width: 100%
  • zoom/reflow and long-copy stress are verification requirements, not afterthoughts

Step 4: Build the responsive strategy packet

Return this structure:

# Responsive Strategy Packet

## Scope
- Surface:
- Workflow type:
- Primary packet:
- Confidence: high | medium | low

## Current signal
- Main symptom:
- Pressure source:
- What is already known:
- What still needs direct verification:

## Recommended first slice
1. ...
2. ...
3. ...

## Layout decisions
- Mobile-first baseline:
- Intrinsic layout rules:
- Viewport query layer:
- Container-query usage:
- Dense-data / media fallback:

## Verification plan
- Narrow-width checks:
- Zoom / reflow checks:
- Overflow / wrapping checks:
- Content-density / localization checks:

## Ownership and route-outs
- Primary owner:
- Adjacent skills / teams:

Step 5: Use the packet, not a giant CSS tutorial

Pull the packet from references/intake-packets-and-route-outs.md.

Packet rules:

  • page-layout → page shell, nav/sidebar shifts, grid columns, spacing density, viewport breakpoints
  • component-slot → reusable card/panel/module behavior that changes by parent width; container queries or intrinsic component rules
  • dense-data → tables, toolbars, filter bars, dashboards, and intentional fallback choices such as summary, disclosure, or horizontal scroll
  • media-behavior → image/video/embed sizing, srcset / sizes, aspect ratio, crop strategy, and art-direction edge cases
  • verification-reflow → zoom, reflow, overflow, long labels, localization, and screenshot-vs-manual follow-up before release

Step 6: Separate mechanism choice from ownership choice

Use this split in every serious answer:

  • Mechanism — intrinsic layout, viewport queries, container queries, responsive media rules, fallback presentation
  • Ownershipresponsive-design, ui-component-patterns, web-accessibility, design-system, web-design-guidelines, or react-best-practices

If the request starts from a screenshot, QA note, or “mobile is broken” report, say explicitly that the screenshot is the signal artifact, not the finished responsive strategy.

Step 7: Route adjacent work explicitly

Use these route-outs when the problem crosses boundaries:

If the real job is...Route to...
reusable primitive API, variant sprawl, slot ownership, component structureui-component-patterns
semantics, keyboard/focus, labels, contrast, motion, or accessibility-heavy remediationweb-accessibility
shared breakpoint tokens, system-wide density rules, cross-product frontend standardsdesign-system
broad launch-readiness UI critique, hierarchy, polish, or heuristic reviewweb-design-guidelines
hydration, rerender churn, client-boundary cost, or runtime performancereact-best-practices

Output expectations

A strong answer from this skill should:

  1. identify the primary responsive packet,
  2. recommend one bounded adaptation strategy,
  3. name the manual verification still required,
  4. avoid treating framework helpers as a complete strategy,
  5. route broader frontend ownership questions outward instead of absorbing them.

Examples

Example 1: dashboard overflow on mobile

Input

Our dashboard filter bar and data table force horizontal scrolling on mobile. Help us fix the responsive behavior.

Output direction

  • choose dense-data
  • keep a mobile-first shell but make the table/toolbar fallback intentional
  • include zoom/reflow verification and long-label checks
  • route accessibility-heavy remediation to web-accessibility if it becomes the main issue

Example 2: reusable card in many slots

Input

The same card lives in a sidebar, a feed, and a 2-column grid. Should we use container queries or more viewport breakpoints?

Output direction

  • choose component-slot
  • explain why parent-container width is the main driver
  • recommend container queries or intrinsic layout at the card-shell boundary
  • route primitive/API redesign to ui-component-patterns if the structure itself is wrong

Example 3: pricing page before launch

Input

Review this pricing page before launch. Cards feel cramped on mobile and the hero wraps badly.

Output direction

  • keep responsive-design on the layout-adaptation slice only
  • produce one packet for page layout plus dense mobile sections
  • route broader hierarchy / CTA / polish review to web-design-guidelines
  • keep accessibility remediation separate unless it becomes primary

Example 4: system-wide breakpoint debate

Input

Our teams all use different breakpoint and spacing rules across products. Is responsive-design the right skill?

Output direction

  • explain that shared breakpoint/token governance is broader design-system work
  • keep responsive-design narrower than cross-product standards
  • avoid over-triggering on governance-only requests

Example 5: zoom and reflow failure

Input

This form still breaks at 400% zoom and keyboard users lose context. Should we keep fixing it in responsive-design?

Output direction

  • choose verification-reflow first if layout ownership is still unclear
  • include zoom/reflow verification explicitly
  • route keyboard/focus remediation to web-accessibility
  • split the work instead of forcing one skill to own everything

Best practices

  1. Start with the failing responsive surface, not the syntax trick.
  2. Prefer intrinsic layout before adding another breakpoint.
  3. Keep viewport and container ownership explicit.
  4. Treat tables, toolbars, and dense dashboards as packet-worthy special cases.
  5. Treat screenshots and device-mode checks as inputs, not proof of completion.
  6. Keep verification honest: zoom, reflow, long copy, and overflow still matter.
  7. When unsure, route neighboring frontend work explicitly instead of inflating this skill.

References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.36%
按下载量换算226

Claude

30.41%
按下载量换算200

Cursor

19.63%
按下载量换算129

Gemini CLI

10.11%
按下载量换算67

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills