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 KernelFlow-ops/cuda-optimized-skill --skill cuda-kernel-optimizergit clone --depth 1 https://github.com/KernelFlow-ops/cuda-optimized-skillWrote 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/kernelflow-ops/cuda-optimized-skill/cuda-kernel-optimizer)<a href="https://agentmods.dev/skills/kernelflow-ops/cuda-optimized-skill/cuda-kernel-optimizer"><img src="https://agentmods.dev/badge/skills/kernelflow-ops/cuda-optimized-skill/cuda-kernel-optimizer/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/kernelflow-ops/cuda-optimized-skill/cuda-kernel-optimizer"><img src="https://agentmods.dev/badge/skills/kernelflow-ops/cuda-optimized-skill/cuda-kernel-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium analysis-evasion · line 1 Suspicious Unicode normalization or mixed-script contentFix: Review the flagged content for security risks. Ensure no credentials, secrets, or sensitive data are exposed.
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.00037 | $0.04362 |
| Opus 5.5 | $0.00015 | $0.01745 |
| Sonnet 5.5 | $0.00007 | $0.00872 |
| Haiku 4.5 | $0.00004 | $0.00436 |
Grade A, and why
cuda-kernel-optimizer 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 2mo 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 — 392 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CUDA Kernel Iterative Optimizer (v3)
What this skill does
Given:
- a baseline kernel file (
.cufor CUDA / CUTLASS, or.pyfor Triton), - a reference Python file (exposes
reference(**kwargs)— same contract asbenchmark.py --ref), - optional
atol/rtolandworkload_model(**dims) -> {flops, bytes_min}in the reference, - kernel dimension arguments (e.g.
--M=4096 --N=4096 --K=4096), - optional iteration count
N(default 3),ncu_num(default 5), andbranches(default 4), - optional
--compile-jobs auto|N(defaultauto) and--numerics-mode reference|strict|approximate(defaultreference),
the skill runs a roofline-guided, branch-and-select iterative optimization loop and produces a timestamped directory of per-iteration artifacts plus a final summary.
Key point
- Evidence-driven axis budget: use a real workload roofline when
ref.pyexposesworkload_model; otherwise label the result as a bottleneck-gap heuristic and do not claimnear_peak. - Branch-and-Select: each iteration generates K candidate kernels (hyperparameter/implementation variants), benchmarks all, selects champion.
- Ablation attribution: after selecting champion, each method is individually ablated to determine its actual contribution.
- SASS verification:
cuobjdump --dump-sassconfirms claimed optimizations actually appear in generated code. - Every iteration produces an adaptive ncu report on the champion kernel; only CPU compilation is parallel.
- No evidence, no generation: the requested iteration count is a maximum. Never write candidates until the hardware, correctness, timing, and NCU gates pass.
Inputs the skill expects from the user
Before starting, confirm you have:
- Baseline operator file, e.g.
./gemm.cuor./gemm_triton.py - Reference file, e.g.
./ref.py(required — correctness validation depends on it) - Dimensions — kernel-signature scalars like
--M=4096 --N=4096 --K=4096 - Iteration count
N(default 3) ncu_num— how many top metrics to extract per axis (default 5)branches— how many hyperparameter variants per iteration (default 4)
What ships with it
49 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.
- examples/walkthrough.md 7.0 KB
- references/method_registry.json 45 KB
- references/metric_registry.json 4.0 KB
- references/ncu_metrics_guide.md 17 KB
- references/optimization_catalog.md 48 KB
- references/sass_signatures.json 14 KB
- scripts/__pycache__/ablate.cpython-313.pyc 13 KB
- scripts/__pycache__/benchmark.cpython-310.pyc 25 KB
- scripts/__pycache__/benchmark.cpython-313.pyc 59 KB
- scripts/__pycache__/branch_explore.cpython-313.pyc 32 KB
- scripts/__pycache__/build.cpython-313.pyc 16 KB
- scripts/__pycache__/check_env.cpython-313.pyc 8.8 KB
- scripts/__pycache__/contract_check.cpython-313.pyc 19 KB
- scripts/__pycache__/gpu_lock.cpython-313.pyc 2.0 KB
- scripts/__pycache__/lint_registry.cpython-313.pyc 6.0 KB
- scripts/__pycache__/orchestrate.cpython-313.pyc 23 KB
- scripts/__pycache__/preflight.cpython-313.pyc 12 KB
- scripts/__pycache__/profile_ncu.cpython-313.pyc 36 KB
- scripts/__pycache__/roofline.cpython-313.pyc 13 KB
- scripts/__pycache__/run_iteration.cpython-313.pyc 12 KB
- scripts/__pycache__/sass_check.cpython-313.pyc 9.5 KB
- scripts/__pycache__/state.cpython-313.pyc 26 KB
- scripts/__pycache__/summarize.cpython-313.pyc 14 KB
- scripts/__pycache__/validate_methods.cpython-313.pyc 17 KB
- scripts/__pycache__/workload_matrix.cpython-313.pyc 17 KB
- scripts/ablate.py 9.4 KB runs code
- scripts/benchmark.py 49 KB runs code
- scripts/branch_explore.py 25 KB runs code
- scripts/build.py 9.2 KB runs code
- scripts/check_env.py 1.5 KB runs code
- scripts/contract_check.py 13 KB runs code
- scripts/gpu_lock.py 895 B runs code
- scripts/hardware_gate.py 13 KB runs code
- scripts/lint_registry.py 3.6 KB runs code
- scripts/orchestrate.py 23 KB runs code
- scripts/preflight.py 8.9 KB runs code
- scripts/profile_ncu.py 33 KB runs code
- scripts/roofline.py 13 KB runs code
- scripts/run_iteration.py 7.2 KB runs code
- scripts/sass_check.py 7.4 KB runs code
- scripts/state.py 21 KB runs code
- scripts/strict_validation.py 4.1 KB runs code
- scripts/summarize.py 8.9 KB runs code
- scripts/validate_methods.py 12 KB runs code
- scripts/workload_matrix.py 14 KB runs code
- templates/iteration_report.md 4.4 KB
- templates/methods.schema.json 3.4 KB
- tests/__pycache__/test_reference.cpython-313.pyc 8.2 KB
- tests/test_reference.py 5.1 KB runs code
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.
- 2mo ago Changed · +18 lines · -6 tokens per session a143c4f8e3d6
- 2mo ago Changed · +28 lines · +43 tokens per session c93030c6bd44
- 2mo ago First seen · 346 lines · 0 tokens per session scan A 3db640895c97
cuda-kernel-optimizer is a skill published in the GitHub repository KernelFlow-ops/cuda-optimized-skill (217 stars, last pushed 2mo ago), licensed MIT. It adds 37 tokens to every session and 4,362 once invoked, about $0.0001 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-08-30.
cuda-kernel-optimizer compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cuda-kernel-optimizerKernelFlow-ops/cuda-optimized-skill | Skill | 217 | 2mo ago | MIT | A | 37 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 134k | today | Apache-2.0 | A | 113 | Codex |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 79k | yesterday | MIT | A | 200 | Claude Code, Codex |
| playwright-climicrosoft/playwright | Skill | 100k | yesterday | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 394k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 314k | 4d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 143k | today | MIT | A | 95 | Claude Code |