AgentSkillsCN

responsive-layout-design

针对跨屏幕尺寸与设备环境的自适应结构与组件行为进行定义的响应式布局设计工作流程。当UX、交互、视觉或设计治理相关产物为主要交付成果时使用;切勿用于后端数据模型或部署流水线的决策。

SKILL.md
--- frontmatter
name: responsive-layout-design
description: "Responsive layout design workflow for defining adaptive structure and component behavior across screen sizes and device contexts. Use when UX, interaction, visual, or design-governance artifacts are the primary deliverable; do not use for backend data-model or deployment pipeline decisions."

Responsive Layout Design

Trigger Boundary

  • Use when layouts break or become unusable across device sizes.
  • Do not use for visual token definition; use design-tokens.
  • Do not use for end-to-end handoff packaging; use figma-handoff.

Goal

Ensure layouts remain usable, readable, and consistent across screen contexts.

Shared Design Contract (Canonical)

  • Use ../design-principles/references/design-governance-contract.md as the single schema and gate source.
  • Track responsive rules with RESP-RUL-* IDs.
  • Run machine validation: python3 ../design-principles/scripts/validate_design_contract.py --manifest <path/to/manifest.json>.

Inputs

  • Breakpoint requirements and device usage data
  • Current layout failures and overflow risks
  • Content constraints and localization expansion risk

Outputs

  • Responsive rule set with RESP-RUL-* IDs
  • Breakpoint behavior and component adaptation specs
  • Risk list for overflow, truncation, and interaction issues

Workflow

  1. Define breakpoint model and layout priorities.
  2. Specify component adaptation per breakpoint.
  3. Validate text expansion and localization stress cases.
  4. Define interaction affordance changes for touch and pointer contexts.
  5. Document regression checkpoints for critical screens.

Quality Gates

  • Core tasks remain usable at all supported breakpoints.
  • Overflow and truncation are controlled for long localized strings.
  • Interaction targets remain accessible on touch devices.
  • Responsive rules are traceable and non-conflicting.

Failure Handling

  • Stop when breakpoints are chosen without user/device evidence.
  • Escalate when critical flows fail on supported viewport ranges.