agentleFS
sunflowermmsunflowermm/XRK-AGT/.cursor/skills/responsive-design/SKILL.md

responsive-design

Skill140 starsChanged 8 months agoMITView on GitHub

当需要实现响应式布局(断点、流式排版、容器查询、移动优先)时使用。

31 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use visual-hierarchy, code-review-excellence and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • launchapp-devSkill

    visual-hierarchy

    Establish clear visual hierarchy through size, weight, color, spacing, and positioning.

    Also in 3 projects that use this

  • xfstudioSkill

    code-review-excellence

    Master effective code review practices to provide constructive feedback, catch bugs early, and foster knowledge sharing while maintaining team morale. Use when reviewing pull requests, establishing review standards, or mentoring developers.

    Also in 3 projects that use this

  • xfstudioSkill

    typescript-advanced-types

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications. Use when implementing complex type logic, creating reusable type utilities, or ensuring compile-time type safety in TypeScript projects.

    Also in 3 projects that use this

  • BlockSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.

    Also in 8 projects that use this

  • VercelSkill

    vercel-react-best-practices

    React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

    Also in 3 projects that use this

  • GoogleSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 3 projects that use this

The file

Files
SKILL.md

权威入口

  • .cursor/skills/responsive-design/references/breakpoint-strategies.md
  • .cursor/skills/responsive-design/references/fluid-layouts.md
  • .cursor/skills/responsive-design/references/container-queries.md

适用场景

  • 页面需适配手机、平板、桌面等多尺寸设备。
  • 组件需要独立响应父容器变化。
  • 需要避免硬编码尺寸造成的溢出与断行。

非适用场景

  • 不用于替代业务逻辑或接口性能优化。
  • 不用于“只做 PC 固定宽度”的单端页面。

执行步骤

  1. 采用移动优先设计基础布局。
  2. 定义关键断点与内容重排策略。
  3. 关键组件启用容器查询与弹性单位。
  4. 检查表单、表格、导航在窄屏可用性。
  5. 验证 375/768/1024/1440 等尺寸表现。

常见陷阱

  • 仅缩放元素,不重排信息结构。
  • 用过多固定像素导致局部溢出。
  • 忽略横屏与超宽屏下的阅读体验。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.