AD

add-uint-support

Updates PyTorch AT_DISPATCH macros to add support for unsigned integer types.

Install

mkdir -p .claude/skills/add-uint-support && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/124" && unzip -o skill.zip -d .claude/skills/add-uint-support && rm skill.zip

Installs to .claude/skills/add-uint-support

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

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.
263 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Intermediate

Key capabilities

  • →Update AT_DISPATCH_V2 macros for unsigned integer support
  • →Add kUInt16, kUInt32, and kUInt64 to kernel dispatch
  • →Substitute AT_INTEGRAL_TYPES with AT_INTEGRAL_TYPES_V2
  • →Apply AT_BAREBONES_UNSIGNED_TYPES to existing type lists
  • →Verify consistency across multiple dispatch sites

How it works

The skill identifies dispatch macros and either explicitly adds the unsigned type group or upgrades the integral type group to include unsigned variants.

Inputs & outputs

You give it
C++ source file containing AT_DISPATCH_V2 macros
You get back
Modified source file with updated unsigned integer type coverage

When to use add-uint-support

  • →Adding uint support to custom operators
  • →Enabling unsigned integer types in PyTorch kernels
  • →Updating AT_DISPATCH macros for type coverage

About add-uint-support

Updates AT_DISPATCH macros to include unsigned integer types in PyTorch kernels. Supports adding kUInt16, kUInt32, and kUInt64 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.

When not to use it

  • →Operators that only support floating point types
  • →Files not yet converted to AT_DISPATCH_V2

Prerequisites

AT_DISPATCH_V2 macro usage

Limitations

  • →Requires manual functional testing after modification
  • →Some operators may not semantically support unsigned types

How it compares

This automates the manual identification and modification of multiple dispatch sites within a single file to ensure consistent type coverage.

Compared to similar skills

add-uint-support side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
add-uint-support (this skill)181yNo flagsIntermediate
add-cuda-kernel16moReviewAdvanced
clojure-write166moNo flagsIntermediate
cpp-pro187moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry