Token导航 LogoToken导航

Agent Skill · 前端设计

design-cute-dsl-kernel(设计可爱的 DSL 内核)

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

design-cute-dsl-kernel 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 6,334。

总安装 523周安装 22GitHub Stars 公开资料未说明下载 183核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:design-cute-dsl-kernel(设计可爱的 DSL 内核)
来源仓库:https://github.com/pepperu96/hyper-mla
仓库路径:skills/design-cute-dsl-kernel
安装命令:
npx skills add https://github.com/pepperu96/hyper-mla --skill design-cute-dsl-kernel
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/pepperu96/hyper-mla --skill design-cute-dsl-kernel

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

为CuTe DSL提供Python内核支持的高级设计工具。适用于需要线程级控制或显存优化的复杂场景。design-cute-dsl-kernel 属于前端设计类 Skill,可作为该场景下的辅助能力补充。支持显式控制线程、warp和warpgroup的执行分配。提供比cuTile公共接口更底层的硬件控制能力。

需配合/design-kernel共享命名规范和版本管理使用。

来源仓库内路径:skills/design-cute-dsl-kernel

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/pepperu96/hyper-mla --skill design-cute-dsl-ke…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

design-cute-dsl-kernel 怎么安装?

在终端执行 npx skills add https://github.com/pepperu96/hyper-mla --skill design-cute-dsl-kernel。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

design-cute-dsl-kernel 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

design-cute-dsl-kernel 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

design-cute-dsl-kernel 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

design-cute-dsl-kernel 用的人多吗?

公开数据是累计安装 523 次,近一周安装 22 次,下载 183 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

design-cute-dsl-kernel 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
design-cute-dsl-kernel

设计可爱的 DSL 内核 · 本页

523—需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

CuTe Python DSL Kernel Design

Always also load /design-kernel for shared naming, versioning, and workflow. Also load /cute-dsl-ref for API reference, execution model, and architecture operations.

When To Use CuTe Python DSL

Use CuTe Python DSL (cute-dsl) when cuTile's public control surface is no longer sufficient, but a Python-authored kernel workflow is still appropriate.

Suitability Gate

CuTe DSL is the right choice when the next optimization requires any of these controls that cuTile does not expose:

  • Thread/warp/warpgroup identity -- explicit control over which threads do what
  • Intra-CTA synchronization -- barriers, named barriers, arrive/wait patterns
  • Warpgroup scheduling -- producer/consumer warpgroup roles, persistent warpgroup loops
  • TMA pipeline control -- explicit multi-stage async copy pipelines with barrier synchronization
  • Cluster programming -- cross-CTA shared memory access, distributed shared memory
  • Register-level data movement -- explicit register-to-register shuffles, warp-level primitives
  • Custom epilogues -- fused post-processing with fine-grained control

When to stay in cuTile instead

If the optimization is still expressible through tile sizes, CTA remapping, occupancy/num_ctas hints, latency hints, or allow_tma flags, stay in cuTile. CuTe DSL adds complexity -- use it only when that complexity is load-bearing.

Hard design constraint

When profiling shows 1 CTA/SM, low eligible warps, and the fix requires explicit warpgroup or barrier scheduling, cuTile cannot close the gap. This is the canonical trigger to switch to CuTe DSL.

Naming And Layout

  • Public language key: cute-dsl
  • Python package path: cute_python
  • Kernel layout: src/mla_var3/kernel/cute_python/<layer>/<design>/<design>[_vN]/
  • Module: <design>[_vN].py
  • Wrapper: CuteKernel

CuteKernel Runtime Pattern

The runtime wrapper lives at src/mla_var3/runtime/cute_kernel.py.

CuTe DSL kernels use a two-level host/device pattern:

  1. A @cute.jit host function sets up TMA descriptors, computes the grid, and launches the kernel
  2. A @cute.kernel device function contains the GPU code

The CuteKernel dataclass wraps this pattern:

from mla_var3.runtime.cute_kernel import CuteKernel

# In KernelPlan.plan():
def plan(self, *inputs):
    # Build a closure that captures inputs and calls the host function
    def launch_fn(tiling):
        # Convert tensors, set up TMA descriptors, compute grid
        host_fn(tiling, *converted_inputs)

    return CuteKernel(
        kernel_fn=device_kernel,       # The @cute.kernel function (for naming)
        launch_fn=launch_fn,           # Closure: (tiling) -> launches kernel
        input_tensors=list(inputs),
        output_tensors=[output],
        tiling=self.tiling,
        autotune_configs=self._autotune_configs(),
        algorithmic_flops_bytes_fn=self._algorithmic_flops_bytes,
    )

Key differences from CtKernel

AspectCtKernel (cuTile)CuteKernel (CuTe DSL)
Launch mechanismgrid_fn + args_fn + cuTile compilerlaunch_fn closure wrapping @cute.jit host
CompilationcuTile bytecode + MLIRCuTe DSL JIT (cached automatically)
Autotuningautotune_launch() from cuda.tile_experimentaltriton.testing.do_bench_cudagraph per config
Grid setupgrid_fn(cfg) -> (x, y, z)Inside launch_fn / host function
TMA descriptorsImplicit (cuTile handles)Explicit setup in host function

Autotuning

CuteKernel iterates over autotune_configs, benchmarks each via do_bench_cudagraph, and selects the fastest. Failed configs are caught and skipped.

Compile

CuTe DSL JIT caches artifacts automatically. The compile() method creates the output directory but does not extract explicit artifacts (can be extended per-kernel).

Tiling Dataclass Guidance

CuTe DSL tilings typically include fields that cuTile tilings do not:

@dataclass
class Tiling:
    # Standard tile dimensions
    tile_m: int
    tile_n: int
    tile_k: int

    # CuTe DSL-specific fields
    num_warpgroups: int          # Warpgroups per CTA (typically 2-4)
    num_pipeline_stages: int     # Async copy pipeline depth
    num_tma_buffers: int         # TMA double/triple buffering
    cluster_m: int = 1           # Cluster shape (M dimension)
    cluster_n: int = 1           # Cluster shape (N dimension)

    def validate(self, pd) -> bool:
        # Validate against problem dimensions and device limits
        ...

The exact fields depend on the kernel design. The validate method should check that tile dimensions divide evenly into problem dimensions and that resource usage (registers, SMEM) stays within device limits.

Architecture Compatibility Check

Kernels may target architecture-specific instructions that require a specific SM version. The "Blackwell" marketing name spans multiple SM versions with different instruction sets:

  • SM100 (B200, B300) — datacenter GPUs, supports tcgen05 MMA, TMEM, full cluster features
  • SM120 (GeForce RTX 5090, RTX 5080) — consumer Blackwell, uses sm_120a, does not support tcgen05 ops

A kernel using tcgen05 ops requires SM100 and will not run on an RTX 5090 (SM120) despite both being "Blackwell".

Before running, compiling, or profiling a CuTe DSL kernel, always verify the available device:

nvidia-smi --query-gpu=name --format=csv,noheader

Then match the GPU name to its SM version. If the kernel's target SM version does not match, skip the run/profiling step. Do not attempt execution — it will either fail at compile time or produce misleading results. Record the architecture requirement in the kernel's devlog and note the skip.

Common Pitfalls

  • Never hallucinate CuTe DSL APIs -- verify against the /cute-dsl-ref skill, docs/cute-dsl/ documentation, or CUTLASS example kernels
  • @cute.kernel function name MUST match the module filename (same rule as cuTile)
  • TMA descriptor setup is host-side only -- do not attempt TMA operations inside @cute.kernel without proper @cute.jit host setup
  • Register budget: 255 max/thread, validate against the active device's SM limits via docs/devices/ and src/mla_var3/conf/devices.json
  • Shared memory varies by SM version: SM100 (B200/B300): up to 228 KB/SM, 227 KB/block opt-in; SM120 (RTX 5090): 96 KB -- do not assume "Blackwell" means datacenter SMEM limits
  • Pipeline stage count affects SMEM usage (each stage needs its own buffer) -- validate total SMEM before increasing stages
  • Barrier synchronization errors are silent and cause incorrect results, not crashes -- always test with --check
  • Cluster programming requires the launch to use cluster-compatible grid dimensions

Reference Resources

  • API reference: Load /cute-dsl-ref for the core API table, execution model, and architecture operations
  • Official documentation: docs/cute-dsl/ (CuTe Python DSL) and docs/cutlass-cpp/cute/ (CuTe C++ concepts)
  • Example kernels and learning paths: Load /learn-cute-dsl for a categorized index of CUTLASS example kernels

Knowledge Links

  • Shared optimization knowledge: docs/knowledge/optimizations/
  • Shared anti-patterns: docs/knowledge/anti-patterns/
  • CuTe Python DSL overlays: docs/knowledge/languages/cute-dsl/

Development Log Entry

Use docs/kernels/<kernel>.md and record the implementation location using the Python package path form:

src/mla_var3/kernel/cute_python/mla/<kernel>/<kernel>[_vN]/

平台分布

Codex

35.17%
按下载量换算64

Claude

28.68%
按下载量换算52

Cursor

19.78%
按下载量换算36

Gemini CLI

9.66%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills