Token导航 LogoToken导航

Agent Skill · 前端设计

responsive-design(响应式设计)

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

responsive-design 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 5,784。

总安装 606周安装 25GitHub Stars 11下载 198核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

用于界面在不同屏幕尺寸下的适配设计与验证。帮助选择正确的响应式策略并明确视口与容器决策。包含布局检查清单和交接规范,避免过度依赖断点。

安装命令:npx skills add https://github.com/akillness/skills-template --skill responsive-design 设计时应结合品牌规范和用户任务,并通过预览确认文本溢出等问题

来源仓库内路径:skills/responsive-design

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/akillness/skills-template --skill responsive-d…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

responsive-design 怎么安装?

在终端执行 npx skills add https://github.com/akillness/skills-template --skill responsive-design。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

responsive-design 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

responsive-design 需要什么权限?

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

responsive-design 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

responsive-design 用的人多吗?

公开数据是累计安装 606 次,近一周安装 25 次,下载 198 次,GitHub 11 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

responsive-design 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
responsive-design

响应式设计 · 本页

60611操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Responsive Design

Use this skill when the main question is "how should this interface adapt across screen sizes or container sizes, and how do we verify it without turning the codebase into breakpoint soup?"

This skill is not a generic CSS tutorial. It should:

  1. classify the responsive problem,
  2. choose the right adaptation surface,
  3. keep viewport and container decisions explicit,
  4. call out verification requirements early,
  5. route neighboring concerns to the right frontend skill.

Read references/layout-decision-checklist.md before designing or refactoring a responsive layout. Read references/handoff-boundaries.md when deciding whether responsive-design, ui-component-patterns, web-accessibility, design-system, or web-design-guidelines should own the next step.

When to use this skill

  • Fix layouts that overflow, wrap badly, collapse awkwardly, or force horizontal scrolling on smaller screens
  • Plan mobile-first page, dashboard, card-grid, form, nav, table, or media layouts
  • Decide whether a change belongs in viewport breakpoints, container queries, intrinsic layout rules, or responsive media behavior
  • Review whether a layout is overfitted to one screen size or relying on too many one-off overrides
  • Turn vague requests like “this page breaks on mobile” into a concrete responsive strategy and verification plan
  • Define responsive test cases for zoom/reflow, content density, and breakpoints
  • Add container-query thinking to reusable UI without turning every problem into a component-API rewrite

When not to use this skill

  • The main task is reusable primitive / variant / slot API design → use ui-component-patterns
  • The main task is keyboard/focus behavior, semantics, labels, contrast, reduced motion, or manual a11y remediation → use web-accessibility
  • The main task is system-wide tokens, breakpoint policy across many products, naming rules, or contribution governance → use design-system
  • The main task is broad UI critique, design polish, or interface-guideline review → use web-design-guidelines
  • The task is mostly React/Next.js performance, hydration, or rerender behavior → use react-best-practices
  • The layout adaptation rules are already clear and the job is just implementation; in that case implement directly instead of reopening the architecture decision

Instructions

Step 1: Classify the responsive failure before writing CSS

Do not start with “add another breakpoint.”

First decide which kind of problem you have:

  • Viewport adaptation — page/grid/nav/layout changes because the available screen width changes
  • Container adaptation — a component needs to behave differently depending on the width of its parent, not the whole viewport
  • Content-density stress — real text, tables, cards, filters, or localized strings do not fit the assumed layout
  • Media adaptation — images/video/embeds crop, distort, or download the wrong asset size
  • Verification failure — the layout might look fine at one browser width but fail under zoom, reflow, or narrower containers

Quick framing template:

Responsive problem:
- Surface: dashboard table + filter toolbar
- Failure mode: horizontal scrolling on mobile and at 400% zoom
- Likely owner: responsive-design
- Related handoff: web-accessibility for reflow verification, ui-component-patterns only if the toolbar primitive API is wrong

Step 2: Choose the adaptation surface deliberately

Use the smallest surface that actually owns the behavior.

Use viewport rules when
  • the whole page or major layout region changes with screen size
  • navigation, sidebars, page columns, or full-page density shifts are involved
  • the layout decision should be consistent across many containers on the page
Use container rules when
  • a reusable card, panel, or embedded module appears in multiple widths
  • the component should adapt based on the width of its parent, not the browser window
  • the same component can appear in a sidebar, feed, modal, or dashboard slot
Use intrinsic/flexible layout first when possible

Prefer layouts that naturally adapt before adding more conditions:

  • fluid widths
  • minmax() / auto-fit grid
  • wrapping flex rows
  • sensible max-width
  • text wrapping / line length constraints
  • content-driven sizing

If intrinsic layout solves the problem, do not create a tower of breakpoints.

Step 3: Start from a mobile-first baseline

Mobile-first is still the safest default for feature delivery.

Healthy baseline rules:

  • define the smallest-screen/default layout first
  • add complexity only when the space is actually available
  • treat larger layouts as progressive enhancement
  • write breakpoints around layout pressure, not device brand names

Bad pattern:

@media (max-width: 1024px) { ... }
@media (max-width: 992px) { ... }
@media (max-width: 991px) { ... }
@media (max-width: 768px) { ... }
@media (max-width: 767px) { ... }

Better pattern:

.dashboard {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .dashboard {
    grid-template-columns: 18rem minmax(0, 1fr);
  }
}

Use fewer breakpoints with clearer reasons.

Step 4: Use container queries when the component’s parent drives the layout

Container queries are not for every problem, but they are the clean answer when viewport rules create brittle component reuse.

Use them when:

  • a card or panel is reused in multiple column widths
  • a component should switch density/layout based on the slot it lives in
  • the same module appears in a feed, sidebar, modal, or dashboard area

Pattern:

.card-shell {
  container-type: inline-size;
}

.card {
  display: grid;
  gap: 0.75rem;
}

@container (width > 42rem) {
  .card {
    grid-template-columns: 12rem minmax(0, 1fr);
    align-items: start;
  }
}

Do not use container queries to hide a confused component API. If the real issue is primitive structure, route to ui-component-patterns.

Step 5: Plan for common responsive pressure points

Navigation

Prioritize wrapping, overflow handling, menu trigger behavior, and content hierarchy. Avoid nav bars that only work at one label length.

Forms and toolbars

Prioritize field stacking, button grouping, label/help/error space, and real text length under smaller widths.

Tables and data-heavy views

Prioritize what must remain tabular versus what can stack, collapse, scroll, summarize, or switch presentation. Reflow exceptions can exist, but make them intentional.

Cards, grids, and feeds

Prioritize intrinsic column behavior, readable line lengths, and whether cards should adapt to their container.

Media and embeds

Prioritize aspect ratio, crop strategy, object-fit, srcset / sizes, and whether the layout depends on art direction.

Typography and density

Prioritize readable line lengths, spacing scale, wrapping, and hierarchy; fluid type can help, but do not let it replace layout thinking.

Step 6: Treat accessibility and reflow as verification requirements, not afterthoughts

Responsive design is not just about “looks okay when resized.”

Always check:

  • does content avoid unnecessary two-dimensional scrolling?
  • do long labels, localization, and user zoom break the layout?
  • do controls remain reachable and readable?
  • does the layout still make sense at narrow widths and high zoom?

If the main work becomes semantic remediation, touch-target fixes, keyboard/focus behavior, or manual accessibility verification, route to web-accessibility.

Step 7: Keep neighboring concerns as route-outs, not ownership theft

This skill should acknowledge nearby work without absorbing it.

Examples:

  • if a responsive problem comes from an overstuffed reusable primitive, route API redesign to ui-component-patterns
  • if the team needs one breakpoint/token policy across many apps, route governance to design-system
  • if the request is “audit this whole interface,” route broad critique to web-design-guidelines
  • if reflow issues become accessibility remediation, route verification/fixes to web-accessibility

Mixed requests are normal. Split them explicitly instead of forcing one skill to own everything.

Step 8: Produce the responsive strategy packet

End with a concise artifact another engineer or agent can execute.

Preferred format:

# Responsive Strategy Packet

## Surface
- Page / component / container:
- Failure mode:
- Primary owner:

## Layout strategy
- Mobile-first baseline:
- Viewport breakpoints:
- Container-query usage:
- Intrinsic layout rules:
- Media behavior:

## Boundaries
- Keeps:
- Routes to neighboring skills:

## Verification
- Narrow-width checks:
- Zoom/reflow checks:
- Overflow/wrapping checks:
- Responsive media checks:

Examples

Example 1: Dashboard overflow on mobile

Input: “This analytics dashboard looks fine on desktop but the filter bar and table break on mobile.”

Good output direction:

  • classify the problem as page-level layout + data-view adaptation
  • keep a mobile-first single-column baseline
  • decide whether the table needs intentional horizontal scroll, summarization, or a stacked representation
  • include zoom/reflow verification and route semantic remediation to web-accessibility if needed

Example 2: Reusable card in many widths

Input: “The same product card appears in a sidebar, a 2-column grid, and a full-width feed. Should we keep adding viewport breakpoints?”

Good output direction:

  • classify the problem as container-driven adaptation
  • recommend container queries or intrinsic layout rules at the card-shell boundary
  • keep primitive API questions routed to ui-component-patterns
  • avoid adding page-level breakpoints when the parent slot is the real driver

Example 3: System-wide breakpoint debate

Input: “Our teams all use different breakpoints and spacing rules. Is this a responsive-design issue?”

Good output direction:

  • explain that cross-app breakpoint and token policy is broader design-system work
  • preserve responsive-design for local/page/component adaptation strategy
  • suggest a clean handoff instead of over-triggering this skill

Best practices

  1. Prefer intrinsic layout and content-driven sizing before reaching for many breakpoint overrides.
  2. Use mobile-first defaults and add complexity only where space genuinely changes the job to be done.
  3. Use container queries when the component’s parent width matters more than the viewport width.
  4. Write verification steps for overflow, wrapping, zoom/reflow, and responsive media instead of relying on visual guesswork.
  5. Treat tables, nav, forms, and filter bars as high-risk responsive surfaces that need explicit decisions.
  6. Route component API redesign to ui-component-patterns, not to more CSS.
  7. Route accessibility-heavy remediation to web-accessibility, especially when reflow and usability failures dominate.

References

平台分布

Codex

35.94%
按下载量换算71

Claude

30.92%
按下载量换算61

Cursor

18.9%
按下载量换算37

Gemini CLI

8.94%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

继续浏览同类 Skills