一键导入
mobile-first
Enforce mobile-first Tailwind CSS patterns, touch targets, layout rules, and testing checklists for all new pages and components in apps/web.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Enforce mobile-first Tailwind CSS patterns, touch targets, layout rules, and testing checklists for all new pages and components in apps/web.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Architectural and code-quality guidelines for cardano-graphical-tx
It's a grpc endpoint that returns information from cardano. There is a typescript sdk and a spec (with protobuf generated types).
基于 SOC 职业分类
| name | mobile-first |
| description | Enforce mobile-first Tailwind CSS patterns, touch targets, layout rules, and testing checklists for all new pages and components in apps/web. |
| license | MIT |
| compatibility | opencode |
All NEW pages and components in apps/web must be built mobile-first. This skill applies to any agent adding routes, components, or layouts to the Next.js App Router frontend.
| Area | Applies to |
|---|---|
| Breakpoint convention | All Tailwind className usage |
| Touch targets | Buttons, links, interactive elements |
| Layout rules | Flex/grid, overflow, stacking order |
| Data tables | Mobile card/stack conversion |
| Images & Performance | next/image, lazy loading, paint cost |
| Navigation | Header, search bar, chain selector |
Base styles are mobile. Override up with sm:, md:, lg:.
className="flex-col md:flex-row"className="flex-row md:flex-col"If you find yourself writing md: on every property, invert the base style instead.
p-3 or px-4 py-2 minimum.text-sm on mobile.md.flex-col. Use md:flex-row only when the content actually fits.<Accordion> or <Drawer> on small screens rather than shrinking everything.On mobile (< md), convert tables to cards or stacked rows.
Don't:
<table className="w-full text-xs">
Do:
<div className="grid gap-4 md:table md:w-full">
next/image with responsive sizes.md.Before marking any UI task complete, do all of the following in order:
className you added. Confirm every property follows mobile-first ordering (base = mobile, override up).pnpm lint and pnpm check; both must pass.md: as the default breakpoint.text-xs on mobile — convert to cards or stacked rows.Accordion or Drawer.