unsafe-checker

Identify unsafe Rust patterns and generate remediation reports for code reviews.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/cecon123/tg-remote-bot --skill unsafe-checker-cecon123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unsafe-checker
Source: https://github.com/cecon123/tg-remote-bot/tree/main/.agents/skills/unsafe-checker
Command: npx skills add https://github.com/cecon123/tg-remote-bot --skill unsafe-checker-cecon123

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unsafe Rust usage, bad patterns, and unsafe boundaries are identified and reasoned about, providing actionable safety guidance for teams.

Core Features & Use Cases

  • Centralized rules for unsafe Rust, FFI safety, and panic-safety checks
  • Invariant documentation templates (SAFETY comments, Safety sections) and guidance for safe wrappers
  • Comprehensive risk assessment, checklists, and example patterns for safe code
  • Workflow-ready outputs to support code reviews and auditor reports

Quick Start

Analyze a Rust project to surface unsafe usage and generate actionable safety guidance.

Frequently Asked Questions about unsafe-checker

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

FAQPage Schema
How do I audit unsafe Rust code for memory safety violations?

Auditing unsafe Rust code involves identifying patterns that threaten memory safety and FFI boundaries. This process surfaces violations, ensures safety invariants are documented with SAFETY comments, and generates structured reports to guide code reviews.

What is the best way to document safety invariants for cross-crate unsafe Rust interfaces?

Documenting safety invariants for cross-crate unsafe Rust interfaces involves applying standardized templates like SAFETY comments and Safety sections. This ensures unsafe boundaries are explicitly reasoned about and mitigated against bad patterns.

Can I generate safe wrappers for performance-critical Rust primitives automatically?

Generating safe wrappers for performance-critical Rust primitives is supported by providing actionable safety guidance. It analyzes unsafe usage and suggests safe abstractions to ensure soundness while maintaining performance where unsafe code is necessary.

Does static analysis work for checking FFI safety and panic-safety in Rust?

Static analysis works for checking FFI safety and panic-safety in Rust by applying centralized lint rules. It identifies unsafe boundaries and bad patterns, ensuring comprehensive risk assessment and invariant documentation across the codebase.

When do I need to run an unsafe Rust code review checklist?

You need to run an unsafe Rust code review checklist when working with codebases that have extensive unsafe usage, cross-crate unsafe interfaces, or performance-critical primitives. It surfaces violations and produces workflow-ready outputs for auditors.