/caddis-extras:responsive-mobile-nativefrom caddis-extras
Adapt desktop-first web apps into responsive, mobile-native PWAs from one codebase. Use when the user says "make this PWA", "mobile-friendly", "tablet layout", or "responsive design".
Ships in caddis-extras. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Convert any web app or website into a single codebase that delivers a desktop-grade experience on large screens and a mobile-native experience on small screens — without maintaining two separate apps or codebases.
This skill applies to any framework (React, Vue, Angular, Svelte, plain HTML/CSS) and is compatible with any coding agent (Claude Code, Cursor, Copilot, Windsurf, etc.).
PWA + Responsive Web is the correct approach. Do not suggest React Native, Capacitor, or Expo unless the user explicitly requires App Store distribution. A well-executed responsive PWA is indistinguishable from a native app on modern iOS and Android, ships as one codebase, and needs no app store.
The desktop layout is preserved exactly. The mobile layout is a redesign for the same data, not a scaled-down version of the desktop.
Before writing a single line of code, produce a transformation plan.
Read the app and identify every layout primitive present. Map each one to its
mobile equivalent using the Transformation Catalogue (see references/transformation-catalogue.md).
Present the plan to the user and wait for confirmation before implementing.
Identify which of the following exist in the current app:
| Primitive | Look for |
|---|---|
| Top navigation bar | <nav>, <header>, topbar, navbar |
| Sidebar / left panel | aside, sidebar, drawer, left rail |
| Data table | <table>, grid with many columns |
| Card grid | repeating card/tile layout |
| KPI strip | horizontal row of metric cards |
| Map | Leaflet, Mapbox, Google Maps, canvas |
| Modal / dialog | overlay, dialog, popup |
| Multi-tab interface | tab bar, tab panels |
| Form with many fields | multi-column form layout |
| Dense toolbar | icon bars, filter strips, action rows |
| Hover-dependent UI | tooltips, dropdowns, hover cards |
| Fixed sidebar navigation | navigation that is always visible |
Output the plan in this exact format before touching any code:
MOBILE TRANSFORMATION PLAN
===========================
Detected primitives: [list]
Breakpoint strategy: [chosen breakpoints]
Transformations:
1. [Primitive] → [Mobile pattern] — [one-line reason]
2. ...
Touch & interaction changes:
- [list of hover→tap conversions, tap target expansions, gesture additions]
PWA additions:
- [manifest.json, service worker, meta tags needed — or "already present"]
Files to be modified: [list]
New files to be created: [list]
Estimated scope: [S / M / L]
Use mobile-first breakpoints. Write base styles for mobile, override for larger screens.
xs: 0px — small phones (iPhone SE)
sm: 480px — large phones (iPhone Pro Max, Galaxy)
md: 768px — tablets portrait (iPad)
lg: 1024px — tablets landscape, small laptops
xl: 1280px — desktop
2xl: 1536px — large desktop / wide monitors
| Framework | Mobile-first syntax |
|---|---|
| Tailwind CSS | base md:override xl:override |
| CSS Modules / vanilla | base styles; @media (min-width: 768px) { override } |
| Styled Components | ${({ theme }) => theme.breakpoints.up('md')} |
| CSS-in-JS (Emotion) | @media (min-width: 768px) { ... } |
Never use display: none to hide content on mobile. Restructure, collapse,
or defer it instead. Hidden content still loads — it just becomes a broken experience.
Always implement in this sequence to avoid regressions:
useBreakpoint hook or CSS custom property for JS-driven layout switchingThe single most impactful change. Apply this regardless of what else the app has.
When: App has 3–5 primary navigation destinations.
Desktop: Mobile:
┌─────────────────────────┐ ┌──────────────────────┐
│ Logo Nav1 Nav2 Nav3 │ │ Page content │
├─────────────────────────┤ │ │
│ Content │ │ │
│ │ ├──────────────────────┤
└─────────────────────────┘ │ 🏠 📋 🗺️ ⚙️ │
└──────────────────────┘
Rules for the bottom nav bar:
position: fixed; bottom: 0padding-bottom: env(safe-area-inset-bottom) for iPhone notch safetypadding-bottom: 64px to avoid content sitting behind itWhen: App has more than 4–5 primary destinations (e.g., a dashboard with 6–9 tabs).
Do NOT spread all tabs across a scrollable bottom bar. Use a 4+1 pattern: pin the 4 most important destinations as labelled icon buttons, and add a 5th "More" button that opens an upward dropdown panel listing all overflow tabs.
Mobile bottom bar (4+1):
┌─────────────────────────────────┐
│ Overview Trends Product Geo More▲ │
└─────────────────────────────────┘
"More" tapped → upward panel:
┌─────────────────────────────────┐
│ ✓ Executive │ │ ← active overflow tab gets a check
│ Verbatim │ │
│ Sampling │ │
└─────────────────────────────────┘
│ Overview Trends Product Geo More▲ │ ← bar still visible below
Implementation rules:
position: fixed, anchored at bottom: calc(4rem + env(safe-area-inset-bottom))AnimatePresence + motion.div — y: 16 → 0 on enter, fade out on exitmin-w-[180px], right-aligned against the safe-area edgeWhy upward dropdown and NOT a slide-in drawer for tab overflow?
Real-world example: an analytics dashboard (9 tabs → 4 pinned: Overview, Trends,
Product, Geography + "More" for the remaining 5 detail tabs)
frontend/src/components/layout/MobileBottomNav.tsx
When: App has a sidebar with filters, settings, or secondary navigation that doesn't fit in the bottom nav.
touch-action: pan-y to the overlay so vertical scroll still worksFor detailed patterns, see references/transformation-catalogue.md.
Every page must have this in <head>:
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
viewport-fit=cover is required for correct safe-area behaviour on iPhones with notches.
Add these for a mobile-native feel. See references/pwa-checklist.md for full details.
Minimum viable PWA (required for "Add to Home Screen" and splash screen):
<!-- In <head> -->
<meta name="theme-color" content="#YOUR_BRAND_COLOR" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<link rel="manifest" href="/manifest.json" />
// manifest.json (minimum viable)
{
"name": "App Name",
"short_name": "AppName",
"start_url": "/",
"display": "standalone",
"background_color": "#ffffff",
"theme_color": "#YOUR_BRAND_COLOR",
"icons": [
{ "src": "/icon-192.png", "sizes": "192x192", "type": "image/png" },
{ "src": "/icon-512.png", "sizes": "512x512", "type": "image/png" }
]
}
See references/touch-and-interaction.md for the full ruleset. Core rules:
Minimum tap target: 44×44px (Apple HIG / WCAG 2.5.8). Apply to every interactive element — buttons, nav items, table row actions, icon buttons.
Remove all hover-only interactions. Any feature that only appears on
:hover must have a tap/long-press equivalent or be made always-visible.
Common culprits: tooltip-on-hover, action buttons in table rows, dropdown menus.
Eliminate cursor: pointer as a signal. Provide visible affordance instead.
Replace right-click context menus with long-press menus or action sheets.
Scroll containers: Add -webkit-overflow-scrolling: touch and ensure
overscroll-behavior: contain on nested scrollable areas.
These are the most common mistakes that produce a broken mobile experience:
| Anti-pattern | Why it's wrong | Correct approach |
|---|---|---|
display: none on mobile content | Content still loads; UX is just broken | Restructure, collapse, or lazy-load |
| Scaling down font sizes on mobile | Text becomes unreadable | Use fluid type or keep same size |
| Keeping 6+ column tables on mobile | Horizontal scroll is a broken pattern | Transform to card list |
| Hover-only tooltips | Tooltips never show on touch devices | Always-visible labels or tap-to-reveal |
| Fixed pixel widths on containers | Layout breaks on narrow screens | Use max-width + 100% |
| Desktop modals (large, centered) on mobile | 90% screen coverage, hard to dismiss | Transform to bottom sheet |
| Ignoring safe areas (notch / home bar) | Content hidden behind device UI | Use env(safe-area-inset-*) |
pointer-events: none without touch alternative | Blocks touch entirely | Use conditional logic |
| Multiple horizontal scroll areas | Confusing UX, hard to distinguish | Stack vertically or paginate |
| Assuming mouse precision | Tiny click targets, no touch feedback | 44px min, add :active state |
The agent must verify every item before declaring the work complete:
Layout
Navigation
Touch
:active state)Typography & Readability
PWA
viewport meta tag present and correctmanifest.json present and validtheme-color meta set to brand colourRead these when you need detail beyond what is in this file:
| File | When to read it |
|---|---|
references/transformation-catalogue.md | Full patterns for every desktop primitive → mobile equivalent |
references/touch-and-interaction.md | Complete touch rules, gesture hooks, scroll handling |
references/pwa-checklist.md | Full PWA setup including service worker, icons, offline |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub saajunaid/caddis-plugin --plugin caddis-extras81 skills in this plugin
/adopt-rbacPointer to the org's RBAC adoption skill. Use for "add RBAC to this app" or "adopt rbac-kit"./agent-md-refactorRefactor bloated agent instruction files (AGENTS.md, .cursorrules, .github/ files) into linked, progressively disclosed docs./agent-orchestrationBlueprint for orchestrating the agent pipeline from spec to planning, implementation, testing and debugging, plus when a second model is worth it, the intent→model map and cost guardrails./algorithmic-artGenerative and algorithmic art with p5.js: flow fields, particle systems, animations, WebGL, audio-reactive visuals; exports HTML, PNG, GIF, MP4, SVG. Use for creative coding or any p5.js visual./anchor-reviewSingle-model adversarial review technique — 3-lens analysis with confidence scoring and self-challenge/api-client-patternsTyped client-side API consumption: fetch wrappers, zod validation, auth injection, TanStack Query (useQuery, useMutation, optimistic updates), tRPC, OpenAPI codegen, pagination. Use when consuming REST or tRPC APIs.