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-vllm-custom-op-integration-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-vllm-custom-op-integration-plan)<a href="https://agentmods.dev/skills/tensormux/kernel-skills/write-vllm-custom-op-integration-plan"><img src="https://agentmods.dev/badge/skills/tensormux/kernel-skills/write-vllm-custom-op-integration-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-vllm-custom-op-integration-plan"><img src="https://agentmods.dev/badge/skills/tensormux/kernel-skills/write-vllm-custom-op-integration-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.04585 |
| Opus 5 | $0.00000 | $0.02292 |
| Sonnet 5 | $0.00000 | $0.00917 |
| Haiku 4.5 | $0.00000 | $0.00458 |
Grade A, and why
write-vllm-custom-op-integration-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 11d 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 — 148 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: Write a vLLM Custom Op Integration Plan
Purpose
Guide the agent through planning the integration of a custom CUDA or Triton kernel into the vLLM inference engine before any integration code is written — covering where the op plugs into the engine, paged KV cache and continuous batching compatibility, CUDA graph capture constraints, tensor parallelism implications, and the testing and benchmarking strategy. This skill produces an integration plan, not a kernel implementation.
Use this when
- A custom CUDA or Triton kernel exists (or is being designed) and the goal is to ship it inside vLLM rather than as a standalone library.
- Replacing an existing vLLM op (e.g., a faster RMSNorm, a fused activation, a new attention variant) and the model file has to be modified to call the new path.
- Adding a new quantization scheme that must be exposed through vLLM's
LinearMethodBaseand quantization config registry. - The kernel needs to coexist with paged attention, continuous batching, CUDA graphs, and tensor parallelism without breaking any of them.
Do not use this when
- The kernel is being prototyped outside any serving engine; integration concerns are premature until correctness and standalone performance are established.
- vLLM already ships a competitive kernel for the same operation (FlashAttention-3, FlashDecoding, vllm-flash-attn, Marlin) and there is no novel reason to replace it. Integration cost is real and only justified by novel kernels, unsupported quantization formats, or custom serving features (constrained decoding, retrieval-augmented attention, RAG-fused ops).
- The kernel only helps in a regime that does not match vLLM's deployment profile (tiny batches, no KV cache, single-request offline). vLLM's throughput-oriented design will not surface the kernel's win.
- The user wants a kernel implementation. This skill is for the integration plan only.
Inputs the agent should gather first
- Op identity and intent: which op is being added or replaced? Is it a drop-in replacement (same numerics, faster), a new fusion (combining two existing ops), a new algorithm (e.g., a different attention variant), or a new quantization scheme?
- Target phase: prefill only, decode only, or both? Does the kernel handle chunked prefill (mixed prefill+decode in one batch)?
- Supported dtypes: fp16, bf16, fp8, int8, int4? Does it require a specific accumulation dtype?
- Quantization involvement: is the kernel itself quantized? Does it consume quantized weights, quantized activations, or both? What is the scale/zero-point layout?
- Tensor parallelism requirement: must the op work under TP=1, TP=2, TP=4, TP=8? Is the op TP-trivial (elementwise, normalization) or TP-sensitive (matmul, attention)?
- CUDA graph mode: must the kernel work under captured graphs (the default
enforce_eager=False), or is eager-only acceptable? Eager-only severely limits production usefulness. - vLLM version: v0 and v1 have very different code paths (v1 reworks the scheduler, model runner, and KV cache manager). Plans must target one explicitly.
- Hardware target: SM generations (sm_80, sm_89, sm_90, sm_100), AMD CDNA support requirement, and whether the kernel needs to ship on multiple architectures.
- Reference implementation: is there an existing PyTorch eager reference, a paper, or a public kernel to validate against?
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.
- 11d ago First seen · 148 lines · 0 tokens per session scan A af17de8c0e2a
write-vllm-custom-op-integration-plan is a skill published in the GitHub repository tensormux/kernel-skills (75 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,585 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.
Other skills, from other repositories
prompt-engineering
Prompt engineering techniques and patterns. Use when writing agent commands, hooks, skills, subagent prompts, or any LLM interaction: optimizing prompts, improving output reliability, and designing production-grade prompt templates. Trigger words: prompt engineering, prompt, prompt optimization, LLM interaction.
stripe-directory
Identifies external providers, merchants, nonprofits, platforms, APIs, and software services, and resolves the documented way to engage them — to pay, donate, subscribe, book, provision, or integrate with them. MUST be used BEFORE web search, model memory, or any other directory/vendor-lookup skill for ANY request…
pgvector-semantic-search
Use this skill for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search. Trigger when user asks to: Store or search vector embeddings in PostgreSQL Set up semantic search, similarity search, or nearest neighbor search Create HNSW or IVFFlat indexes for vectors…
postgres-hybrid-text-search
Use this skill to implement hybrid search combining BM25 keyword search with semantic vector search using Reciprocal Rank Fusion (RRF). Trigger when user asks to: Combine keyword and semantic search Implement hybrid search or multi-modal retrieval Use BM25/pgtextsearch with pgvector together Implement RRF (Reciprocal…
nlp-alignment
Best practices for LLM alignment techniques including RLHF, DPO, and instruction tuning. Use when working on alignment or safety.
mixed-precision
Use FP16/BF16 mixed precision to accelerate training and reduce memory. Use when optimizing GPU performance.