orientation
できること
このスキルは、スマートフォンやタブレットを回転させたときにもサイトのコンテンツと操作部品が使えるかを確認します。すべての訪問者がアクセスできるよう、モバイルとフロントエンドの開発者向けです。
使う場面
- ✓スマートフォンやタブレットを回転させたときのサイトの動きを確認するようエージェントに頼むとき。
- ✓サイトが端末を回転させるよう表示し、コンテンツやフォームを隠しているとき。
- ✓タブレットでも使われる全画面の画面、ダッシュボード、フォームを作っているとき。
スキルのリンク
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/orientation/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のサイトはスマートフォンを回転させるよう求めて、ページをふさいでいます。どちらの向きでも使えるようにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、向きの固定、端末回転を求めるオーバーレイ、片方の向きで機能を隠すレイアウトを探します。それらの妨げを取り除き、回転後もすべてが使えるように、レスポンシブなCSSでレイアウトを調整します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Support both portrait and landscape orientation
Many users mount devices to wheelchairs, use tablets on stands, or cannot easily rotate a device. If a site only works in one orientation, these users may lose access to content or critical actions entirely.
Quick Reference
- Do not lock the interface to portrait-only or landscape-only unless the task truly requires it
- Ensure all core content and controls remain usable after device rotation
- Use responsive layouts that adapt instead of hiding functionality in one orientation
- If a specific orientation is essential, explain why and provide the best available alternative
Check
Rotate the page between portrait and landscape on mobile and tablet viewports. Verify all primary content, navigation, forms, and interactive controls remain available and usable in both orientations. Flag any use of orientation locks, rotate-device overlays that block content, or layouts that hide essential functionality in one orientation.
Fix
Remove orientation locks and redesign the layout to work in both portrait and landscape. Use responsive CSS, wrapping layouts, and adaptive spacing instead of blocking content behind a rotate-device message. Only keep an orientation requirement if the task is genuinely orientation-essential.
Explain
Explain why WCAG requires content to support both portrait and landscape unless orientation is essential to the activity, and how orientation locks can block users who cannot rotate their devices.
Code Review
Review responsive layouts, viewport handling, overlays, and any JavaScript related to device rotation. Flag exact selectors, components, or route states that require one orientation, hide essential content after rotation, or show blocking rotate-device messages instead of adapting the layout.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/accessibility/orientation
よくある質問
向きはアクセシビリティにとってなぜ重要ですか?
このスキルによると、車いすに端末を取り付けたり、スタンドに置いたりして使う人は、端末を回転させられないことがあります。
横向きだけや縦向きだけのレイアウトは許されますか?
このスキルは、作業上どうしても必要な場合だけにして、その理由を説明するよう勧めています。
エージェントは結果をどう確かめますか?
このスキルは、モバイルとタブレットのサイズで、縦向きと横向きの両方で描画された動きを確認することを勧めています。
詳細
作者による元の説明
Use when reviewing mobile-first layouts, tablet experiences, fullscreen flows, forms, dashboards, or media interfaces. Check rendered behavior in both portrait and landscape and separate genuine layout constraints from unnecessary orientation assumptions.
人気
- GitHubのスター
- 75k
- ランキング
- #2964
- ライセンス
- MIT
- 更新日
- 2026/10/31
コメント
- …
このリポジトリの他のスキル
frontendchecklist
75kコマンドラインツールを使って、フロントエンドのコードとライブページを、アクセシビリティ、速度、SEO、セキュリティに関する380以上のルールと照らし合わせて確認します。
frontend-checklist-global
75kフロントエンドのプロジェクトを、386のFront-End Checklistのルールすべてと照らし合わせて監査し、見つかった問題ごとに具体的な修正方法を示します。
404-page
75k見つからないページの画面に役立つリンクがあり、本物の404ステータスを返すかを確認し、迷った訪問者が目的のページを見つけられるようにします。
about-page
75kサイトの運営者が誰かを説明する、分かりやすいAboutページがあるかを確認し、訪問者と検索エンジンからの信頼を高めます。
似ているスキル
android-clean-architecture
280kエージェントがAndroidプロジェクトを効率よく整理できるようにします。コードを構造化して、保守や新機能の開発をしやすくします。
compose-multiplatform-patterns
280kエージェントがKMPプロジェクトでCompose MultiplatformとJetpack Composeのパターンを使えるようにします。状態管理、ナビゲーション、テーマ設定、パフォーマンスを扱います。
dart-flutter-patterns
280kエージェントがDartとFlutterのアプリ向けのコードを書けるようにします。最新のパターンを使い、堅牢で管理しやすいアプリを作ります。