Adapt

From aladicf/better-web-ui · View interactive version

Adapt is an AI agent skill from the GitHub repository aladicf/better-web-ui. Adapt designs for narrow, medium, wide, embedded, or print web contexts without losing usability, hierarchy, or target sizing. Use when the user mentions responsive design, breakpoints, narrow layouts, viewport changes, touch-capable browsers, or cross-context adaptation.

How to use this skill

Skill file

Adapt existing designs to work effectively across different contexts - different screen sizes, devices, platforms, or use cases.

MANDATORY PREPARATION

Users start this workflow with /adapt. Once this skill is active, load $frontend-design — it contains design principles, anti-patterns, and the Context Gathering Protocol. Follow that protocol before proceeding — if no design context exists yet, you MUST load $setup first. Additionally gather: target platforms/devices and usage contexts.

Consult the responsive reference for narrow-first adaptation, fluid behavior, and container-query strategy.

Consult the spacing system when adaptation problems are really grouping, rhythm, or width-discipline issues.

Consult the cognitive load when smaller screens or constrained contexts amplify too many visible choices at once.


Assess Adaptation Challenge

Understand what needs adaptation and why:

  1. Identify the source context:
  1. Understand target context:
  1. Identify adaptation challenges:

CRITICAL: Adaptation is not just scaling - it's rethinking the experience for the new context.

Treat smaller screens as real constraints, not as desktop layouts that got squeezed in the wash.

Plan Adaptation Strategy

Create context-appropriate strategy:

First Principles

Narrow-Layout Adaptation (Wide → Compact)

Layout Strategy:

Interaction Strategy:

Content Strategy:

Navigation Strategy:

Mid-Width Adaptation

Layout Strategy:

Interaction Strategy:

Wide-Layout Expansion

Layout Strategy:

Interaction Strategy:

Content Strategy:

Print Adaptation (Screen → Print)

Layout Strategy:

Content Strategy:

Email Adaptation (Web → Email)

Layout Strategy:

Interaction Strategy:

Implement Adaptations

Apply changes systematically:

Responsive Breakpoints

Choose appropriate breakpoints:

Layout Adaptation Techniques

Touch Adaptation

Content Adaptation

Navigation Adaptation

IMPORTANT: Test on real devices, not just browser DevTools. Device emulation is helpful but not perfect.

NEVER:

Verify Adaptations

Test thoroughly across contexts:

Remember: You're a responsive web design expert. Make experiences that feel well-adapted to each web context while maintaining brand and functionality consistency. Adapt intentionally, test thoroughly.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.