本文へ移動
cccskills
無料GitHub で公開

mobile-first-design-rules

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

インストール方法を見る

含まれるファイル(11)

  • 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

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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-PatternWhy It FailsCorrect Approach
Desktop-first CSS with mobile overridesMobile overrides fight specificity; cascade order breaks; maintenance burden growsWrite base styles for mobile, then use sm: md: lg: prefixes to scale up
Touch targets smaller than 44pxiOS/Android guidelines violated; WCAG 2.5.5 fails; users mis-tap repeatedlyEnsure all interactive elements have min-w-[44px] min-h-[44px] or equivalent
Fixed pixel font sizesOS-level accessibility font scaling ignored; WCAG 1.4.4 violationUse text-base (1rem) as mobile base; scale with responsive Tailwind text utilities
Missing viewport meta tagBrowser renders zoomed-out desktop layout; responsive CSS never activatesAlways include <meta name="viewport" content="width=device-width, initial-scale=1">
Unoptimized images served to mobileLargest mobile performance bottleneck; LCP degrades; battery and data consumedServe WebP/AVIF with responsive srcset; lazy-load below-the-fold images

Memory Protocol (MANDATORY)

Before starting:

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Ensure accessibility in UI components including semantic HTML, ARIA attributes, keyboard navigation, and WCAG 2.2 AA compliance.

日本語の概要は準備中です。原文の説明を表示しています。

oimiragieo/agent-studio432026年7月14日 更新

Use when you want to improve response quality through meta-cognitive reasoning. Applies 15+ reasoning methods to reconsider and refine initial outputs.

日本語の概要は準備中です。原文の説明を表示しています。

oimiragieo/agent-studio432026年7月14日 更新

N-round opposing-stance debates for trade-off analysis. Assigns pro/con roles to agents, runs structured debate rounds with quality scoring, and produces a moderator synthesis with confidence-rated recommendation. Generalizable to architecture, technology, security, and design decisions.

日本語の概要は準備中です。原文の説明を表示しています。

oimiragieo/agent-studio432026年7月14日 更新

Force adversarial code review stance that eliminates confirmation bias — reviewer must find issues or re-analyze

日本語の概要は準備中です。原文の説明を表示しています。

oimiragieo/agent-studio432026年7月14日 更新

Creates specialized AI agents on-demand when no existing agent matches a request. Use when the Router cannot find a suitable agent for a task. Enables self-evolution by generating persistent agents.

日本語の概要は準備中です。原文の説明を表示しています。

oimiragieo/agent-studio432026年7月14日 更新

LLM-as-judge evaluation framework with 5-dimension rubric (accuracy, groundedness, coherence, completeness, helpfulness) for scoring AI-generated content quality with weighted composite scores and evidence citations

日本語の概要は準備中です。原文の説明を表示しています。

oimiragieo/agent-studio432026年7月14日 更新

oimiragieo のスキルをすべて見る

このスキルの問題を報告する