Token导航 LogoToken导航TokenDH.com
前端设计执行命令github未标认证来源可访问许可证需确认审计未展示

makepad-2.0-widgetsmakepad 2 0 小部件

Agent Skill

makepad-2.0-widgets 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

282

周安装

12

GitHub Stars

737

下载量

99
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:makepad-2.0-widgets(makepad 2 0 小部件)
来源仓库:https://github.com/zhanghandong/makepad-skills
仓库路径:skills/makepad-2.0-widgets
安装命令:
npx skills add https://github.com/zhanghandong/makepad-skills --skill makepad-2.0-widgets
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/zhanghandong/makepad-skills --skill makepad-2.0-widgets

简介

用于处理 GitHub 仓库与协作信息,支持小部件相关 Issue 和 PR 管理。

  • 适合在 UI 开发流程中围绕代码变更进行整理。
  • 需确认权限范围和维护状态,避免触发不必要的网络请求。
  • 建议在操作前核对权限范围,防止误删或覆盖重要代码。
  • makepad-2.0-widgets 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Makepad 2.0 Widget Catalog Skill

Version: makepad-widgets (dev branch) | Last Updated: 2026-03-03

Overview

Makepad 2.0 provides a rich set of built-in widgets for building UIs. All widgets are defined in Splash syntax and registered via script_mod!.

Documentation

Refer to the local files for detailed documentation:

  • ./references/widget-catalog.md - Complete widget list with properties
  • ./references/widget-advanced.md - Advanced patterns: PortalList, Dock, custom widgets, MapView

IMPORTANT: Documentation Completeness Check

Before answering questions, Claude MUST:

  1. Read the relevant reference file(s) listed above
  2. Incorporate reference content into the answer

Widget Categories Quick Reference

Containers (Layout)

WidgetDescriptionKey Properties
ViewBasic container (transparent)width, height, flow, spacing, padding, align
SolidViewView with solid background+ show_bg: true, draw_bg.color
RoundedViewView with rounded corners+ draw_bg.border_radius
RoundedAllViewAll corners same radius+ border_radius shorthand
GradientXViewHorizontal gradient bg+ draw_bg colors
GradientYViewVertical gradient bg+ draw_bg colors
ScrollXViewHorizontal scrollingscroll property
ScrollYViewVertical scrollingscroll property
ScrollXYViewBoth-axis scrollingscroll property

Text Widgets

WidgetDescriptionKey Properties
LabelSingle/multi-line texttext, draw_text.color, draw_text.text_style.font_size
H1 - H4Heading levelstext (pre-styled)
PParagraph texttext
TextInputEditable text fieldtext, empty_text, password, read_only, numeric_only
MarkdownMarkdown rendererbody
HtmlHTML rendererbody
LinkLabelClickable link texttext, url

Buttons

WidgetDescriptionKey Properties
ButtonStandard buttontext
ButtonFlatFlat style buttontext
ButtonFlatterMinimal buttontext

Toggles

WidgetDescriptionKey Properties
CheckBoxCheck boxtext, active
ToggleToggle switchtext, active
RadioButtonRadio buttontext, active

Input Widgets

WidgetDescriptionKey Properties
SliderHorizontal slidermin, max, step, default, precision
DropDownDropdown selectlabels: ["a", "b", "c"]

Media

WidgetDescriptionKey Properties
ImageImage displaysource, fit (Stretch/Horizontal/Vertical/Smallest/Biggest/Size)
SvgExternal SVG file rendererdraw_svg.svg (crate_resource/http_resource), animating, draw_svg.color
IconSVG icon (tinted)draw_icon.svg, draw_icon.color, icon_walk
VectorInline vector graphicsviewbox, Path{d: "..."}
LoadingSpinnerLoading indicatorcolor, rotation_speed
MapViewMap widgetcenter_lon, center_lat, zoom (MUST use fixed height!)

Layout Helpers

WidgetDescriptionUsage
HrHorizontal ruleDivider line
VrVertical ruleVertical divider
FillerFlexible spacePush siblings apart (use between Fit siblings only!)
SplitterResizable splitaxis: Horizontal/Vertical, a/b children
FoldHeaderCollapsible sectionheader + body children

Lists

WidgetDescriptionUsage
PortalListVirtualized listFor large lists (100+ items), only renders visible items
FlatListSimple listFor small lists, renders all items

Navigation

WidgetDescriptionControl
ModalModal dialog.open(cx) /.close(cx) from Rust
TooltipTooltip popupHover-triggered
PopupNotificationToast notificationTimed display
SlidePanelSliding panelslide_from
ExpandablePanelExpandable areaopen/close
PageFlipPage switcheractive_page: page_name
StackNavigationStack navpush/pop pages

Dock System

WidgetDescription
DockTab container system
DockSplitterDock split panels
DockTabsTab bar
DockTabIndividual tab

Critical Rules

1. height: Fit on Containers

// WRONG - View defaults to 0px height
View{ flow: Down Label{text: "Invisible"} }

// CORRECT
View{ height: Fit flow: Down Label{text: "Visible"} }

2. new_batch for Colored Containers with Text

// WRONG - text behind background
RoundedView{ draw_bg.color: #333 Label{text: "Invisible"} }

// CORRECT
RoundedView{ new_batch: true draw_bg.color: #333 Label{text: "Visible"} }

3. Named Children with:=

// Named (addressable, overridable)
title := Label{text: "Hello"}

// Static (not addressable)
Label{text: "Hello"}

4. Label Default Color is White

// Default text is white (#fff) - set color for light backgrounds
Label{text: "Dark text" draw_text.color: #333}

5. MapView MUST Have Fixed Height

// WRONG
MapView{ width: Fill height: Fill }

// CORRECT
View{ new_batch: true width: Fill height: 400
    MapView{ width: Fill height: 400 center_lat: 40.7 center_lon: -73.9 zoom: 14.0 }
}

6. Label Does NOT Support Animator

// WRONG (silently ignored)
Label{ animator: Animator{...} }

// CORRECT - wrap in View
View{ animator: Animator{...} Label{text: "Animated"} }

Common Widget Patterns

Card

RoundedView{
    width: Fill height: Fit
    padding: 16
    new_batch: true
    draw_bg.color: #2a2a3d
    draw_bg.border_radius: 8.0
    flow: Down spacing: 8
    title := Label{text: "Title" draw_text.color: #fff draw_text.text_style.font_size: 16}
    body := Label{text: "Content" draw_text.color: #aaa}
}

Form Input

View{
    width: Fill height: Fit
    flow: Down spacing: 4
    Label{text: "Email" draw_text.color: #aaa draw_text.text_style.font_size: 11}
    email_input := TextInput{
        width: Fill height: 36
        empty_text: "Enter email..."
    }
}

Scrollable List

ScrollYView{
    width: Fill height: Fill
    flow: Down spacing: 4
    new_batch: true
    on_render: || {
        for i, item in items {
            ItemTemplate{label.text: item.name}
        }
    }
}

Best Practices

  1. Use height: Fit on every container unless you want Fill or fixed pixels
  2. Use new_batch: true on any View with background color + text children
  3. Use := for children you need to reference or override
  4. Use theme colors (theme.color_*) instead of hardcoded colors
  5. Use PortalList for large lists (virtualizes rendering)
  6. Use ScrollYView for scrollable content areas
  7. Use RoundedView for cards and containers (has border_radius)

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

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

平台分布

Codex

35.17%
按下载量换算35

Claude

29.51%
按下载量换算29

Cursor

20.28%
按下载量换算20

Gemini CLI

11%
按下载量换算11

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/zhanghandong/makepad-skills --skill makepad-2.0-widgets 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills