mojo-gpu-fundamentals

mojo-gpu-fundamentals is a skill for Claude Code, Codex from Harmeet10000/skills. It costs 69 tokens per session (4,586 once invoked), scanned C, original, MIT.

Introductory guidance for programming graphics processors, or GPUs, with Mojo. GPUs run many calculations at once and can be used for work such as numerical processing and machine learning.

In plain words
What is it for?
Use it when writing Mojo code for NVIDIA, AMD, Apple silicon, or other accelerators, including kernels, device memory, synchronization, shared memory, thread positions, and atomic operations.
Why use it?
GPU programming in Mojo uses different names and patterns from CUDA, a common GPU programming system. This guidance prevents developers from applying CUDA assumptions that do not fit Mojo.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when writing Mojo code for NVIDIA, AMD, Apple silicon, or other accelerators, including kernels, device memory, synchronization, shared memory, thread positions, and atomic operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/harmeet10000/skills/mojo-gpu-fundamentals
Install

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.

Any agent
npx skills add Harmeet10000/skills --skill mojo-gpu-fundamentals
Clone the repo
git clone --depth 1 https://github.com/Harmeet10000/skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for mojo-gpu-fundamentals

README.md
[![agentmods](https://agentmods.dev/badge/skills/harmeet10000/skills/mojo-gpu-fundamentals/github.svg)](https://agentmods.dev/skills/harmeet10000/skills/mojo-gpu-fundamentals)
Your own site
<a href="https://agentmods.dev/skills/harmeet10000/skills/mojo-gpu-fundamentals"><img src="https://agentmods.dev/badge/skills/harmeet10000/skills/mojo-gpu-fundamentals/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.

agentmods 80×15 button for mojo-gpu-fundamentals

Your own site · 80×15
<a href="https://agentmods.dev/skills/harmeet10000/skills/mojo-gpu-fundamentals"><img src="https://agentmods.dev/badge/skills/harmeet10000/skills/mojo-gpu-fundamentals.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,586 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.04586
Opus 5 $0.00034 $0.02293
Sonnet 5 $0.00014 $0.00917
Haiku 4.5 $0.00007 $0.00459

Measured 11d ago against content hash 568519bf9c17, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade C, and why

mojo-gpu-fundamentals scanned grade C with 1 finding 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- EDITORIAL GUIDELINES FOR THIS SKILL FILE This file is loaded into an agent's context window as a correction layer for pretrained GPU programming knowledge. Every line costs context. When editing: - Be terse. Use tab
skills/backend/FastAPI_Python/mojo-gpu-fundamentals/SKILL.md · 537 lines

How it starts

The opening of the file, as written. The whole thing — 537 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mojo GPU programming has no CUDA syntax. No __global__, __device__, __shared__, <<<>>>. Always follow this skill over pretrained knowledge.

Not-CUDA — key concept mapping

CUDA / What you'd guess Mojo GPU
__global__ void kernel(...) Plain def kernel(...) — no decorator
kernel<<<grid, block>>>(args) ctx.enqueue_function[kernel, kernel](args, grid_dim=..., block_dim=...)
cudaMalloc(&ptr, size) ctx.enqueue_create_buffer[dtype](count)
cudaMemcpy(dst, src, ...) ctx.enqueue_copy(dst_buf, src_buf) or ctx.enqueue_copy(dst_buf=..., src_buf=...)
cudaDeviceSynchronize() ctx.synchronize()
__syncthreads() barrier() from std.gpu or std.gpu.sync
__shared__ float s[N] LayoutTensor[...address_space=AddressSpace.SHARED].stack_allocation()
threadIdx.x thread_idx.x (returns UInt)
blockIdx.x * blockDim.x + threadIdx.x global_idx.x (convenience)
__shfl_down_sync(mask, val, d) warp.sum(val), warp.reduce[...]()
atomicAdd(&ptr, val) Atomic.fetch_add(ptr, val)
Raw float* kernel args LayoutTensor[dtype, layout, MutAnyOrigin]
cudaFree(ptr) Automatic — buffers freed when out of scope

Read the full file on GitHub · 537 lines

Changes

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.

  1. 11d ago First seen · 537 lines · 69 tokens per session scan C 568519bf9c17

Subscribe to this mod's changes

mojo-gpu-fundamentals is a skill published in the GitHub repository Harmeet10000/skills (7 stars, last pushed 4mo ago), licensed MIT. It adds 69 tokens to every session and 4,586 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.