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.
npx agentmods add skills/vipshop/cache-dit/cuda-cpp-kernelnpx skills add vipshop/cache-dit --skill cuda-cpp-kernelgit clone --depth 1 https://github.com/vipshop/cache-ditWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00085 | $0.01994 |
| Opus 5 | $0.00043 | $0.00997 |
| Sonnet 5 | $0.00017 | $0.00399 |
| Haiku 4.5 | $0.00009 | $0.00199 |
Grade A, and why
cuda-cpp-kernel 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CUDA C++ and PTX Kernel Development
Goal
Use the bundled CUDA, PTX, and profiling references in this skill to implement, debug, and optimize CUDA kernels without relying on agent-specific install paths or ad hoc web searches.
When to Use
Use this skill when you need to:
- write or review CUDA C++ kernels or supporting host code
- reason about PTX instructions, inline PTX, Tensor Core instructions, or memory model details
- debug CUDA Runtime API or Driver API failures
- profile or optimize a kernel with Nsight Systems, Nsight Compute, compute-sanitizer, or cuda-gdb
- investigate shared memory bank conflicts, memory coalescing, occupancy, register pressure, async copy, TMA, or cluster behavior
- compare a custom operator or kernel against a PyTorch baseline for correctness or performance
Do not use this skill for:
- CUTLASS or CuTe template design as the primary task; use
cutlass-cpp-kernel - CuTe DSL Python kernel authoring as the primary task; use
cute-dsl-kernel - cache-dit operator registration, packaging, or public API migration work by itself; pair with
operator-migration
Reference Style Rule
Use skill-local relative paths for bundled references, for example:
references/ptx-docs/references/cuda-runtime-docs/references/ncu-docs/ProfilingGuide.md
Do not write agent-specific install paths into follow-up notes or generated docs.
Bundled Reference Map
The following directories are bundled under references/ inside this skill:
references/ptx-docs/— full PTX ISA referencereferences/ptx-simple/— condensed PTX quick referencereferences/cuda-runtime-docs/— CUDA Runtime API referencereferences/cuda-driver-docs/— CUDA Driver API referencereferences/cuda-guide/— CUDA Programming Guidereferences/best-practices-guide/— CUDA C++ Best Practices Guidereferences/ncu-docs/— Nsight Compute docsreferences/nsys-docs/— Nsight Systems docsreferences/debugging-tools.md— debugging workflow notesreferences/performance-traps.md— common optimization traps
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.
- kernel-templates.md 21 KB
- references/best-practices-guide/1-overview.md 494 B
- references/best-practices-guide/10-memory-optimizations.md 59 KB
- references/best-practices-guide/10.1-data-transfer-between-host-and-device.md 14 KB
- references/best-practices-guide/10.2-device-memory-spaces.md 44 KB
- references/best-practices-guide/10.3-allocation.md 260 B
- references/best-practices-guide/10.4-numa-best-practices.md 816 B
- references/best-practices-guide/11-execution-configuration-optimizations.md 15 KB
- references/best-practices-guide/11.1-occupancy.md 5.1 KB
- references/best-practices-guide/11.2-hiding-register-dependencies.md 660 B
- references/best-practices-guide/11.3-thread-and-block-heuristics.md 3.5 KB
- references/best-practices-guide/11.4-effects-of-shared-memory.md 1.5 KB
- references/best-practices-guide/11.5-concurrent-kernel-execution.md 1.3 KB
- references/best-practices-guide/11.6-multiple-contexts.md 2.4 KB
- references/best-practices-guide/12-instruction-optimization.md 24 KB
- references/best-practices-guide/12.1-arithmetic-instructions.md 22 KB
- references/best-practices-guide/12.2-memory-instructions.md 936 B
- references/best-practices-guide/13-control-flow.md 2.9 KB
- references/best-practices-guide/13.1-branching-and-divergence.md 1.7 KB
- references/best-practices-guide/13.2-branch-predication.md 1.2 KB
- references/best-practices-guide/14-deploying-cuda-applications.md 846 B
- references/best-practices-guide/15-understanding-the-programming-environment.md 4.8 KB
- references/best-practices-guide/15.1-cuda-compute-capability.md 1.6 KB
- references/best-practices-guide/15.2-additional-hardware-data.md 727 B
- references/best-practices-guide/15.3-which-compute-capability-target.md 496 B
- references/best-practices-guide/15.4-cuda-runtime.md 1.6 KB
- references/best-practices-guide/16-cuda-compatibility-developers-guide.md 27 KB
- references/best-practices-guide/16.1-cuda-toolkit-versioning.md 3.0 KB
- references/best-practices-guide/16.2-source-compatibility.md 1.0 KB
- references/best-practices-guide/16.3-binary-compatibility.md 6.6 KB
- references/best-practices-guide/16.4-cuda-compatibility-across-minor-releases.md 15 KB
- references/best-practices-guide/17-preparing-for-deployment.md 16 KB
- references/best-practices-guide/17.1-testing-for-cuda-availability.md 2.2 KB
- references/best-practices-guide/17.2-error-handling.md 1.6 KB
- references/best-practices-guide/17.3-building-for-maximum-compatibility.md 2.8 KB
- references/best-practices-guide/17.4-distributing-the-cuda-runtime-and-libraries.md 8.9 KB
- references/best-practices-guide/18-deployment-infrastructure-tools.md 5.3 KB
- references/best-practices-guide/18.1-nvidia-smi.md 2.5 KB
- references/best-practices-guide/18.2-nvml.md 1.1 KB
- references/best-practices-guide/18.3-cluster-management-tools.md 355 B
- references/best-practices-guide/18.4-compiler-jit-cache-management-tools.md 765 B
- references/best-practices-guide/18.5-cuda_visible_devices.md 643 B
- references/best-practices-guide/19-recommendations-and-best-practices.md 2.3 KB
- references/best-practices-guide/19.1-overall-performance-optimization-strategies.md 2.2 KB
- references/best-practices-guide/2-preface.md 8.2 KB
- references/best-practices-guide/2.1-who-should-read-this-guide.md 890 B
- references/best-practices-guide/2.2-assess-parallelize-optimize-deploy.md 4.3 KB
- references/best-practices-guide/2.3-recommendations-and-best-practices.md 1.4 KB
- references/best-practices-guide/2.4-assessing-your-application.md 1010 B
- references/best-practices-guide/20-nvcc-compiler-switches.md 1.1 KB
- references/best-practices-guide/20.1-nvcc.md 1.1 KB
- references/best-practices-guide/21-notices.md 5.2 KB
- references/best-practices-guide/21.1-notice.md 4.8 KB
- references/best-practices-guide/21.2-opencl.md 99 B
- references/best-practices-guide/21.3-trademarks.md 254 B
- references/best-practices-guide/3-heterogeneous-computing.md 7.7 KB
- references/best-practices-guide/3.1-differences-between-host-and-device.md 2.5 KB
- references/best-practices-guide/3.2-what-runs-on-a-cuda-enabled-device.md 4.5 KB
- references/best-practices-guide/4-application-profiling.md 7.7 KB
- references/best-practices-guide/4.1-profile.md 7.7 KB
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.
- 2d ago First seen · 172 lines · 85 tokens per session scan A d25db3086af2
cuda-cpp-kernel is a skill published in the GitHub repository vipshop/cache-dit (1,262 stars, last pushed 4d ago), licensed Apache-2.0. It adds 85 tokens to every session and 1,994 once invoked, about $0.0004 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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
babysit-pr
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…
imagegen
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
next-cache-components-optimizer
Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…