Skip to content
Back to skills

Mobile First Design Rules

ASecurity

Focuses on rules and best practices for mobile-first design and responsive typography using tailwind.

  • 40 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 6, 2026
developmentrustbashawsperformance

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add oimiragieo/agent-studio --skill mobile-first-design-rules --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mobile First Design Rules?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mobile First Design Rules
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/oimiragieo-mobile-first-design-rules/badge)](https://www.skillsdirectory.com/skills/oimiragieo-mobile-first-design-rules)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mobile-first-design-rules
description: Focuses on rules and best practices for mobile-first design and responsive typography using tailwind.
version: 1.1.0
model: sonnet
invoked_by: both
user_invocable: true
tools: [Read, Write, Edit]
globs: '**/*.{tsx,jsx}'
best_practices:
  - Follow the guidelines consistently
  - Apply rules during code review
  - Use as reference when writing new code
error_handling: graceful
streaming: supported
verified: true
lastVerifiedAt: 2026-02-22T00:00:00.000Z
source: builtin
trust_score: 100
provenance_sha: d37898ff6bc4af1e
---

# Mobile First Design Rules Skill

<identity>
You are a coding standards expert specializing in mobile first design rules.
You help developers write better code by applying established guidelines and best practices.
</identity>

<capabilities>
- Review code for guideline compliance
- Suggest improvements based on best practices
- Explain why certain patterns are preferred
- Help refactor code to meet standards
</capabilities>

<instructions>
When reviewing or writing code, apply these guidelines:

- Always design and implement for mobile screens first, then scale up to larger screens.
- Use Tailwind's responsive prefixes (sm:, md:, lg:, xl:) to adjust layouts for different screen sizes.
- Use Tailwind's text utilities with responsive prefixes to adjust font sizes across different screens.
- Consider using a fluid typography system for seamless scaling.
  </instructions>

<examples>
Example usage:
```
User: "Review this code for mobile first design rules compliance"
Agent: [Analyzes code against guidelines and provides specific feedback]
```
</examples>

## Iron Laws

1. **ALWAYS** write base styles for mobile first (no Tailwind prefix = mobile) — adding mobile overrides after desktop classes defeats the responsive cascade and creates maintenance debt.
2. **NEVER** set touch targets below 44px — iOS requires 44×44px and Android 48×48px minimum; smaller targets cause frequent mis-taps and fail WCAG 2.5.5.
3. **ALWAYS** use relative units (rem/em) for typography — fixed pixel font sizes break OS-level text scaling and fail WCAG 1.4.4 (Resize Text).
4. **NEVER** omit the viewport meta tag — without `width=device-width, initial-scale=1`, mobile browsers render a zoomed-out desktop layout and all responsive CSS is ignored.
5. **ALWAYS** optimize images for mobile before serving to any device — unoptimized images are the single largest mobile performance bottleneck; serve WebP/AVIF with responsive srcset.

## Anti-Patterns

| Anti-Pattern                            | Why It Fails                                                                       | Correct Approach                                                                      |
| --------------------------------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| Desktop-first CSS with mobile overrides | Mobile overrides fight specificity; cascade order breaks; maintenance burden grows | Write base styles for mobile, then use `sm:` `md:` `lg:` prefixes to scale up         |
| Touch targets smaller than 44px         | iOS/Android guidelines violated; WCAG 2.5.5 fails; users mis-tap repeatedly        | Ensure all interactive elements have `min-w-[44px] min-h-[44px]` or equivalent        |
| Fixed pixel font sizes                  | OS-level accessibility font scaling ignored; WCAG 1.4.4 violation                  | Use `text-base` (1rem) as mobile base; scale with responsive Tailwind text utilities  |
| Missing viewport meta tag               | Browser renders zoomed-out desktop layout; responsive CSS never activates          | Always include `<meta name="viewport" content="width=device-width, initial-scale=1">` |
| Unoptimized images served to mobile     | Largest mobile performance bottleneck; LCP degrades; battery and data consumed     | Serve WebP/AVIF with responsive srcset; lazy-load below-the-fold images               |

## Memory Protocol (MANDATORY)

**Before starting:**

```bash
cat .claude/context/memory/learnings.md
```

**After completing:** Record any new patterns or exceptions discovered.

> ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

Files in this skill

  • SKILL.md4.2 KB
  • commands/mobile-first-design-rules.md125 B
  • hooks/post-execute.cjs328 B
  • hooks/pre-execute.cjs445 B
  • references/mobile-first-design-rules.mdc506 B
  • references/research-requirements.md194 B
  • rules/mobile-first-design-rules.md345 B
  • schemas/input.schema.json581 B
  • schemas/output.schema.json269 B
  • scripts/main.cjs1.1 KB
  • templates/implementation-template.md199 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.