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 skills add ualberta-rcg/drac-agent-skills --skill optimize-for-gpugit clone --depth 1 https://github.com/ualberta-rcg/drac-agent-skillsWrote 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.
[](https://agentmods.dev/skills/ualberta-rcg/drac-agent-skills/optimize-for-gpu)<a href="https://agentmods.dev/skills/ualberta-rcg/drac-agent-skills/optimize-for-gpu"><img src="https://agentmods.dev/badge/skills/ualberta-rcg/drac-agent-skills/optimize-for-gpu/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ualberta-rcg/drac-agent-skills/optimize-for-gpu"><img src="https://agentmods.dev/badge/skills/ualberta-rcg/drac-agent-skills/optimize-for-gpu.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00079 | $0.01588 |
| Opus 5.5 | $0.00032 | $0.00635 |
| Sonnet 5.5 | $0.00016 | $0.00318 |
| Haiku 4.5 | $0.00008 | $0.00159 |
Grade A, and why
optimize-for-gpu 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 6d 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 — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.
GPU Optimization for Scientific Python (NVIDIA CUDA & RAPIDS)
Treat GPU acceleration as an evidence-driven engineering step, not an automatic rewrite. Preserve the numerical contract, benchmark with proper CUDA synchronization on representative shapes, and retain the GPU path only when end-to-end latency or throughput genuinely improves.
Choose the Least Disruptive Layer First
| Workload | Preferred GPU Path | Notes |
|---|---|---|
| PyTorch / JAX / TensorFlow | Stay in framework | Remove host↔device round trips, enable bf16/fp16, torch.compile, and batched tensor ops before reaching for another library. |
| NumPy / SciPy | CuPy (cupy, cupyx.scipy) |
Drop-in NDArray, FFTs, sparse linear algebra, custom ElementwiseKernel / RawKernel. |
| pandas | cudf.pandas -> cuDF |
Try zero-code python -m cudf.pandas accelerator mode first; drop to native cudf where needed. |
| scikit-learn | cuml.accel -> cuML |
Accelerator mode first, native estimators for fine control. |
| NetworkX | nx-cugraph -> cuGraph |
Backend dispatch (NETWORKX_AUTOMATIC_BACKENDS=cugraph) before rewriting graph code. |
| scikit-image / WSI | cuCIM | GPU morphology, filtering, and whole-slide pathology I/O. |
| Faiss / k-NN / ANN | cuVS | Exact and approximate GPU vector search (report recall@k vs. exact baseline). |
| High-speed GPU file I/O | KvikIO | Direct file/Zarr reads into GPU buffers (GPUDirect Storage where supported). |
| Custom array kernels | Numba-CUDA / Triton | Explicit SIMT kernels, shared memory tiling, warp reductions. |
| 3D geometry & differentiable sim | NVIDIA Warp / Newton | Spatial queries (BVH/SDF/mesh raycast), differentiable physics, PyTorch/JAX zero-copy via DLPack (Newton replaces legacy warp.sim). |
(Legacy note: cuxfilter ended at 26.06 and cuSpatial was archived at 25.04 — avoid both for new projects.)
6-Step GPU Optimization Workflow
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.
- 6d ago First seen · 93 lines · 79 tokens per session scan A 57899ef171b6
optimize-for-gpu is a skill published in the GitHub repository ualberta-rcg/drac-agent-skills (2 stars, last pushed 7d ago), licensed MIT. It adds 79 tokens to every session and 1,588 once invoked, about $0.0003 per session on Opus 5.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-11-25.
optimize-for-gpu compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| optimize-for-gpuualberta-rcg/drac-agent-skills | Skill | 2 | 7d ago | MIT | A | 79 | Claude Code |
| neuroskill-bciNousResearch/hermes-agent | Skill | 267k | today | MIT | A | 18 | Claude Code, Codex |
| ruview-applicationsruvnet/RuView | Skill | 106k | today | MIT | A | 79 | Claude Code |
| lab-hardware-cadK-Dense-AI/scientific-agent-skills | Skill | 59k | yesterday | MIT | A | 108 | Claude Code |
| pylabrobotK-Dense-AI/scientific-agent-skills | Skill | 59k | yesterday | MIT | A | 49 | Claude Code |
| pybammK-Dense-AI/scientific-agent-skills | Skill | 59k | yesterday | MIT | A | 70 | Claude Code, Codex |
| calibrate-roomruvnet/RuView | Skill | 106k | today | MIT | A | 41 | Claude Code |