Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计通过

ha-dashboard-layoutsha 仪表板布局

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

198

周安装

8

GitHub Stars

1

下载量

62
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ha-dashboard-layouts(ha 仪表板布局)
来源仓库:https://github.com/dawiddutoit/custom-claude
仓库路径:skills/ha-dashboard-layouts
安装命令:
npx skills add https://github.com/dawiddutoit/custom-claude --skill ha-dashboard-layouts
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dawiddutoit/custom-claude --skill ha-dashboard-layouts

简介

ha-dashboard-layouts 用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。

  • 适用于产品页面结构整理、UI 方案生成和视觉一致性检查。
  • 结合品牌、设计系统和用户任务提供界面设计方案。
  • 安装命令:npx skills add https://github.com/dawiddutoit/custom-claude --skill ha-dashboard-layouts。
  • 涉及真实页面改动时应通过截图或浏览器预览检查表现效果。

SKILL.md

Works with Lovelace YAML configurations, native layout cards, and mobile-first responsive patterns.

Home Assistant Dashboard Layouts

Create responsive Home Assistant Lovelace dashboards using native layout types.

When to Use This Skill

Use this skill when you need to:

  • Arrange cards vertically (top-to-bottom stacking) for sequential information
  • Place cards side-by-side horizontally for comparisons or related controls
  • Create multi-column grid layouts that automatically reflow on mobile
  • Build full-screen panel views for maps, cameras, or single-focus displays
  • Nest layouts for complex dashboard designs with sections
  • Make dashboards responsive with automatic mobile stacking

Do NOT use when:

  • You need conditional card visibility (use ha-conditional-cards instead)
  • Building forms or input interfaces (use entities card or custom forms)
  • You need advanced CSS Grid features (consider layout-card from HACS)

Usage

  1. Identify user intent: Map natural language ("side by side", "3 columns") to layout type
  2. Choose layout: vertical-stack (top to bottom), horizontal-stack (side by side), grid (multi-column), panel (full-screen)
  3. Apply configuration: Add YAML with appropriate type and options
  4. Test responsiveness: Verify mobile behavior (grid auto-stacks, horizontal stays side-by-side)
  5. Refine: Adjust columns, square property, or nest layouts for complex designs

How to Request Layouts

Map user's natural language to layout types:

Vertical Stack (top to bottom):

  • "Stack these vertically"
  • "Put these one below the other"
  • "Top to bottom"

Horizontal Stack (side by side):

  • "Put these side by side"
  • "Arrange them horizontally"
  • "Next to each other"
  • "Layout in a row"

Grid Layouts:

  • "Use a 3-column grid" → columns: 3
  • "Grid with columns: 4" → columns: 4
  • "Two columns side by side" → columns: 2
  • "Make cards square" → square: true
  • "Equal height and width" → square: true

Panel View (full-screen single card):

  • "Make this type: panel"
  • "Full-screen card"
  • "Kiosk mode"

Nested Layouts:

  • "Vertical stack with horizontal rows"
  • "Put separator, then gauges horizontal, then graph below"
  • "Stack sections vertically, but put cards side-by-side"

Layout Types Quick Reference

1. Vertical Stack

Cards stack top to bottom, full width.

{
    "type": "vertical-stack",
    "cards": [
        {"type": "entity", "entity": "sensor.temperature"},
        {"type": "entity", "entity": "sensor.humidity"},
        {"type": "entity", "entity": "sensor.pressure"},
    ]
}

Use when: Cards should stack regardless of screen size.

2. Horizontal Stack

Cards arranged left to right, equal width distribution.

{
    "type": "horizontal-stack",
    "cards": [
        {"type": "entity", "entity": "sensor.temperature"},
        {"type": "entity", "entity": "sensor.humidity"},
    ]
}

Use when: Cards should appear side-by-side on desktop and mobile. Limit to 2-3 cards (more gets cramped on mobile).

3. Grid Layouts

Multi-column grid with automatic mobile reflow.

# 3-column grid
{
    "type": "grid",
    "columns": 3,  # Auto-stacks to 1 column on mobile
    "cards": [
        {"type": "entity", "entity": "sensor.temp1"},
        {"type": "entity", "entity": "sensor.temp2"},
        {"type": "entity", "entity": "sensor.temp3"},
        {"type": "entity", "entity": "sensor.temp4"},
        # Cards wrap to next row
    ]
}

# Square cards (equal width/height)
{
    "type": "grid",
    "columns": 3,
    "square": True,  # Forces equal aspect ratio
    "cards": [...]
}

Common column counts:

  • columns: 2 → Mobile-friendly, compact
  • columns: 3 → Balanced tablet/desktop
  • columns: 4 → Wide desktop screens

Use square: true when: Uniform appearance needed (gauges, icons, visual consistency).

4. Panel View

Full-screen single card (view-level property, not card type).

{
    "views": [
        {
            "title": "Map",
            "type": "panel",  # ← VIEW property
            "cards": [
                {"type": "map", "entities": ["person.john"]}
                # Only ONE card allowed
            ]
        }
    ]
}

Use when: Full-screen dashboards, kiosk mode, maps, cameras, single-focus displays.

5. Nested Layouts

Combine layouts for complex designs.

# Pattern: Vertical stack containing sections
{
    "type": "vertical-stack",
    "cards": [
        # Section 1: Horizontal cards
        {
            "type": "custom:bubble-card",
            "card_type": "separator",
            "name": "Quick Controls",
        },
        {
            "type": "horizontal-stack",
            "cards": [
                {"type": "entity", "entity": "sensor.temp"},
                {"type": "entity", "entity": "sensor.humidity"},
            ]
        },
        # Section 2: Grid layout
        {
            "type": "custom:bubble-card",
            "card_type": "separator",
            "name": "Sensors",
        },
        {
            "type": "grid",
            "columns": 3,
            "cards": [
                {"type": "entity", "entity": "sensor.pm25"},
                {"type": "entity", "entity": "sensor.co2"},
                {"type": "entity", "entity": "sensor.voc"},
            ]
        },
    ]
}

Common nesting patterns:

  • vertical-stackhorizontal-stack (sections with side-by-side cards)
  • vertical-stackgrid (sections with multi-column cards)
  • horizontal-stackvertical-stack (two-column responsive layout)

Mobile Responsiveness

Grid cards automatically reflow:

  • Desktop: Respects columns value
  • Mobile: Stacks to 1 column
  • No media queries needed

Horizontal stacks:

  • Remain side-by-side on mobile
  • Use sparingly (2-3 cards max)

Best practices:

  • Test on actual mobile device (browser resize ≠ mobile behavior)
  • Place frequently-used controls at top
  • Use columns: 2 or columns: 3 for mobile-friendly grids

Advanced Layouts

For more complex requirements, see reference files:

Common Dashboard Patterns

Temperature Gauges in Grid

{
    "type": "grid",
    "columns": 4,
    "cards": [
        {
            "type": "custom:modern-circular-gauge",
            "entity": "sensor.office_temperature",
            "name": "Office",
            "min": 10,
            "max": 40,
        },
        {
            "type": "custom:modern-circular-gauge",
            "entity": "sensor.living_room_temperature",
            "name": "Living Room",
            "min": 10,
            "max": 40,
        },
        # ... more gauges
    ]
}

Gauge + Graph Side-by-Side

{
    "type": "horizontal-stack",
    "cards": [
        {
            "type": "custom:modern-circular-gauge",
            "entity": "sensor.temperature",
            "name": "Current",
        },
        {
            "type": "custom:mini-graph-card",
            "entity": "sensor.temperature",
            "name": "24h Trend",
            "hours_to_show": 24,
        },
    ]
}

Section with Separator

{
    "type": "vertical-stack",
    "cards": [
        {
            "type": "custom:bubble-card",
            "card_type": "separator",
            "name": "Climate",
            "icon": "mdi:thermometer",
        },
        {
            "type": "grid",
            "columns": 3,
            "cards": [
                # Climate cards here
            ],
        },
    ]
}

Official Documentation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.66%
按下载量换算22

Claude

29.44%
按下载量换算18

Cursor

17.85%
按下载量换算11

Gemini CLI

8.94%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills