triton-skill
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "triton-skill":https://skillpi.com/zh/skills/deepskill-58d1c2c35eddb2a399fdd14e440597e844b1eb496148ddd25c59c3dfa4cc4496。安装前核对上游来源和版本:https://github.com/slowlyC/agent-gpu-skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
用于编写、调试和优化 Triton 与 Gluon GPU 内核的技能。基于本地上游教程、生产级内核、语言定义与编译器源码。仅在任务明确涉及 triton.jit、triton.language、tl.*、Gluon、TensorDescriptor、Triton 自动调优(autotune)、TritonGPU/MLIR 降级、triton_kernels,或将 CUDA 内核转换为 Triton 时使用。原始 CUDA/PTX 或 NVIDIA 架构相关工作请使用 cuda-skill;涉及 CUTLASS/CuTe/CuTeDSL 请使用 cutlass-skill。
介绍来源: third_party · slowlyC · 0.0.1 参考来源
SkillPi 解读
- 实测状态
- 未测试
文件浏览
Frontmatter
name: triton-skill
description: >-
Write, debug, and optimize Triton and Gluon GPU kernels from local upstream
tutorials, production kernels, language definitions, and compiler source. Use
when the task explicitly involves triton.jit, triton.language, tl.*, Gluon,
TensorDescriptor, Triton autotune, TritonGPU/MLIR lowering, triton_kernels, or
converting a CUDA kernel to Triton. Use cuda-skill for raw CUDA/PTX and NVIDIA
architecture facts, and cutlass-skill for CUTLASS, CuTe, or CuTeDSL work.Triton and Gluon development
Use the local Triton checkout as the primary source for APIs and implementation patterns. Prefer current tutorials and source over remembered signatures because Triton and Gluon evolve quickly.
Locate the checkout
Resolve the directory containing this SKILL.md, then use its repos/triton/ child. The installer links that path to agent-gpu-skills/third_party/triton/ or to the checkout supplied through TRITON_REPO.
In commands below, replace TRITON_REPO with the resolved absolute path:
TRITON_REPO=/absolute/path/to/triton-skill/repos/triton
If the checkout is missing, run this from the agent-gpu-skills repository and reinstall the Skill:
bash update-repos.sh triton
bash install.sh --skill triton-skill
Choose the source surface
| Task | Start here |
|---|---|
| Triton language syntax and introductory patterns | python/tutorials/ |
| Gluon layout and architecture-level patterns | python/tutorials/gluon/ |
| Complete example kernels | python/examples/ |
| Production matmul, reduction, top-k and SwiGLU | python/triton_kernels/triton_kernels/ |
tl.* definitions and semantics |
python/triton/language/ |
| JIT, autotuning and runtime behavior | python/triton/runtime/ |
| Python compiler entry points | python/triton/compiler/ |
| Triton and GPU dialect definitions | include/triton/Dialect/ |
| Compiler analyses, transforms and lowering | lib/ |
Read quick-reference.md when choosing a tutorial, a complete example, or a production-kernel implementation.
Query workflow
- Identify whether the task is Triton, Gluon, or compiler internals.
- Find the closest current tutorial or implementation for the operation and architecture.
- Verify every API used against its definition or another current call site.
- Preserve the target workload's shape, dtype, stride, layout, masking, and numerical contract.
- Establish correctness before changing launch parameters or optimization strategy.
Discover current examples before relying on a remembered filename:
find "$TRITON_REPO/python/tutorials" -maxdepth 2 -type f | sort
find "$TRITON_REPO/python/examples" -type f | sort
Query Triton language usage and definitions:
rg -n 'tl\.dot|tl\.dot_scaled' "$TRITON_REPO/python/tutorials"
rg -n '@triton\.autotune' "$TRITON_REPO/python/tutorials"
rg -n '^def (load|store|dot|dot_scaled)' \
"$TRITON_REPO/python/triton/language"
Query Gluon architecture patterns:
rg -n '@gluon\.jit' "$TRITON_REPO/python/tutorials/gluon"
rg -n 'wgmma|tcgen05|mbarrier|tma' \
"$TRITON_REPO/python/tutorials/gluon" \
"$TRITON_REPO/python/examples"
Trace production kernels:
rg -n 'persistent|TensorDescriptor' \
"$TRITON_REPO/python/triton_kernels/triton_kernels/matmul_details"
rg -n 'mxfp|flexpoint' \
"$TRITON_REPO/python/triton_kernels/triton_kernels/numerics_details"
Trace compiler definitions and lowering:
rg -n 'def.*Op' "$TRITON_REPO/include/triton/Dialect/Triton/IR"
rg -n 'Encoding' "$TRITON_REPO/include/triton/Dialect/TritonGPU/IR"
rg -n 'wgmma|tma|tcgen05' \
"$TRITON_REPO/include/triton/Dialect/TritonNvidiaGPU"
rg -n 'Pattern|Rewrite' "$TRITON_REPO/lib/Conversion/TritonGPUToLLVM"
Implementation discipline
Keep these layers separate during diagnosis:
Python kernel and launch metadata
→ Triton/Gluon IR and compiler transforms
→ generated GPU code on the selected target
A source-level pattern does not prove that the compiled kernel uses the intended instruction or memory path. Inspect compiler output or profile data when that distinction matters. Add cuda-skill for PTX semantics, compute capability, Nsight, or Compute Sanitizer details.
For correctness work:
- compare against an independent reference over representative and boundary shapes;
- test masked tails, non-power-of-two dimensions, strides and dtype conversions;
- separate compilation failures from runtime correctness and numerical tolerance;
- reproduce the original dispatch and launch metadata before reducing the case.
For performance work:
- freeze the benchmark shape set and measurement method;
- confirm autotune keys cover every dimension that changes the best configuration;
- change one tile, warp, stage, persistence, or specialization choice at a time;
- verify the generated path before attributing a result to TMA, WGMMA, tcgen05, or warp specialization.
Updating the source
From the agent-gpu-skills repository:
bash update-repos.sh triton
python3 scripts/validate_repo.py --require-sources
The checkout follows Triton 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 实验室的评测报告。
亮点
- 面向 GPU 内核开发的专业工具,解决 Triton/Gluon 内核编写、调试和优化的核心痛点
- 提供从教程到生产级内核的完整开发工作流支持
亮点
- 触发词定义精准完整,覆盖 Triton 生态所有关键组件(triton.jit、tl.*、Gluon、autotune 等)
- 明确的排他性说明,避免与其他 GPU 技能混淆
待提升项
-
缺少独立 When to Use 章节 原报告严重程度:轻微
文档结构完整但未设置显式的 When to Use 章节,依赖 frontmatter description 承载触发说明
改进建议:建议在 skill_body 开头添加独立的 When to Use 章节,提升可读性
亮点
- Phase 划分清晰,从环境准备到查询工作流再到实现规范层层递进
- 提供丰富的命令示例和文件路径指引,便于直接执行
亮点
- 工具来源明确,基于本地 Triton checkout 并提供路径解析方案
- 覆盖主要异常场景(checkout 缺失)并提供修复命令
- 更新流程包含 source-map drift 检查建议,体现可靠性意识
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
调用命令或脚本
先读脚本与参数,使用普通权限和限定目录;安装或执行前由使用工具再次确认。
主文档提及 · 第 29, 30, 133 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。