rmc-unsafe-audit
CommunityFind undocumented unsafe blocks fast.
Authormolaco
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It helps you locate Rust unsafe { ... } blocks that lack a SAFETY comment so you can focus review effort on potentially undocumented invariants.
Core Features & Use Cases
- Workspace-wide unsafe inventory: Surfaces every
unsafe { ... }block with its file span, line count, and enclosing function identity. - Safety-comment compliance heuristic: Flags blocks where
SAFETYis not found within the five source lines preceding theunsafekeyword. - Blast-radius prioritization: Weighs risk by computing how many transitive callers touch the enclosing function via
recursive_callers_count. - Context rendering for review: Pulls surrounding source context with
read_file_contentto validate whether the comment matches the actual invariant.
Quick Start
Run the workflow by building the workspace hypergraph, then invoke the unsafe audit to list undocumented unsafe blocks for focused code review.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: rmc-unsafe-audit Download link: https://github.com/molaco/rust-code-mcp/archive/main.zip#rmc-unsafe-audit Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.