Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skillsnpx agentmods add skills/mohitmishra786/low-level-dev-skills/rust-for-linuxWrote 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/mohitmishra786/low-level-dev-skills/rust-for-linux)<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/rust-for-linux"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/rust-for-linux/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/mohitmishra786/low-level-dev-skills/rust-for-linux"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/rust-for-linux.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.00110 | $0.03311 |
| Opus 5.5 | $0.00044 | $0.01324 |
| Sonnet 5.5 | $0.00022 | $0.00662 |
| Haiku 4.5 | $0.00011 | $0.00331 |
Grade B, and why
rust-for-linux scanned grade B 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 9d 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo insmod hello_rust.ko count=4 How it starts
The opening of the file, as written. The whole thing — 340 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rust for Linux
Purpose
Guide agents through writing Linux kernel code in Rust (examples checked against Linux 7.3): toolchain setup, the kernel crate, pin-init, out-of-tree modules, misc and platform drivers, and testing with KUnit.
Triggers
- "How do I write a Linux kernel module in Rust?"
- "
make rustavailablesays Rust is not available" - "How does pin-init /
try_pin_init!work for a kernel mutex?" - "How do I build an out-of-tree Rust kernel module?"
- "Is there a Rust abstraction for this subsystem yet?"
- "How do I test kernel Rust code with KUnit?"
Workflow
1. Status and when to use Rust
Rust stopped being experimental in Linux 7.0 (April 2026). In-tree users include the Android Binder driver, the Nova (NVIDIA) and Tyr (Arm Mali) GPU drivers, the null block driver, several PHY drivers and the DRM panic QR generator. Rust is still not enabled by default.
New driver?
├── Subsystem has Rust abstractions (rust/kernel/<subsystem>.rs)?
│ ├── Yes → Rust is a good fit; follow samples/rust/ for the pattern
│ └── No → C driver, or write the abstraction first (upstream review needed)
└── Touching an existing C driver → stay in C; Rust is per-module, not per-function
Abstractions change between releases. Check rust/kernel/ and samples/rust/ in the tree you
build against rather than copying code written for another version.
2. Toolchain setup
| Tool | Minimum for 7.3 (scripts/min-tool-version.sh) |
|---|---|
| rustc | 1.85.0 (1.95 powerpc, 1.96 s390) |
| bindgen | 0.71.1 (bindgen-cli) |
| LLVM/Clang | 17.0.1 |
# Rust toolchain plus the standard library source (core is rebuilt for the kernel)
rustup component add rust-src
cargo install --locked bindgen-cli
# Clang/LLVM build of the kernel (mixed GCC + Rust builds are still experimental)
make LLVM=1 rustavailable # explains exactly what is missing
# Enable Rust: General setup → Rust support (CONFIG_RUST=y)
make LLVM=1 menuconfig
make LLVM=1 -j"$(nproc)"
# Editor support: writes rust-project.json for rust-analyzer
make LLVM=1 rust-analyzer
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.
- 9d ago First seen · 340 lines · 110 tokens per session scan B 6b743d9cf004
rust-for-linux is a skill published in the GitHub repository mohitmishra786/low-level-dev-skills (304 stars, last pushed 10d ago), licensed MIT. It adds 110 tokens to every session and 3,311 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-21.
rust-for-linux compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rust-for-linuxmohitmishra786/low-level-dev-skills | Skill | 304 | 10d ago | MIT | B | 110 | Claude Code, Codex |
| wasmTheBeardedBearSAS/claude-craft | Skill | 108 | 13d ago | MIT | A | 43 | Claude Code |
| analyzing-rust-malware-internalsmeltedinhex/analyst-ai-pack | Skill | 25 | 3d ago | Apache-2.0 | A | 67 | Claude Code, Codex |
| signalk-wasm-pluginsailingnaturali/claude-skills | Skill | 3 | 4d ago | MIT | A | 114 | Claude Code |
| raspberry-pi-rust-embeddedhamzabellouch/agent-skills | Skill | 8 | 1mo ago | MIT | A | 72 | Claude Code, Codex |
| codesysalivirgo/Major-AI-Skills | Skill | 6 | yesterday | MIT | B | 27 | Claude Code |
| nightrunakillness/jeo-skills | Skill | 62 | today | MIT | A | 186 | Claude Code |