triton-skills

Write, debug, and optimize Triton and Gluon GPU kernels.

Updated Jan 28, 2026
One-click install
npx skills add https://github.com/LeightonWang/flashinfer --skill triton-skills
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: triton-skills
Source: https://github.com/LeightonWang/flashinfer/tree/main/.github/skills/triton-skills
Command: npx skills add https://github.com/LeightonWang/flashinfer --skill triton-skills

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you write, debug, and optimize Triton and Gluon GPU kernels using local source code, tutorials, production kernel references, and compiler internals.

Core Features & Use Cases

  • Kernel Development Guidance: Learn how to implement Triton and Gluon kernels for operations like matmul, fused attention, top-k, SwiGLU, and block-scaled computation.
  • Performance Optimization: Find practical patterns for autotuning, persistent kernels, warp specialization, TMA, WGMMA, and tcgen05 to improve throughput and memory efficiency.
  • Reference-Driven Troubleshooting: Use curated tutorials, quick references, and production implementations to debug API usage, layout issues, and numerical behavior.
  • Use Case: If you need to build a high-performance FP8 attention kernel or tune a fused MoE matmul path, this Skill points you to the right source files and implementation patterns.

Quick Start

Ask for help implementing, debugging, or optimizing a Triton or Gluon kernel and include the target operation, tensor shapes, and hardware constraints.

Frequently Asked Questions about triton-skills

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize Triton GPU kernels for FP8 attention and matmul operations?

To optimize Triton kernels, apply practical patterns for autotuning, persistent kernels, and warp specialization to improve throughput. This Skill provides reference implementations and source code to help tune operations like fused FP8 attention and matmul.

What is the best way to debug Triton kernel layout issues and numerical behavior?

Debugging Triton kernel layout issues and numerical behavior is best done using curated tutorials and production implementation references. This approach helps identify correct API usage and resolve constraints for technologies like TMA and WGMMA.

Can I use Triton and Gluon to implement fused MoE matmul and SwiGLU operations?

Yes, you can implement fused MoE matmul and SwiGLU operations using Triton and Gluon. This Skill provides kernel development guidance and production references to build and optimize these specific GPU scenarios.

Does Triton support architecture-specific GPU features like TMA, WGMMA, and tcgen05?

Triton supports architecture-specific GPU features including TMA, WGMMA, and tcgen05. This Skill helps you match Triton language semantics and layout behavior to effectively utilize these hardware capabilities in your kernels.

How do I start writing a high-performance Triton kernel from source references?

Start writing a high-performance Triton kernel by asking for help with your target operation, tensor shapes, and hardware constraints. This Skill leverages local source code and production references to guide the implementation and optimization process.