tilelang-op-generate

Generate TileLang-Ascend operator code and tests from design.md specifications.

346|151|Updated Sep 25, 2025
One-click install
npx skills add https://github.com/tile-ai/tilelang-ascend --skill tilelang-op-generate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tilelang-op-generate
Source: https://github.com/tile-ai/tilelang-ascend/tree/main/.agents/skills/tilelang-op-generate
Command: npx skills add https://github.com/tile-ai/tilelang-ascend --skill tilelang-op-generate

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Automatically creates runnable TileLang-Ascend operator implementations and tests from a design specification, eliminating manual coding and error‑prone transcription.

Core Features & Use Cases

  • Design extraction: Parses design.md to pull formulas, API mapping, shapes, tiling, and verification details.
  • Reference synthesis: Aligns extracted specs with existing examples to produce idiomatic TileLang code.
  • End‑to‑end generation: Emits a complete example_{op}.py with kernel, JIT decorator, and test harness, ready for execution.
  • Typical scenario: A hardware engineer provides a new operator design; this skill instantly delivers a verified TileLang implementation ready for integration.

Quick Start

Ask the skill to generate the TileLang code for the operator described in design.md inside the examples/ folder.

Frequently Asked Questions about tilelang-op-generate

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

FAQPage Schema
How do I generate TileLang code from a design document for an NPU kernel?

To generate TileLang code, provide a design.md file detailing formulas, API mapping, shapes, tiling strategy, and verification cases. The skill parses this markdown and emits runnable Python TileLang operator implementation code with JIT decorators and test scaffolding.

What is the process for converting operator design specs into TileLang-Ascend implementations?

Converting operator design specs involves parsing markdown documentation to extract formulas and tiling strategies, aligning specs with existing examples for idiomatic code, and emitting a complete example.py file with kernel logic and test harness ready for execution.

Do I need a specific markdown structure to generate NPU operator code?

Yes, the design.md markdown structure should outline operator formulas, API mapping, shapes, tiling strategy, and verification cases. Parsing these specific details is required to synthesize and emit correct TileLang-Ascend operator implementations.

Does the generated TileLang operator code include test scaffolding?

Yes, the generated TileLang operator code includes test scaffolding. The skill performs end-to-end generation to emit a complete Python file containing the kernel, JIT decorator, and a test harness ready for execution and verification.

Can I use existing examples to align new TileLang operator generation?

Yes, you can use existing examples to align new TileLang operator generation. The skill features reference synthesis, which aligns extracted design specifications with existing examples to produce idiomatic TileLang-Ascend code.