Responsive Designのロゴ

Responsive Design

コミュニティ
nahid-sparktales
responsive-design

Make a layout hold from 320px to wide desktop — content-driven breakpoints, intrinsic layout before media queries, fluid type that still zooms, touch targets, reflow without hiding content, and what to check at each width. Fires when building or fixing layout, when something overflows or collapses at a size, or when a design only exists at one width. Not for proving it renders (browser-verification) and not for semantics or screen readers (accessibility).

概要

公開者nahid-sparktales
リポジトリagent-dispatcher
スキル名responsive-design
スター
58
フォーク
5
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    nahid-sparktalesがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Responsive Design」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/design/responsive-design
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nahid-sparktales/agent-dispatcher.git /tmp/agent-dispatcher
mkdir -p .claude/skills
cp -r /tmp/agent-dispatcher/skills/design/responsive-design .claude/skills/responsive-design
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでResponsive Designを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にResponsive Designを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Responsive Designは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Responsive design

Most responsive bugs are a layout that was designed at one width and then defended with media queries. Layouts that adapt on their own need fewer breakpoints and break in fewer places.

When this fires

Building or repairing any layout that will be seen at more than one width, and whenever a design hand-off shows a single desktop frame. It does not fire for the proving pass — screenshots, console and interaction checks belong to browser-verification.

Procedure

  1. Let the content choose the breakpoints. Widen and narrow until the layout actually breaks — a line gets too long, a card squashes, a nav wraps badly — and put a breakpoint there. Device names are marketing; the content is the constraint.
  2. Start from the small layout and add. Write the base styles for the narrow case, then use min-width queries to add complexity. Going the other way means every small screen pays to undo desktop rules, and undoing is where the leaks are.
  3. Reach for intrinsic layout before a media query. flex-wrap, grid-template-columns: repeat(auto-fit, minmax(…, 1fr)), min()/max()/clamp(), and container queries where the component's size — not the viewport's — is what should drive it. A component that adapts to its own container survives being moved; a viewport-keyed one does not.
  4. Make type fluid without breaking zoom. A clamp() with a rem term in the middle scales with the viewport and still responds to the user's font size and browser zoom. A size expressed in vw alone does not — it ignores zoom entirely, which is a genuine accessibility failure, not a stylistic choice. Keep an explicit floor and ceiling; line length around 45–75 characters.
  5. Keep spacing on one scale. Fluid gutters and section padding from the same tokens as the type scale. Ad-hoc pixel values per breakpoint are how layouts drift apart over time.
  6. Size targets for fingers, not cursors. 24×24 CSS px is the floor for any interactive target, with clear spacing between adjacent ones; make primary and frequently-tapped actions comfortably larger. Check the real hit area, not the icon — padding counts, a bare glyph does not.
  7. Reflow, never remove. At narrow widths, content stacks, wraps, collapses into a disclosure or moves into a menu. It does not disappear. Anything only reachable on desktop is a feature that does not exist on mobile — if a design asks for that, stop and ask, because it changes what the product does rather than how it looks.
  8. Handle media explicitly. Responsive images with srcset/sizes so small screens do not download desktop assets; an aspect-ratio or explicit dimensions so nothing jumps as images load; object-fit so crops behave. Long tables, code blocks and diagrams are the legitimate exception — give them their own horizontal scroll container rather than shrinking the page around them.
  9. Distrust viewport units on mobile. 100vh is taller than the visible area while browser chrome is showing; prefer the dynamic/small viewport units with a plain fallback underneath. Where a layout goes edge to edge on a notched device, pad with the safe-area environment variables and set the viewport meta to cover — and never disable user scaling.
  10. Do not tie behaviour to width. Wide does not mean mouse and narrow does not mean touch. Gate hover-only affordances on @media (hover: hover) and make sure anything revealed on hover has a tap or focus path too.
  11. Check at sizes, not at one size. Walk 320, 375, 768, 1024 and 1440 CSS px, plus 1280 at 400% zoom — which is the same reflow constraint as 320 and catches the zoom bugs that resizing misses. Reload after each change, do not just drag the window: layout-time breakpoints, container query registration and device gates only re-run on load.
  12. At every size, look for the same six things. Horizontal page scroll; clipped or overlapping content; text squeezed under ~40 characters or stretched past ~80; targets and their spacing; images loading at the right size with no jump; and whether the reading order still matches the visual order after items reflow.

Checklist

  • Breakpoints correspond to where content broke, not to device names
  • Base styles are the narrow case; complexity added with min-width
  • Intrinsic layout used where it removes a media query
  • Fluid type keeps a rem term, a floor and a ceiling; zoom still works
  • Every interactive target is at least 24×24 CSS px with real spacing
  • No content removed at small sizes — reflowed, collapsed or moved instead
  • No horizontal page scroll at 320px; exceptions scoped to their own container
  • Images sized responsively and reserve their space before loading
  • 100vh assumptions and safe areas handled; scaling not disabled
  • Hover-only affordances have a tap and focus equivalent
  • Each width was reloaded, not just resized
  • 1280 at 400% zoom checked alongside 320px

Failure handling

  • Something overflows and the culprit is not obvious — find the element wider than its container before changing anything. Long unbroken strings, fixed pixel widths, negative margins and 100vw inside a padded parent cause most of it. Do not apply overflow: hidden to the page: it hides the symptom and clips content for everyone.
  • The design only exists at one width — say which breakpoints you inferred and why, and get them confirmed. Inventing the mobile layout silently and calling it done is how two people ship two different products.
  • A fix at one width breaks another — re-walk the whole set of widths after every fix, not just the one you were working on. This is the most common regression in this area.
  • A third-party or embedded component will not reflow — contain it and its scroll, record it as a known limit, and do not claim the page reflows cleanly.
  • You cannot open a browser — report the layout as changed but unchecked. Reading CSS is not checking layout, and resizing without reloading is not checking breakpoints.

Evidence to report

The widths walked and whether each was reloaded; a screenshot per width where the layout meaningfully differs; what overflowed or clipped and what fixed it; the breakpoints added or moved, with the content reason for each; the zoom result at 400%; and the sizes, states or components not checked. "Made it responsive" without the width list is not evidence — hand the rendered proof to browser-verification.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Responsive Design」では何ができますか?

Make a layout hold from 320px to wide desktop — content-driven breakpoints, intrinsic layout before media queries, fluid type that still zooms, touch targets, reflow without hiding content, and what to check at each width. Fires when building or fixing layout, when something overflows or collapses at a size, or when a design only exists at one width. Not for proving it renders (browser-verification) and not for semantics or screen readers (accessibility).

TypingMindでResponsive Designを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Responsive Designはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにResponsive Designをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/design/responsive-designを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Responsive Designを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Responsive Designで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもResponsive Designを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Responsive Design」は無料ですか?

はい。nahid-sparktalesがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇