responsive-design
できること
このスキルは、スマートフォン、タブレット、パソコンなど、どんな画面サイズにも自動的に対応するウェブサイトやアプリを作るのに役立ちます。どの端末でも見た目がよく、快適に使えるようにします。
使う場面
- ✓スマートフォンとパソコンの両方で快適に使えるウェブサイトを作るとき。
- ✓サイトの特定の部分を、それぞれ自動的に調整させたいとき。
- ✓どの画面サイズでも文字や余白のバランスを保ちたいとき。
スキルのリンク
https://github.com/wshobson/agents/blob/main/plugins/ui-design/skills/responsive-design/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ウェブサイトをさまざまな画面サイズに対応させるにはどうすればよいですか?”
毎週5つの新しいスキル。1分で読めます。
仕組み
表示領域の広さに合わせて、視覚要素が再配置されたりサイズが変わったりする、最新の手法を使います。まずスマートフォンでの表示を考えてから、大きい画面向けに調整していくため、どの環境でも快適な体験を提供できます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Responsive Design
Master modern responsive design techniques to create interfaces that adapt seamlessly across all screen sizes and device contexts.
When to Use This Skill
- Implementing mobile-first responsive layouts
- Using container queries for component-based responsiveness
- Creating fluid typography and spacing scales
- Building complex layouts with CSS Grid and Flexbox
- Designing breakpoint strategies for design systems
- Implementing responsive images and media
- Creating adaptive navigation patterns
- Building responsive tables and data displays
Detailed patterns and worked examples
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
Best Practices
- Mobile-First: Start with mobile styles, enhance for larger screens
- Content Breakpoints: Set breakpoints based on content, not devices
- Fluid Over Fixed: Use fluid values for typography and spacing
- Container Queries: Use for component-level responsiveness
- Test Real Devices: Simulators don't catch all issues
- Performance: Optimize images, lazy load off-screen content
- Touch Targets: Maintain 44x44px minimum on mobile
- Logical Properties: Use inline/block for internationalization
Common Issues
- Horizontal Overflow: Content breaking out of viewport
- Fixed Widths: Using px instead of relative units
- Viewport Height: 100vh issues on mobile browsers
- Font Size: Text too small on mobile
- Touch Targets: Buttons too small to tap accurately
- Aspect Ratio: Images squishing or stretching
- Z-Index Stacking: Overlays breaking on different screens
よくある質問
「モバイルファースト」とは何ですか?
まずスマートフォンの最も小さい画面での見え方を考えてデザインを始め、そのあと大きい画面向けに改善を加えていく考え方です。
「コンテナクエリ」とは何ですか?
画面全体のサイズではなく、そのコンポーネント(ページの一部)が置かれているスペースの大きさに合わせて調整させるルールのことです。
実機でテストすることが重要なのはなぜですか?
シミュレーターではすべての問題が見つからないことがあります。実際のスマートフォンやタブレットでテストすると、すべてのユーザーにとって正しく動くウェブサイトになります。
詳細
作者による元の説明
Implement modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first breakpoint strategies. Use when building adaptive interfaces, implementing fluid layouts, or creating component-level responsive behavior.
repo: wshobson/agents
人気
- GitHubのスター
- 41k
- ランキング
- #6807
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
screen-reader-testing
41kエージェントにスクリーンリーダーを使ってWebサイトをテストさせ、アクセシビリティを確認します。
wcag-audit-patterns
41kエージェントがWebサイトのアクセシビリティを監査し、WCAGガイドラインに沿って問題を修正できるようにします。
multi-reviewer-patterns
41kエージェントが複数のコードレビューを並行して調整できるようにします。指摘事項の重複を排除し、レポートにまとめます。
parallel-debugging
41kエージェントが並行調査と根本原因分析を使って、複雑な問題をデバッグできるようにします。
似ているスキル
canvas
394k接続されたMacのパネルにホスト型のビジュアルウィジェットを表示し、そのパネルを隠したり別のページに移動したりするようエージェントを支援します。
control-ui
394kセッション、ダッシュボード、接続されたGatewayを含め、OpenClaw Control UIを整理し、問題を解決するようエージェントを支援します。
diagram-maker
394kプロセス、システムのアーキテクチャ、ホワイトボードのスケッチのために、SVG、HTML、または編集可能なExcalidrawとして、分かりやすい図を作るようエージェントを支援します。