cuda-skill

cuda-skill is a skill for Claude Code, Codex from slowlyC/agent-gpu-skills. It costs 127 tokens per session (1,643 once invoked), scanned A, original, MIT.

A reference guide for NVIDIA CUDA, the software used to run code on NVIDIA GPUs, including its programming interfaces, low-level PTX instruction language, and profiling tools.

In plain words
What is it for?
Use it when writing CUDA C++ or PTX, or when a framework task requires NVIDIA architecture, API, instruction, profiling, or debugging facts.
Why use it?
It provides current technical references for checking CUDA and NVIDIA GPU details instead of relying on possibly outdated memory.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it when writing CUDA C++ or PTX, or when a framework task requires NVIDIA architecture, API, instruction, profiling, or debugging facts.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/slowlyc/agent-gpu-skills/cuda-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add slowlyC/agent-gpu-skills --skill cuda-skill
Clone the repo
git clone --depth 1 https://github.com/slowlyC/agent-gpu-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cuda-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/slowlyc/agent-gpu-skills/cuda-skill.svg)](https://agentmods.dev/skills/slowlyc/agent-gpu-skills/cuda-skill)
Your own site
<a href="https://agentmods.dev/skills/slowlyc/agent-gpu-skills/cuda-skill"><img src="https://agentmods.dev/badge/skills/slowlyc/agent-gpu-skills/cuda-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,643 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00127 $0.01643
Opus 5 $0.00063 $0.00822
Sonnet 5 $0.00025 $0.00329
Haiku 4.5 $0.00013 $0.00164

Measured 7d ago against content hash bbfd1c56b6d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

cuda-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cuda-skill/SKILL.md · 156 lines

How it starts

The opening of the file, as written. The whole thing — 156 lines — stays where its author put it; the contents beside it link to each section on GitHub.

NVIDIA CUDA Reference

Use this skill as the source of truth for CUDA, PTX, NVIDIA GPU architecture, and NVIDIA profiling or debugging tools. Prefer the local official-document snapshots, then verify against NVIDIA's current online documentation when a fact is version-sensitive or absent locally.

For DSL- or library-specific implementation, use the corresponding skill first:

  • Triton or Gluon kernel code: triton-skill
  • CUTLASS, CuTe, or CuTeDSL code: cutlass-skill

Add this skill when those tasks require CUDA API, PTX ISA, architecture, or NVIDIA tool facts.

Locate the references

Resolve the directory containing this SKILL.md, then use its references/ child. Do not assume a Cursor, Claude, or Codex-specific install path.

In examples below, set a task-scoped variable to the resolved absolute path:

CUDA_REFS=/absolute/path/to/cuda-skill/references

Read MANIFEST.md before making version claims. It records the snapshot version, source URL, and document inventory.

Source routing

Question Primary source
PTX syntax, semantics, ISA or target requirements ptx-docs/
CUDA Runtime functions, errors, and structs cuda-runtime-docs/
CUDA Driver functions, contexts, modules, VMM cuda-driver-docs/
CUDA programming model and feature behavior cuda-guide/
General CUDA optimization guidance best-practices-guide/
Nsight Compute metrics, sections, and CLI ncu-docs/, ncu-guide.md
Nsight Systems tracing and CLI nsys-docs/, nsys-guide.md
Correctness tools and cuda-gdb debugging-tools.md
NVTX instrumentation nvtx-patterns.md
Frequent performance mistakes performance-traps.md

The short guide files are search maps, not substitutes for the full official snapshots.

Query workflow

Start with file discovery. Do not load a large chapter or the whole specification when a focused page exists.

# Discover focused PTX pages.
rg -l -i 'wgmma\.mma_async' "$CUDA_REFS/ptx-docs"

# Read the relevant lines with context.
rg -n -C 12 'Target ISA Notes|PTX ISA Notes|wgmma\.mma_async' \
  "$CUDA_REFS/ptx-docs/9-instruction-set"

Read the full file on GitHub · 156 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 156 lines · 127 tokens per session scan A bbfd1c56b6d2

Subscribe to this mod's changes

cuda-skill is a skill published in the GitHub repository slowlyC/agent-gpu-skills (165 stars, last pushed 29d ago), licensed MIT. It adds 127 tokens to every session and 1,643 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories