tilelang-skill
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "tilelang-skill":https://skillpi.com/zh/skills/deepskill-1f85a7ef1741405e76adcd4850621909582d7e91fb226d3cdf05657156964d5f。安装前核对上游来源和版本:https://github.com/slowlyC/agent-gpu-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于编写、调试和优化 TileLang 内核的技能。覆盖从本地上游语言进行 JIT 编译、自动调优、性能分析、编译器处理、测试与示例源码生成。仅在任务明确涉及 tilelang、tilelang.language、@tilelang.jit、@T.prim_func、T.Kernel、T.copy、T.gemm、TileLang Profiler、Carver、TileLang passes,或 TileLang 的 CUDA、ROCm、Metal 与 CPU 后端时使用。涉及 Triton/Gluon、CUTLASS/CuTe/原始 CUDA/PTX 等情形应分别使用相应技能。
介绍来源: third_party · slowlyC · 0.0.1 参考来源
SkillPi 解读
- 实测状态
- 未测试
文件浏览
Frontmatter
name: tilelang-skill
description: >-
Write, debug, and optimize TileLang kernels from local upstream language,
JIT, autotuning, profiling, compiler, test, and example source. Use when the
task explicitly involves tilelang, tilelang.language, @tilelang.jit,
@T.prim_func, T.Kernel, T.copy, T.gemm, TileLang Profiler, Carver, TileLang
passes, or TileLang CUDA, ROCm, Metal, and CPU backends. Use triton-skill for
Triton or Gluon, cutlass-skill for direct CUTLASS, CuTe, or CuTeDSL work, and
cuda-skill for raw CUDA, PTX, NVIDIA architecture, or profiling-tool facts.TileLang development
Use the local TileLang checkout as the primary source for APIs, implementation patterns, and repository-specific build instructions. Prefer current source and examples over remembered signatures because the DSL, compiler, and backend integrations evolve quickly.
Locate the checkout
Resolve the directory containing this SKILL.md, then use its repos/tilelang/ child. The installer links that path to agent-gpu-skills/third_party/tilelang/ or to the checkout supplied through TILELANG_REPO.
In commands below, replace TILELANG_REPO with the resolved absolute path:
TILELANG_REPO=/absolute/path/to/tilelang-skill/repos/tilelang
If the checkout is missing, run this from the agent-gpu-skills repository and reinstall the Skill:
bash update-repos.sh tilelang
bash install.sh --skill tilelang-skill
The default checkout is a source-reference snapshot. It does not initialize TileLang's nested third-party submodules. Use a complete development checkout through TILELANG_REPO when building TileLang or changing its compiler.
Choose the source surface
| Task | Start here |
|---|---|
| Language syntax and operations | tilelang/language/ |
| JIT wrappers, adapters, and kernel objects | tilelang/jit/ |
| Lowering and semantic checks | tilelang/engine/ |
| Autotuning | tilelang/autotuner/ |
| Benchmarking and profiler helpers | tilelang/profiler/ |
| Layout inference and representations | tilelang/layout/, tilelang/analysis/ |
| Schedule recommendation and Carver | tilelang/carver/ |
| CUDA, ROCm, Metal, and CPU Python backends | tilelang/cuda/, tilelang/rocm/, tilelang/metal/, tilelang/cpu/ |
| Compiler transforms and target code generation | src/ |
| Current kernels and end-to-end workloads | examples/ |
| Language, compiler, backend, and regression tests | testing/python/ |
| Repository-specific build and test commands | .agents/skills/tilelang-build/SKILL.md |
Read quick-reference.md when mapping an operation, backend, or compiler question to a concrete path in the validated checkout.
Query workflow
- Classify the task as kernel DSL, JIT/runtime, autotuning/profiling, or compiler/backend work.
- Find the closest current example for the operation, target backend, architecture, dtype, and shape regime.
- Verify each DSL operation against its Python definition, then trace lowering or backend code only as far as the question requires.
- Preserve the workload's shapes, dtypes, layouts, memory scopes, target, launch configuration, and numerical contract.
- Establish correctness and confirm the actual generated path before tuning.
Discover current documentation and examples before relying on a remembered filename:
find "$TILELANG_REPO/docs" -type f -name '*.md' | sort
find "$TILELANG_REPO/examples" -type f -name '*.py' | sort
Search kernel patterns and their definitions together:
rg -n '@tilelang\.jit|@T\.prim_func|T\.Kernel|T\.Pipelined' \
"$TILELANG_REPO/examples"
rg -n 'T\.copy|T\.gemm|T\.alloc_shared|T\.alloc_fragment' \
"$TILELANG_REPO/examples"
rg -n '^def (copy|gemm|alloc_shared|alloc_fragment)|class Kernel' \
"$TILELANG_REPO/tilelang/language"
Trace JIT, lowering, and target selection:
rg -n 'def (compile|lower)|class .*Kernel|class .*Adapter' \
"$TILELANG_REPO/tilelang/jit" \
"$TILELANG_REPO/tilelang/engine"
rg -n 'target|backend|codegen' \
"$TILELANG_REPO/tilelang/backend" \
"$TILELANG_REPO/tilelang/cuda" \
"$TILELANG_REPO/tilelang/rocm" \
"$TILELANG_REPO/tilelang/metal" \
"$TILELANG_REPO/tilelang/cpu"
Trace compiler transformations and generated source:
rg -n 'Pass|Lower|Legalize|Layout' \
"$TILELANG_REPO/src/transform" \
"$TILELANG_REPO/tilelang/engine"
rg -n 'CodeGen|codegen|Build' \
"$TILELANG_REPO/src/cuda" \
"$TILELANG_REPO/src/rocm" \
"$TILELANG_REPO/src/metal" \
"$TILELANG_REPO/src/cpu"
Search tuning, profiling, and nearby tests:
rg -n 'autotune|Profiler|do_bench|get_profiler' \
"$TILELANG_REPO/examples" \
"$TILELANG_REPO/tilelang/autotuner" \
"$TILELANG_REPO/tilelang/profiler"
rg -n 'copy|gemm|pipelined|layout' \
"$TILELANG_REPO/testing/python/language" \
"$TILELANG_REPO/testing/python"
Implementation discipline
Keep these layers separate during diagnosis:
TileLang Python kernel and compile-time parameters
→ TileLang IR, semantic checks, and compiler transforms
→ backend source generation and native compilation
→ runtime dispatch on the selected target
A TileLang source construct does not prove which hardware instruction or memory path the generated kernel uses. Inspect get_kernel_source(), compiler traces, or profile data when that distinction matters. Add cuda-skill for PTX semantics, compute capability, Nsight, or Compute Sanitizer details.
TileLang contains a CuTeDSL integration under tilelang/contrib/cutedsl/. Use this Skill when tracing how TileLang selects or calls that integration. Use cutlass-skill when the task is about CuTeDSL APIs or implementations themselves.
For correctness work:
- compare against an independent reference over representative and boundary shapes;
- test tails, dynamic dimensions, layouts, dtype conversions, and backend-specific paths;
- separate DSL parsing, lowering, native compilation, runtime, and numerical failures;
- reproduce the original target and compile-time parameters before minimizing the case.
For performance work:
- freeze the benchmark shape set, warmup, repetition count, and synchronization method;
- confirm the measured call dispatches to the intended compiled kernel;
- inspect generated source before attributing a result to TMA, tensor cores, tcgen05, or a CuTeDSL path;
- change one tile, thread count, stage count, layout, or pass configuration at a time.
Build and test routing
Before building, installing, or testing TileLang itself, read the upstream repository instructions:
.agents/skills/tilelang-build/SKILL.md
Those instructions are versioned with the checkout and are authoritative for the current build commands. Most compiler and kernel tests require an appropriate device. Verify the active import path, build directory, target backend, and GPU before interpreting a result.
Updating the source
From the agent-gpu-skills repository:
bash update-repos.sh tilelang
python3 scripts/validate_repo.py --require-sources
The checkout follows TileLang main, while third_party/UPSTREAMS.toml records the commit last accepted by this Skill. Review source-map drift before updating that record.
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 高价值专业工具,直接解决 TileLang 内核开发、JIT 编译、自动调优、性能分析和多后端支持的明确痛点
- 覆盖 CUDA、ROCm、Metal 和 CPU 后端,满足异构计算场景的刚需
亮点
- 触发词精准完整,覆盖 TileLang DSL、JIT、autotuning、profiling、compiler 和后端关键词
- 边界清晰,明确区分 triton-skill、cutlass-skill 和 cuda-skill 的使用场景
待提升项
-
description 内容重复 原报告严重程度:轻微
顶层 frontmatter 和 skill_body 内部均包含完整 description,存在冗余
改进建议:保留一处即可,建议移除 skill_body 内部的重复 description
亮点
- 结构清晰,分阶段引导用户完成查询、实现、构建和测试流程
- 提供端到端示例和具体命令,便于直接执行
亮点
- 工具路径和命令明确,基于本地 checkout 和版本化构建指令
- 强调验证生成代码和性能数据,避免误判硬件行为
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
调用命令或脚本
先读脚本与参数,使用普通权限和限定目录;安装或执行前由使用工具再次确认。
主文档提及 · 第 30, 31, 169 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。