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.zipInstalls 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.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
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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| add-uint-support (this skill) | 18 | 1y | No flags | Intermediate |
| add-cuda-kernel | 1 | 6mo | Review | Advanced |
| clojure-write | 16 | 6mo | No flags | Intermediate |
| cpp-pro | 18 | 7mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by pytorch
View all by pytorch →You might also like
add-cuda-kernel
flashinfer-ai
Step-by-step tutorial for adding new CUDA kernels to FlashInfer
clojure-write
metabase
Guide Clojure and ClojureScript development using REPL-driven workflow, coding conventions, and best practices. Use when writing, developing, or refactoring Clojure/ClojureScript code.
cpp-pro
sickn33
Write idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms. Handles templates, move semantics, and performance optimization. Use PROACTIVELY for C++ refactoring, memory safety, or complex C++ patterns.
python-patterns
affaan-m
Pythonic 惯用法、PEP 8 标准、类型提示以及构建健壮、高效、可维护的 Python 应用程序的最佳实践。
modern-python
trailofbits
Configures Python projects with modern tooling (uv, ruff, ty). Use when creating projects, writing standalone scripts, or migrating from pip/Poetry/mypy/black.
python-scala-oop
benchflow-ai
Guide for translating Python classes, inheritance, and object-oriented patterns to Scala. Use when converting Python code with classes, dataclasses, abstract classes, inheritance, properties, static methods, class methods, or design patterns.