jpskill.com
📦 その他 コミュニティ

layout

レイアウトや余白、視覚的なリズムを改善し、単調なグリッドや不揃いな間隔、弱い視覚的階層を修正することで、UIの見やすさやデザインの完成度を高めるSkill。

📜 元の英語説明(参考)

Improve layout, spacing, and visual rhythm. Fixes monotonous grids, inconsistent spacing, and weak visual hierarchy. Use when the user mentions layout feeling off, spacing issues, visual hierarchy, crowded UI, alignment problems, or wanting better composition.

🇯🇵 日本人クリエイター向け解説

一言でいうと

レイアウトや余白、視覚的なリズムを改善し、単調なグリッドや不揃いな間隔、弱い視覚的階層を修正することで、UIの見やすさやデザインの完成度を高めるSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o layout.zip https://jpskill.com/download/19786.zip && unzip -o layout.zip && rm layout.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/19786.zip -OutFile "$d\layout.zip"; Expand-Archive "$d\layout.zip" -DestinationPath $d -Force; ri "$d\layout.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して layout.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → layout フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

[Skill 名] レイアウト

単調で、ごちゃごちゃしていて、構造的に弱いと感じるレイアウトと間隔を評価し、改善します。一般的な配置を意図的でリズミカルな構成に変えましょう。

必須の準備

/impeccable を呼び出してください。これにはデザイン原則、アンチパターン、そしてコンテキスト収集プロトコルが含まれています。続行する前にプロトコルに従ってください。まだデザインコンテキストが存在しない場合は、まず /impeccable teach を実行する必要があります。


現在のレイアウトを評価する

現在の空間デザインのどこが弱いかを分析します。

  1. 間隔:

    • 間隔は一貫していますか、それとも恣意的ですか?(ランダムなパディング/マージン値)
    • すべての間隔は同じですか?(どこも同じパディング = リズムがない)
    • 関連する要素は密接にグループ化され、グループ間には十分なスペースがありますか?
  2. 視覚的階層:

    • 目を細めるテストを適用してください。あなたの(比喩的な)目をぼかしても、最も重要な要素、次に重要な要素、そして明確なグループを識別できますか?
    • 階層は効果的に達成されていますか?(スペースと重さだけでも十分な場合がありますが、現在の方法は機能していますか?)
    • ホワイトスペースは重要なものに目を向けさせていますか?
  3. グリッドと構造:

    • 明確な基盤となる構造がありますか、それともレイアウトはランダムに感じられますか?
    • どこでも同じカードグリッドが使用されていますか?(アイコン + 見出し + テキストが延々と繰り返されている)
    • すべてが中央揃えですか?(非対称レイアウトで左揃えの方がデザインされているように感じられますが、これは絶対的なルールではありません)
  4. リズムと多様性:

    • レイアウトには視覚的なリズムがありますか?(密接な間隔とゆったりとした間隔の交互配置)
    • すべてのセクションが同じ方法で構成されていますか?(単調な繰り返し)
    • 意図的な驚きや強調の瞬間はありますか?
  5. 密度:

    • レイアウトは窮屈すぎますか?(十分な余白がない)
    • レイアウトはまばらすぎますか?(目的のない過剰なホワイトスペース)
    • 密度はコンテンツタイプと一致していますか?(データ密度の高いUIはより密接な間隔が必要。マーケティングページはより多くの余白が必要)

重要: レイアウトの問題は、色やフォントが適切であってもインターフェースが「おかしい」と感じる根本原因であることがよくあります。スペースはデザイン素材です。意図を持って使用してください。

レイアウト改善計画を立てる

グリッド、リズム、コンテナクエリに関する詳細なガイダンスについては、impeccable スキルの空間デザインリファレンスを参照してください。

体系的な計画を作成します。

  • 間隔システム: フレームワークの組み込みスケール(例: Tailwind)、remベースのトークン、またはカスタムシステムなど、一貫したスケールを使用します。具体的な値よりも一貫性が重要です。
  • 階層戦略: スペースはどのように重要性を伝えますか?
  • レイアウトアプローチ: どのような構造がコンテンツに適合しますか?1DにはFlex、2DにはGrid、複雑なページレイアウトには名前付きエリアを使用します。
  • リズム: どこで間隔を密接にし、どこでゆったりとさせますか?

レイアウトを体系的に改善する

間隔システムを確立する

  • 一貫した間隔スケールを使用します。フレームワークのスケール(Tailwindなど)、remベースのトークン、またはカスタムスケールはすべて機能します。重要なのは、値が定義されたセットから来るものであり、任意の数値ではないことです。
  • カスタムプロパティを使用する場合は、トークンをセマンティックに命名します: --space-xs から --space-xl まで、--spacing-8 ではありません。
  • マージンの代わりに gap を兄弟要素の間隔に使用します。これにより、マージン相殺のハックが不要になります。
  • clamp() を適用して、大きな画面で呼吸するような流動的な間隔を実現します。

視覚的なリズムを作成する

  • 関連する要素には密接なグループ化(兄弟要素間に8-12px)
  • 異なるセクション間にはゆったりとした分離(48-96px)
  • セクション内では多様な間隔 — すべての行が同じギャップである必要はありません。
  • 非対称な構成 — 意味がある場合は、予測可能な中央揃えコンテンツパターンを破ります。

適切なレイアウトツールを選択する

  • 1DレイアウトにはFlexboxを使用します: アイテムの行、ナビゲーションバー、ボタンのグループ、カードのコンテンツ、ほとんどのコンポーネントの内部。Flexはよりシンプルで、ほとんどのレイアウトタスクに適しています。
  • 2DレイアウトにはGridを使用します: ページレベルの構造、ダッシュボード、データ密度の高いインターフェース、行と列の両方に協調的な制御が必要なもの。
  • flex-wrap を使用したFlexboxの方がシンプルで柔軟な場合に、Gridをデフォルトにしないでください
  • ブレークポイントなしでレスポンシブグリッドを作成するには、repeat(auto-fit, minmax(280px, 1fr)) を使用します。
  • 複雑なページレイアウトには名前付きグリッドエリア(grid-template-areas)を使用します。ブレークポイントで再定義します。

カードグリッドの単調さを打破する

  • すべてにカードグリッドをデフォルトにしないでください。間隔と配置は自然に視覚的なグループ化を作成します。
  • コンテンツが本当に明確でアクション可能である場合にのみカードを使用します。カードの中にカードをネストしないでください。
  • カードのサイズを変えたり、列をまたがせたり、カードと非カードコンテンツを混ぜたりして、繰り返しを打破します。

視覚的階層を強化する

  • 明確な階層に必要な次元を最小限に抑えます。スペースだけでも十分な場合があります。要素の周りのゆったりとしたホワイトスペースは目を引きます。最も洗練されたデザインの中には、スペースと重さだけでリズムを実現しているものもあります。よりシンプルな手段が不十分な場合にのみ、色やサイズのコントラストを追加してください。
  • 読み取りフローに注意してください。LTR言語では、目は自然に左上から右下にスキャンしますが、主要なアクションの配置はコンテキストに依存します(例: ダイアログでは右下、ナビゲーションでは上)。
  • 近接性と分離によって明確なコンテンツグループを作成します。

深度と高さを管理する

  • セマンティックな z-index スケールを作成します(ドロップダウン → スティッキー → モーダルバックドロップ → モーダル → トースト → ツールチップ)
  • 一貫したシャドウスケールを作成します(sm → md → lg → xl)— シャドウは控えめにします。
  • 高さを階層を強化するために使用し、装飾として使用しないでください。

光学調整

  • アイコンが幾何学的に中央にあるにもかかわらず視覚的にずれて見える場合は、微調整してください。ただし、実際に間違っていると確信できる場合に限ります。推測で調整しないでください。

決して行わないこと:

  • スケール外の任意のスペース値を使用する
  • すべての間隔を同じにする — 多様性が階層を生み出します
  • すべてをカードで囲む — すべてがコンテナを必要とするわけではありません
  • カードの中にカードをネストする — 階層には間隔と区切り線を使用します
  • どこでも同じカードグリッドを使用する(アイコン + 見出し + テキストの繰り返し)
  • すべてを中央揃えにする — 非対称で左揃えの方がデザインされているように感じられます
  • ヒーローメトリックレイをデフォルトにする

(原文がここで切り詰められています)

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Assess and improve layout and spacing that feels monotonous, crowded, or structurally weak — turning generic arrangements into intentional, rhythmic compositions.

MANDATORY PREPARATION

Invoke /impeccable — it contains design principles, anti-patterns, and the Context Gathering Protocol. Follow the protocol before proceeding — if no design context exists yet, you MUST run /impeccable teach first.


Assess Current Layout

Analyze what's weak about the current spatial design:

  1. Spacing:

    • Is spacing consistent or arbitrary? (Random padding/margin values)
    • Is all spacing the same? (Equal padding everywhere = no rhythm)
    • Are related elements grouped tightly, with generous space between groups?
  2. Visual hierarchy:

    • Apply the squint test: blur your (metaphorical) eyes — can you still identify the most important element, second most important, and clear groupings?
    • Is hierarchy achieved effectively? (Space and weight alone can be enough — but is the current approach working?)
    • Does whitespace guide the eye to what matters?
  3. Grid & structure:

    • Is there a clear underlying structure, or does the layout feel random?
    • Are identical card grids used everywhere? (Icon + heading + text, repeated endlessly)
    • Is everything centered? (Left-aligned with asymmetric layouts feels more designed, but not a hard and fast rule)
  4. Rhythm & variety:

    • Does the layout have visual rhythm? (Alternating tight/generous spacing)
    • Is every section structured the same way? (Monotonous repetition)
    • Are there intentional moments of surprise or emphasis?
  5. Density:

    • Is the layout too cramped? (Not enough breathing room)
    • Is the layout too sparse? (Excessive whitespace without purpose)
    • Does density match the content type? (Data-dense UIs need tighter spacing; marketing pages need more air)

CRITICAL: Layout problems are often the root cause of interfaces feeling "off" even when colors and fonts are fine. Space is a design material — use it with intention.

Plan Layout Improvements

Consult the spatial design reference from the impeccable skill for detailed guidance on grids, rhythm, and container queries.

Create a systematic plan:

  • Spacing system: Use a consistent scale — whether that's a framework's built-in scale (e.g., Tailwind), rem-based tokens, or a custom system. The specific values matter less than consistency.
  • Hierarchy strategy: How will space communicate importance?
  • Layout approach: What structure fits the content? Flex for 1D, Grid for 2D, named areas for complex page layouts.
  • Rhythm: Where should spacing be tight vs generous?

Improve Layout Systematically

Establish a Spacing System

  • Use a consistent spacing scale — framework scales (Tailwind, etc.), rem-based tokens, or a custom scale all work. What matters is that values come from a defined set, not arbitrary numbers.
  • Name tokens semantically if using custom properties: --space-xs through --space-xl, not --spacing-8
  • Use gap for sibling spacing instead of margins — eliminates margin collapse hacks
  • Apply clamp() for fluid spacing that breathes on larger screens

Create Visual Rhythm

  • Tight grouping for related elements (8-12px between siblings)
  • Generous separation between distinct sections (48-96px)
  • Varied spacing within sections — not every row needs the same gap
  • Asymmetric compositions — break the predictable centered-content pattern when it makes sense

Choose the Right Layout Tool

  • Use Flexbox for 1D layouts: Rows of items, nav bars, button groups, card contents, most component internals. Flex is simpler and more appropriate for the majority of layout tasks.
  • Use Grid for 2D layouts: Page-level structure, dashboards, data-dense interfaces, anything where rows AND columns need coordinated control.
  • Don't default to Grid when Flexbox with flex-wrap would be simpler and more flexible.
  • Use repeat(auto-fit, minmax(280px, 1fr)) for responsive grids without breakpoints.
  • Use named grid areas (grid-template-areas) for complex page layouts — redefine at breakpoints.

Break Card Grid Monotony

  • Don't default to card grids for everything — spacing and alignment create visual grouping naturally
  • Use cards only when content is truly distinct and actionable — never nest cards inside cards
  • Vary card sizes, span columns, or mix cards with non-card content to break repetition

Strengthen Visual Hierarchy

  • Use the fewest dimensions needed for clear hierarchy. Space alone can be enough — generous whitespace around an element draws the eye. Some of the most sophisticated designs achieve rhythm with just space and weight. Add color or size contrast only when simpler means aren't sufficient.
  • Be aware of reading flow — in LTR languages, the eye naturally scans top-left to bottom-right, but primary action placement depends on context (e.g., bottom-right in dialogs, top in navigation).
  • Create clear content groupings through proximity and separation.

Manage Depth & Elevation

  • Create a semantic z-index scale (dropdown → sticky → modal-backdrop → modal → toast → tooltip)
  • Build a consistent shadow scale (sm → md → lg → xl) — shadows should be subtle
  • Use elevation to reinforce hierarchy, not as decoration

Optical Adjustments

  • If an icon looks visually off-center despite being geometrically centered, nudge it — but only if you're confident it actually looks wrong. Don't adjust speculatively.

NEVER:

  • Use arbitrary spacing values outside your scale
  • Make all spacing equal — variety creates hierarchy
  • Wrap everything in cards — not everything needs a container
  • Nest cards inside cards — use spacing and dividers for hierarchy within
  • Use identical card grids everywhere (icon + heading + text, repeated)
  • Center everything — left-aligned with asymmetry feels more designed
  • Default to the hero metric layout (big number, small label, stats, gradient) as a template. If showing real user data, a prominent metric can work — but it should display actual data, not decorative numbers.
  • Default to CSS Grid when Flexbox would be simpler — use the simplest tool for the job
  • Use arbitrary z-index values (999, 9999) — build a semantic scale

Verify Layout Improvements

  • Squint test: Can you identify primary, secondary, and groupings with blurred vision?
  • Rhythm: Does the page have a satisfying beat of tight and generous spacing?
  • Hierarchy: Is the most important content obvious within 2 seconds?
  • Breathing room: Does the layout feel comfortable, not cramped or wasteful?
  • Consistency: Is the spacing system applied uniformly?
  • Responsiveness: Does the layout adapt gracefully across screen sizes?

Remember: Space is the most underused design tool. A layout with the right rhythm and hierarchy can make even simple content feel polished and intentional.