unsafe-checker

Detect unsafe Rust code, FFI patterns, and safety comment violations.

287|18|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/fjrevoredo/mini-diarium --skill unsafe-checker-fjrevoredo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unsafe-checker
Source: https://github.com/fjrevoredo/mini-diarium/tree/main/.agents/skills/unsafe-checker
Command: npx skills add https://github.com/fjrevoredo/mini-diarium --skill unsafe-checker-fjrevoredo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps developers analyze Rust source files to detect unsafe code, unsafe patterns, and potential FFI hazards, reducing memory safety and security risks.

Core Features & Use Cases

  • Code Inspection: Automatically scans Rust files for unsafe blocks, unsafe function signatures, and safety comments.
  • Pattern Detection: Flags common unsafe patterns such as pointer casting, uninitialized data, double frees, and concurrency issues.
  • Use Case: A security auditor reviews a Rust project to identify unsafe code sections that require better documentation or refactoring for safety.

Quick Start

Use this Skill to analyze the source code in the src/ directory for unsafe code patterns and safety issues.

Frequently Asked Questions about unsafe-checker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect unsafe Rust code and FFI risks in my project?

You can detect unsafe Rust code by scanning source files for unsafe blocks, unsafe function signatures, and FFI patterns. This identifies safety comment violations to prevent memory safety risks and security vulnerabilities.

What are common unsafe Rust patterns that cause memory safety issues?

Common unsafe Rust patterns causing memory safety issues include pointer casting, uninitialized data, double frees, and concurrency issues. Detecting these unsafe patterns early prevents stability problems and security vulnerabilities in Rust projects.

How do I check for missing safety comments in Rust unsafe blocks?

Checking for missing safety comments involves scanning Rust source files to verify that unsafe blocks and unsafe function signatures include proper documentation. This detects safety comment violations to ensure code stability and security.

Can I scan a Rust src directory for unsafe FFI hazards automatically?

Yes, you can automatically scan a Rust src directory for unsafe FFI hazards. The analysis detects unsafe code sections, flags unsafe FFI patterns, and identifies safety comment violations to reduce security and stability risks.

What is the best way to review unsafe Rust code for security vulnerabilities?

The best way to review unsafe Rust code for security vulnerabilities is automated code inspection. Scanning for unsafe blocks, FFI hazards, and common unsafe patterns like double frees flags sections requiring refactoring for safety.

When should I audit my Rust project for unsafe FFI patterns?

You should audit your Rust project for unsafe FFI patterns when reviewing source code for security vulnerabilities. Detecting unsafe code sections, pointer casting, and concurrency issues ensures proper documentation and memory safety.