check-kernel-format

Validate kernel and op format conformance for T.prim_func and TileLang macros.

168|55|Updated Jun 3, 2025
One-click install
npx skills add https://github.com/tile-ai/TileOPs --skill check-kernel-format
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check-kernel-format
Source: https://github.com/tile-ai/TileOPs/tree/main/.claude/skills/check-kernel-format
Command: npx skills add https://github.com/tile-ai/TileOPs --skill check-kernel-format

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces formatting and structural conformance for kernels and operators after delivery or tuning, preventing integration issues and PR blockers.

Core Features & Use Cases

  • Validates the presence and correct arrangement of the T.prim_func structure, the @tilelang.jit wrapper, and the proper use of T.Kernel blocks.
  • Checks adherence to Kernel and Op class conventions, avoiding unsafe patterns and misconfigurations.
  • Use case: teams delivering optimized kernels can rely on this skill to catch formatting deviations before merging changes.

Quick Start

Run the check-kernel-format tool against the delivered op to verify compliance.

Frequently Asked Questions about check-kernel-format

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

FAQPage Schema
How do I validate TileLang kernel and op format before submitting a PR?

To validate TileLang kernel and op format before a PR, you can run a format conformance check that enforces the T.prim_func structure, the @tilelang.jit wrapper, and T.Kernel block arrangement. This catches structural deviations prior to code review.

What is kernel format conformance and when do I need to check it?

Kernel format conformance ensures your delivered or tuned operators adhere to structural conventions like T.prim_func arrangement and TileLang macros. You need to check it during kernel delivery and tuning workflows to prevent integration issues and PR blockers.

How do I enforce T.prim_func structure and @tilelang.jit wrapper conventions in my code?

You enforce T.prim_func structure and @tilelang.jit wrapper conventions by running a validation tool that scans your kernel code for correct arrangement. This verifies proper use of TileLang macros and T.Kernel blocks to avoid misconfigurations.

Does the kernel format validation check for unsafe patterns in Op class conventions?

Yes, the kernel format validation checks adherence to Kernel and Op class conventions, specifically identifying and avoiding unsafe patterns and misconfigurations in your TileLang code before changes are merged.

Why do my TileLang kernel PRs get blocked by formatting deviations?

TileLang kernel PRs get blocked by formatting deviations when the code lacks correct T.prim_func structure or proper T.Kernel block usage. Running an automated conformance check catches these structural issues before integration.