neuron-nki-writing

Create and edit NKI-compatible kernels with structured layout and tiling.

50|4|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/aws-neuron/neuron-agentic-development --skill neuron-nki-writing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: neuron-nki-writing
Source: https://github.com/aws-neuron/neuron-agentic-development/tree/main/skills/neuron-nki-writing
Command: npx skills add https://github.com/aws-neuron/neuron-agentic-development --skill neuron-nki-writing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of writing and customizing NKI kernels, reducing the complexity and time required for kernel development.

Core Features & Use Cases

  • Kernel Writing: Guides users through structuring import statements, utilities, and kernel code following best practices.
  • Kernel Modification: Assists in editing existing kernels with steps for validation, tiling, and layout changes.
  • Use Case: Imagine a user needs to implement a new matrix multiplication kernel optimized for a custom hardware configuration; this Skill provides detailed patterns and utility functions for rapid development.

Quick Start

Instruct the AI to generate a new kernel template that performs a scaled exponential operation on a tensor with input validation.

Frequently Asked Questions about neuron-nki-writing

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

FAQPage Schema
How do I write custom NKI kernels with proper layout and tiling optimization?

To write custom NKI kernels, use this Skill to generate structured import statements, utilities, and kernel code. It guides you through layout manipulation and tiling techniques to achieve high-performance GPU and TPU kernel execution.

What is the best way to modify existing NKI kernels for custom hardware configurations?

The best way to modify existing NKI kernels is by following structured steps for validation, tiling, and layout changes. This Skill provides patterns and utility functions to efficiently edit kernels for specific hardware configurations.

Can I use this Skill to validate tensor inputs before running kernel operations?

Yes, you can validate tensor inputs before running kernel operations. You can instruct the AI to generate a kernel template, such as a scaled exponential operation, that includes built-in input validation to ensure correctness.

Does NKI kernel development require strict adherence to API standards?

NKI kernel development requires strict adherence to API standards to reduce development errors. This Skill ensures your custom kernel workflows follow best practices for correctness and compatibility across GPU and TPU environments.

Why does my custom kernel development workflow have so many layout manipulation errors?

Custom kernel development often has layout manipulation errors due to lack of structured patterns. This Skill simplifies the process by enforcing best practices in tiling and layout manipulation, reducing complexity and development errors.