tailwindcss-mobile-first — скилл для Claude Code: mobile-first
Скилл для ИИ-агента, который подсказывает, как верстать адаптивные интерфейсы на Tailwind CSS v4 по принципу mobile-first. Пригодится, когда нужно разложить брейкпоинты, типографику и сетки по полочкам.
npx skills add JosiahSiegel/claude-plugin-marketplace --skill tailwindcss-mobile-first -a claude-codeЧто делает tailwindcss-mobile-first
Скилл включается, когда в проекте всплывает адаптивная вёрстка на Tailwind CSS v4: брейкпоинты sm:, md:, lg:, xl:, 2xl:, порядок утилит, отзывчивая типографика вроде text-base sm:text-lg lg:text-xl, сетки и flexbox, скрытие и показ блоков через hidden md:block. Отдельно разбираются max-* брейкпоинты для переопределений в сторону десктопа, контейнерные запросы @container для компонентов, которые реагируют на свою ширину, а не на ширину окна.
Внутри — справочник по брейкпоинтам, примеры паттернов, рецепты для safe-area и обработка touch против hover. Агент идёт по шагам: сначала базовые утилиты без префикса для мобильного вида, потом постепенное усиление через префиксы; брейкпоинты советует выбирать по контенту, а не по названиям устройств. Есть отдельный разбор граблей: утилиты без префикса работают на всех размерах, а с префиксом — на этом брейкпоинте и выше.
Ограничение простое: скилл про Tailwind CSS v4, и на проекте со старой версией или другим CSS-фреймворком он будет мимо. Интерактивные элементы он советует делать не меньше 44px, а hover-состояния дублировать через focus и active, потому что на тач-устройствах hover не срабатывает.
Какие задачи решает
- разложить адаптивную вёрстку по брейкпоинтам Tailwind
- сделать отзывчивую типографику без скачков между размерами
- настроить контейнерные запросы для переиспользуемых компонентов
- учесть safe-area на устройствах с вырезом
- починить hover-эффекты, которые не работают на тач-экранах
Примеры запросов агенту
- перепиши этот блок на mobile-first с брейкпоинтами Tailwind
- почему у меня
hidden md:blockне работает как надо? - сделай карточку отзывчивой через
@container
Как установить tailwindcss-mobile-first
1Через Skills CLI (Vercel)
npx skills add JosiahSiegel/claude-plugin-marketplace --skill tailwindcss-mobile-first -a claude-code2Вручную: положить файлы
~/.claude/skills/tailwindcss-mobile-first/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/tailwindcss-mobile-first/
1Через Skills CLI (Vercel)
npx skills add JosiahSiegel/claude-plugin-marketplace --skill tailwindcss-mobile-first -a codex2Вручную: положить файлы
.agents/skills/tailwindcss-mobile-first/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add JosiahSiegel/claude-plugin-marketplace --skill tailwindcss-mobile-first -a cursor2Вручную: положить файлы
.cursor/skills/tailwindcss-mobile-first/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install JosiahSiegel/claude-plugin-marketplace tailwindcss-mobile-first2Вручную: положить файлы
.github/skills/tailwindcss-mobile-first/SKILL.md1Через Skills CLI (Vercel)
npx skills add JosiahSiegel/claude-plugin-marketplace --skill tailwindcss-mobile-first -a gemini-cli2Командой платформы
gemini skills install https://github.com/JosiahSiegel/claude-plugin-marketplace --path plugins/tailwindcss-master/skills/tailwindcss-mobile-firstВручную: положить файлы
.devin/skills/tailwindcss-mobile-first/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add JosiahSiegel/claude-plugin-marketplace --skill tailwindcss-mobile-first -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о tailwindcss-mobile-first
Как установить tailwindcss-mobile-first в Claude?
Выполните npx skills add JosiahSiegel/claude-plugin-marketplace --skill tailwindcss-mobile-first -a claude-code. После этого файл скилла появится по пути ~/.claude/skills/tailwindcss-mobile-first/SKILL.md.
Что делает tailwindcss-mobile-first?
Даёт агенту справочник и паттерны для mobile-first вёрстки на Tailwind CSS v4: брейкпоинты, отзывчивая типографика, сетки, контейнерные запросы, safe-area и обработка touch против hover.
С какими версиями Tailwind работает скилл?
Он написан под Tailwind CSS v4. На проекте со старой версией или другим CSS-фреймворком подсказки будут расходиться с вашим кодом.
Исходный текст
SKILL.md · MIT
--- name: tailwindcss-mobile-first description: | Mobile-first responsive design patterns with Tailwind CSS v4 (2025-2026). PROACTIVELY activate for: (1) mobile-first design with Tailwind breakpoints (sm:, md:, lg:, xl:, 2xl:), (2) responsive utility ordering (default = mobile, then breakpoints), (3) responsive typography (text-base sm:text-lg lg:text-xl), (4) responsive grids and flexbox, (5) hide/show across breakpoints (hidden md:block), (6) max-* breakpoints for desktop-down overrides, (7) container queries (@container) for component-level responsiveness, (8) safe-area insets and notch handling, (9) landscape vs portrait orientation, (10) touch vs hover (hover: with @media). Provides: breakpoint reference, mobile-first patterns, container-query examples, safe-area recipes, and touch/hover handling. --- # Tailwind Mobile-First Skill Use this skill for Tailwind CSS mobile-first responsive design: breakpoint strategy, fluid typography and spacing, touch targets, container queries, safe areas, responsive layouts, media, navigation, and mobile performance. ## When to Use This Skill Use when the user asks for tasks covered by the frontmatter triggers, especially implementation guidance, debugging, architecture choices, production hardening, or performance-sensitive decisions in this domain. Start from this orchestrator, then load the focused reference file that matches the requested detail level. ## Core Workflow 1. Start with unprefixed utilities for the mobile baseline, then progressively enhance with `sm:`, `md:`, `lg:`, `xl:`, and `2xl:`. 2. Choose breakpoints from content needs rather than device names; override Tailwind v4 theme breakpoints only when the design system requires it. 3. Use fluid typography and spacing with `clamp()` for smoother scaling between breakpoints while preserving accessibility via `rem + vw`. 4. Make interactive elements touch-safe with 44px recommended targets, adequate spacing, clear labels, and mobile navigation patterns. 5. Use container queries for reusable components that must respond to their own width instead of viewport width. 6. Reserve media dimensions with aspect-ratio utilities and use safe-area utilities for notched devices and fixed mobile UI. ## Key Gotchas - Unprefixed Tailwind classes apply at every size; breakpoint-prefixed utilities apply at that breakpoint and above. - Ordering classes desktop-first does not make the design desktop-first, but it often obscures intent and increases bugs. - Hover-only interactions fail on touch devices; pair hover states with focus, active, or explicit controls. - Videos and images without reserved aspect ratios can cause Cumulative Layout Shift. - Fixed bottom navigation must account for safe-area insets and add content padding to avoid overlap. ## Reference Map - [references/mobile-first-complete-guide.md](references/mobile-first-complete-guide.md) - Full original guide covering philosophy, breakpoints, fluid type/spacing, touch targets, container queries, layouts, responsive images/type, navigation, safe areas, mobile performance, testing, and responsive video patterns. ## Response Guidance - Preserve the user's existing framework, library, and tooling choices unless there is a clear compatibility or performance reason to suggest an alternative. - Give copy-pasteable code only for the exact task at hand; otherwise point to the relevant reference section. - Call out tradeoffs, failure modes, and verification steps for production workflows. - Prefer accessible, maintainable, measurable solutions over clever micro-optimizations.
© JosiahSiegel · MIT · JosiahSiegel/claude-plugin-marketplace