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 tensormux/kernel-skills --skill write-backend-agnostic-kernel-plangit clone --depth 1 https://github.com/tensormux/kernel-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/tensormux/kernel-skills/write-backend-agnostic-kernel-plan)<a href="https://agentmods.dev/skills/tensormux/kernel-skills/write-backend-agnostic-kernel-plan"><img src="https://agentmods.dev/badge/skills/tensormux/kernel-skills/write-backend-agnostic-kernel-plan/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/tensormux/kernel-skills/write-backend-agnostic-kernel-plan"><img src="https://agentmods.dev/badge/skills/tensormux/kernel-skills/write-backend-agnostic-kernel-plan.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.00000 | $0.03004 |
| Opus 5.5 | $0.00000 | $0.01202 |
| Sonnet 5.5 | $0.00000 | $0.00601 |
| Haiku 4.5 | $0.00000 | $0.00300 |
Grade A, and why
write-backend-agnostic-kernel-plan 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 3mo 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 — 151 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: Write a Backend-Agnostic Kernel Plan
Purpose
Guide the agent through planning a compute kernel that must run correctly and performantly on multiple hardware backends (NVIDIA, AMD, CPU fallback, or future backends) before any backend-specific implementation is written — covering abstraction strategy, feature compatibility mapping, and the tradeoffs between portability and performance.
Use this when
- Designing a new kernel that must ship on both NVIDIA (CUDA) and AMD (ROCm/HIP) hardware.
- Evaluating whether Triton, OpenCL, SYCL, or manual multi-backend code is the right abstraction level for a given operation.
- The team needs a plan for supporting a new hardware backend without rewriting all existing custom kernels from scratch.
- Building a library or framework component that should not be tied to a single vendor's programming model.
Do not use this when
- NVIDIA is the only target and will remain so for the foreseeable future. Portable abstractions add engineering cost for no benefit.
- The operation can be expressed entirely through a framework like PyTorch (via ATen/Inductor) or JAX — backend portability is the framework's responsibility, not the kernel developer's.
- The performance requirement is so tight that the portability cost (abstraction overhead, suboptimal tile shapes per backend) cannot be absorbed.
Inputs the agent should gather first
- Required backends: which hardware targets must be supported? NVIDIA (which SMs), AMD (CDNA, RDNA), CPU, Apple Silicon, Intel GPU? Each pair of backends adds complexity.
- Operation type: elementwise, reduction, GEMM-like, attention, or custom. This determines how well it maps to existing cross-backend libraries.
- Performance requirements: is near-peak compute utilization required on all backends, or is correctness + reasonable performance sufficient? Maximum portability and maximum performance are inversely correlated.
- Team capabilities: does the team have expertise in all target backends, or only in one? A plan requiring intimate knowledge of AMD LDS banking and NVIDIA tensor core scheduling simultaneously is unrealistic for a small team.
- Tolerance for abstraction layers: is Triton acceptable? Is CUTLASS Cute? Is a fallback using cuBLAS/rocBLAS + a custom elementwise layer acceptable?
What ships with it
1 file 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.
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.
- 3mo ago First seen · 151 lines · 0 tokens per session scan A abba92db0598
write-backend-agnostic-kernel-plan is a skill published in the GitHub repository tensormux/kernel-skills (93 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,004 tokens. 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.
write-backend-agnostic-kernel-plan compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| write-backend-agnostic-kernel-plantensormux/kernel-skills | Skill | 93 | 5mo ago | MIT | A | 0 | Claude Code, Codex |
| sm120_swapabflashinfer-ai/flashinfer | Skill | 7.0k | today | Apache-2.0 | A | 0 | Claude Code, Codex |
| kimi_k3flashinfer-ai/flashinfer | Skill | 7.0k | today | Apache-2.0 | A | 0 | Claude Code, Codex |
| deepep-to-cam-converterXiaoLuoLYG/GOD | Skill | 1.3k | 5d ago | Apache-2.0 | A | 63 | Claude Code, Codex |
| akg-agentsXiaoLuoLYG/GOD | Skill | 1.3k | 5d ago | Apache-2.0 | A | 75 | Claude Code, Codex |
| embedded-iottravisjneuman/.claude | Skill | 115 | yesterday | MIT | A | 80 | Claude Code |
| datacake-webhookshookdeck/webhook-skills | Skill | 104 | 3d ago | MIT | A | 62 | Claude Code, Codex |