rust-unsafe-ffi

rust-unsafe-ffi is a skill for Claude Code, Codex from Lu1sDV/skillsmd. It costs 79 tokens per session (2,134 once invoked), scanned A, original, no licence file.

A guide for writing or reviewing Rust unsafe code and C or C++ foreign-function interfaces. Unsafe code lets Rust perform operations the compiler cannot fully verify, so the guide covers pointer rules, memory ownership, data layout, callbacks, and related risks.

In plain words
What is it for?
Use it to review unsafe blocks, raw pointers, uninitialised values, manual cleanup, unsafe traits, and Rust bindings to C or C++ libraries.
Why use it?
It helps prevent memory-safety, ABI, ownership, and cleanup errors when Rust interacts with low-level code or manually manages memory.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it to review unsafe blocks, raw pointers, uninitialised values, manual cleanup, unsafe traits, and Rust bindings to C or C++ libraries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lu1sdv/skillsmd/rust-unsafe-ffi
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 Lu1sDV/skillsmd --skill rust-unsafe-ffi
Clone the repo
git clone --depth 1 https://github.com/Lu1sDV/skillsmd

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 rust-unsafe-ffi

README.md
[![agentmods](https://agentmods.dev/badge/skills/lu1sdv/skillsmd/rust-unsafe-ffi/github.svg)](https://agentmods.dev/skills/lu1sdv/skillsmd/rust-unsafe-ffi)
Your own site
<a href="https://agentmods.dev/skills/lu1sdv/skillsmd/rust-unsafe-ffi"><img src="https://agentmods.dev/badge/skills/lu1sdv/skillsmd/rust-unsafe-ffi/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 rust-unsafe-ffi

Your own site · 80×15
<a href="https://agentmods.dev/skills/lu1sdv/skillsmd/rust-unsafe-ffi"><img src="https://agentmods.dev/badge/skills/lu1sdv/skillsmd/rust-unsafe-ffi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,134 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown 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.00079 $0.02134
Opus 5.5 $0.00032 $0.00854
Sonnet 5.5 $0.00016 $0.00427
Haiku 4.5 $0.00008 $0.00213

Measured 5d ago against content hash b5f467385d6e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rust-unsafe-ffi 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 5d 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.

rust-unsafe-ffi/SKILL.md · 149 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Files

What ships with it

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

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. 5d ago First seen · 149 lines · 79 tokens per session scan A b5f467385d6e

Subscribe to this mod's changes

rust-unsafe-ffi is a skill published in the GitHub repository Lu1sDV/skillsmd (2 stars, last pushed 4d ago), with no licence file. It adds 79 tokens to every session and 2,134 once invoked, about $0.0003 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-10-12.

Related

Other skills, from other repositories

rust-patterns

Rust: ownership, lifetimes, async (Tokio), Result/anyhow/thiserror, traits, unsafe. Triggers: Rust, borrow checker, lifetime, Tokio, cargo, trait, impl, Result, unsafe, clippy.

softspark/ai-toolkit · 53 tokens

rust-rules

Rust coding rules: style, patterns, security, testing. Triggers: .rs, Cargo.toml, Cargo.lock, Tokio, Axum, Serde, clippy, cargo test.

softspark/ai-toolkit · 43 tokens

neo-rust

Use this skill when writing, refactoring, debugging, or auditing Rust code. Trigger for .rs files, Cargo projects, ownership/borrowing/lifetime issues, Result/Option error handling, unnecessary clone/performance work, unsafe code review, or modern Rust architecture.

Benknightdark/neo-skills · 58 tokens

rust-best-practices

Idiomatic Rust development with ownership, borrowing, lifetimes, error handling (thiserror/anyhow), async Tokio patterns, traits, generics, Clippy linting, cargo workspaces, and production patterns for web services (axum/actix-web), CLI tools (clap), and systems programming. Use when writing, reviewing, or debugging…

medy-gribkov/arcana · 80 tokens

pydub-automation

Automate repetitive audio tasks with Python using PyDub for batch processing, format conversion, normalization, and content assembly. Use when: Processing large numbers of audio files consistently; Converting between audio formats at scale; Normalizing loudness across a batch of files; Assembling intros/outros…

guia-matthieu/clawfu-skills · 75 tokens

rust-patterns

Idiomatic Rust patterns, ownership, error handling, traits, concurrency, and best practices for building safe, performant applications.

affaan-m/ECC · 28 tokens