Agent skill · software engineering · aiskillstore

add-uint-support

Add unsigned integer (uint) type support to PyTorch operators by updating AT_DISPATCH macros. Use when adding support for uint16, uint32, uint64 types to operators, kernels, or when user mentions enabling unsigned types, barebones unsigned types, or uint support.

Why this skill is useful

Provides specific macros and patterns for adding unsigned integer support to PyTorch operators that the AI wouldn't reliably generate on its own.

What it needs

About 4k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Add Unsigned Integer (uint) Support to Operators This skill helps add support for unsigned integer types (uint16, uint32, uint64) to PyTorch operators by updating their ATDISPATCH macros. When to use this skill Use this skill when: Adding uint16, uint32, or uint64 support to an operator User mentions "unsigned types", "uint support", "barebones unsigned types" Enabling support for kUInt16, kUInt32, kUInt64 in kernels Working with operator implementations that need expanded type coverage Quick reference Add unsigned types to existing dispatch: Type group reference Unsigned type groups: ATBAREBONESUNSIGNEDTYPES: kUInt16, kUInt32, kUInt64 ATINTEGRALTYPESV2: ATINTEGRALTYPES + ATBAREBONESUNSIGNEDTYPES Relationship: Instructions Step 1: Determine if conversion to V2 is needed Check if the file uses ATDISPATCHV2: If using old ATDISPATCH: First convert to ATDISPATCHV2 using the at-dispatch-v2 skill Then proceed with adding uint support If already using ATDISPATCHV2: Proceed directly to Step 2 Step 2: Analyze the current dispatch macro Identify what type groups are currently in use: Common patterns: ATEXPAND(ATALLTYPES) → includes ATINTEGRALTYPES + ATFLOATINGTYPES ATEXPAND(ATINTEGRALTYPES) → signed integers only ATEXPAND(ATFLOATINGTYPES) → floating point types Step 3: Choose the uint addition method Two approaches: Method 1: Add ATBAREBONESUNSIGNEDTYPES explicitly Use when: You want to be explicit about adding uint support Add ATEXPAND(ATBAREBONESUNSIGNEDTYPES) to the type list Method 2: Substitute ATINTEGRALTYPES with ATINTEGRALTYPESV2 Use when: The dispatch already uses ATEXPAND(ATINTEGRALTYPES) More concise: replaces one type group with its superset Only applicable if ATINTEGRALTYPES is present Step 4: Apply the transformation Method 1 example: Method 2 example: Step 5: Handle ATALLTYPES vs individual type groups If the dispatch uses ATEXPAND(ATALLTYPES): ATALLTYPES = ATINTEGRALTYPES + ATFLOATINGTYPES To add uint: add ATEXPAND(ATBAREBONESUNSIGNEDTYPES) to the list If the …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/add-uint-support

View the source on GitHub

Browse the @skills marketplace